add packages
This commit is contained in:
@@ -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,
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user