PakAcademy79
0
  • Courses
    • C++ examples with solutions
    • C++ projects for beginners
    • Python
    • Flutter
    • Android
    • PHP
  • Freelancing Tips
    • Free Courses
    • ShopNow
    • YouTube
    • Technology
  • Software Downloads

Archives

  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022

Categories

  • Android
  • C++
  • Downloads
  • Flutter
  • Free Courses
  • freelancing tips
  • iPhone
  • PHP
  • Python
  • ShopNow
  • Technology
  • Uncategorized
  • Wordpress
  • YouTube

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
PakAcademy79 PakAcademy79
PakAcademy79 PakAcademy79
PakAcademy79 PakAcademy79
  • Courses
    • C++ examples with solutions
    • C++ projects for beginners
    • Python
    • Flutter
    • Android
    • PHP
  • Freelancing Tips
    • Free Courses
    • ShopNow
    • YouTube
    • Technology
    TOP 5 SEO ARTICLE CHECKER TOOLS
    Top 7 Tips To Rank On the First Page Of Google
    Top 7 Tips To Rank On the First Page Of Google
    The Ultimate Guide to Making Money as an Affiliate Marketer
    The Ultimate Guide to Making Money as an Affiliate Marketer
    The 5 Best Free AI Content Generator You’ve Never Heard of
    Previous Next
  • Software Downloads
Trending Now
The Comprehensive 2021 Android Development Masterclass

THE COMPREHENSIVE 2021 ANDROID DEVELOPMENT MASTERCLASS

September 9, 2022
Quiz Posts Beta, Editing Image Posts on iOS, Shorts on YouTube TV and MORE!

New Update for Youtube Shorts (Quizzes)

December 2, 2022
php scripts Simple Guestbook Management System in PHP Free Source Code

Simple Guestbook Management System in PHP Free Source Code

December 21, 2022
windows all version free download links

Microsoft Windows all versions Download links

November 15, 2022
0
PakAcademy79 PakAcademy79
  • Courses
    • C++ examples with solutions
    • C++ projects for beginners
    • Python
    • Flutter
    • Android
    • PHP
  • Freelancing Tips
    • Free Courses
    • ShopNow
    • YouTube
    • Technology
    TOP 5 SEO ARTICLE CHECKER TOOLS
    Top 7 Tips To Rank On the First Page Of Google
    Top 7 Tips To Rank On the First Page Of Google
    The Ultimate Guide to Making Money as an Affiliate Marketer
    The Ultimate Guide to Making Money as an Affiliate Marketer
    The 5 Best Free AI Content Generator You’ve Never Heard of
    Previous Next
  • Software Downloads
Trending Now
The Comprehensive 2021 Android Development Masterclass

THE COMPREHENSIVE 2021 ANDROID DEVELOPMENT MASTERCLASS

September 9, 2022
Quiz Posts Beta, Editing Image Posts on iOS, Shorts on YouTube TV and MORE!

New Update for Youtube Shorts (Quizzes)

December 2, 2022
php scripts Simple Guestbook Management System in PHP Free Source Code

Simple Guestbook Management System in PHP Free Source Code

December 21, 2022
windows all version free download links

Microsoft Windows all versions Download links

November 15, 2022
0
PakAcademy79 > Blog > Flutter > Profile App complete In Flutter 3.0
Flutter

Profile App complete In Flutter 3.0

Muhammad Azeem
Posted by Muhammad Azeem January 12, 2023
0 Shares
READ NEXT
The Classic Flutter 3.3 Tic Tac Toe Game
Tic Tac Toe – The Classic Flutter 3.3 Tic Tac Toe Game

Table of Contents

  • Source Code

Here is an example of a complete profile app code in Flutter that allows the user to view and edit their profile information:

Source Code

/*import 'package:flutter/material.dart';

class ProfilePage extends StatefulWidget {
@override
_ProfilePageState createState() => _ProfilePageState();
}

class _ProfilePageState extends State {
String _name = "John Doe";
String _email = "john.doe@example.com";
String _profileImage =
"https://example.com/images/profile.jpg";
bool _isEditing = false;

final _nameController = TextEditingController();
final _emailController = TextEditingController();

@override
void initState() {
super.initState();
_nameController.text = _name;
_emailController.text = _email;
}

@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text("My Profile"),
actions: [
_isEditing
? IconButton(
icon: Icon(Icons.check),
onPressed: () {
setState(() {
_name = _nameController.text;
_email = _emailController.text;
_isEditing = false;
});
},
)
: IconButton(
icon: Icon(Icons.edit),
onPressed: () {
setState(() {
_isEditing = true;
});
},
),
],
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
CircleAvatar(
radius: 50,
backgroundImage: NetworkImage(_profileImage),
),
SizedBox(
height: 10,
),
_isEditing
? TextField(
controller: _nameController,
decoration: InputDecoration(labelText: "Name"),
)
: Text(
_name,
style: TextStyle(
fontSize: 22,
fontWeight: FontWeight.bold,
color: Colors.black,
),
),
SizedBox(
height: 10,
),
_isEditing
? TextField(
controller: _emailController,
decoration: InputDecoration(labelText: "Email"),
)
: Text(
_email,
style: TextStyle(
fontSize: 18,
color: Colors.grey,
),
),
SizedBox(
height: 10,
),
_isEditing
? RaisedButton(
child: Text("Save"),
onPressed: () {
setState(() {
_name = _nameController.text;
_email = _emailController.text;
_isEditing = false;
});
},
)
: Container(),
],
),
),
);
}
}*/

Tags: flutter 3.0 profile app flutter beautiful profile page flutter profile page flutter user profile example How do I create a profile on Flutter? profile app in flutter profile app UI in flutter
0 Shares
Share on Facebook Share on Twitter Share on Pinterest Share on Email
Muhammad Azeem January 12, 2023
Previous Article Bank Management System Project in c++ (Using Functions)
Next Article ATM machine program in c++ using functions

Leave a Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

FOLLOW SOCIALS

Facebook like
Twitter follow
13.9k followers pin

You Might Also Enjoy

Upgrading your Flutter version can be a daunting task
Flutter

5 Tips for a Smooth Flutter Upgrade

Upgrading your Flutter version can be a daunting task, especially ...

Posted by admin admin January 23, 2023
Additional resources to help you master the Transform widget in Flutter
Flutter

Mastering the Transform Widget: A Comprehensive Guide in Flutter”

Table of Contents IntroductionExplanation of what the Transform widget is ...

Posted by admin admin January 23, 2023
flutter animation
Flutter

Mastering the Art of Image Animation in Flutter: A Step-by-Step Guide

Table of Contents Tips for adding flutter Animation in AppStep ...

Posted by admin admin January 22, 2023
Load More

CONTACT INFO

The Business Centre 2, My
Street, Kingston, New York 12401
Phone Information
Phone: (+1) 234 567 89
Email: themeruby@gmail.com

CLUB OPEN HOURS

Monday 06:00 AM – 05:00 PM
Tuesday 06:00 AM – 05:00 PM
Wednesday 06:00 AM – 05:00 PM
Thursday 06:00 AM – 05:00 PM
Friday 06:00 AM – 05:00 PM
Saturday 06:00 AM – 05:00 PM

POPULAR NEWS

C++ “Hello, World!” Program

How to connect flutter with firebase? | Easy Steps

Internet Browsing Free Download

Best Laptops Under $500

PakAcademy79

All Copyright reserved byPakacademy79.com

Our website uses cookies to improve your experience. Learn more about: cookie policy

Accept