add packages

This commit is contained in:
Sai Naw Wun
2020-06-02 00:00:05 +06:30
21 changed files with 568 additions and 335 deletions

View File

@@ -284,24 +284,7 @@ class _ProfileState extends State<Profile> {
),
backgroundColor: primaryColor,
actions: <Widget>[
IconButton(
icon: Icon(Icons.edit),
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(builder: (context) => ProfileEdit()),
);
},
),
IconButton(
icon: Icon(Icons.settings),
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(builder: (context) => ProfileSetting()),
);
},
)
],
),
body: ListView(
@@ -311,7 +294,15 @@ class _ProfileState extends State<Profile> {
),
shrinkWrap: true,
children: <Widget>[
namebox,
Row(
children: <Widget>[
namebox,
Padding(
padding: const EdgeInsets.only(left:18.0),
child: Icon(Icons.edit),
)
],
),
mainModel.isBuyer() ? Container() : getPrivilegeBox(context),
phonenumberbox,
mainModel.user == null
@@ -320,20 +311,8 @@ class _ProfileState extends State<Profile> {
? Container()
: emailBox,
languageBox,
SizedBox(height: 50,),
logoutbutton,
Divider(color: secondaryColor),
Switch(
value: false,
onChanged: (value) {
setState(() {});
},
// activeTrackColor: Colors.lightGreenAccent,
// activeColor: Colors.green,
),
versionbox,
SizedBox(
height: 20,
)
],
),
),