Merge branch 'master' of sma/fcs into master
This commit is contained in:
@@ -170,6 +170,7 @@
|
|||||||
"profile.edit.currency.title":"Preferred Currency",
|
"profile.edit.currency.title":"Preferred Currency",
|
||||||
"profile.name": "Name",
|
"profile.name": "Name",
|
||||||
"profile.phone": "Phone",
|
"profile.phone": "Phone",
|
||||||
|
"profile.delete": "Delete Account",
|
||||||
"profile.language": "Languages",
|
"profile.language": "Languages",
|
||||||
"profile.logout": "logout",
|
"profile.logout": "logout",
|
||||||
"profile.currency":"Preferred currency",
|
"profile.currency":"Preferred currency",
|
||||||
|
|||||||
@@ -171,6 +171,7 @@
|
|||||||
"profile.edit.currency.title":"နှစ်သက်သော ငွေအမျိုးအစား",
|
"profile.edit.currency.title":"နှစ်သက်သော ငွေအမျိုးအစား",
|
||||||
"profile.name":"နာမည်",
|
"profile.name":"နာမည်",
|
||||||
"profile.phone": "ဖုန်းနံပါတ်",
|
"profile.phone": "ဖုန်းနံပါတ်",
|
||||||
|
"profile.delete": "အကောင့်ကို ဖျက်မည်",
|
||||||
"profile.language": "ဘာသာစကားများ",
|
"profile.language": "ဘာသာစကားများ",
|
||||||
"profile.logout": "အကောင့်ထွက်ရန်",
|
"profile.logout": "အကောင့်ထွက်ရန်",
|
||||||
"profile.currency":"နှစ်သက်သော ငွေအမျိုးအစား",
|
"profile.currency":"နှစ်သက်သော ငွေအမျိုးအစား",
|
||||||
|
|||||||
@@ -81,6 +81,7 @@ class PartSearchDelegate extends SearchDelegate<Carton> {
|
|||||||
child: Text(
|
child: Text(
|
||||||
"No result found",
|
"No result found",
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
|
style: TextStyle(color: Colors.black),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -80,6 +80,7 @@ class PackageSearchDelegate extends SearchDelegate<Package> {
|
|||||||
child: Text(
|
child: Text(
|
||||||
"No result found",
|
"No result found",
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
|
style: TextStyle(color: Colors.black),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -81,6 +81,7 @@ class PackageSearchDelegate extends SearchDelegate<Pickup> {
|
|||||||
child: Text(
|
child: Text(
|
||||||
"No result found",
|
"No result found",
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
|
style: TextStyle(color: Colors.black),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -82,6 +82,10 @@ class _ProfileState extends State<Profile> {
|
|||||||
labelTextKey: "profile.currency",
|
labelTextKey: "profile.currency",
|
||||||
iconData: FontAwesome5Regular.money_bill_alt,
|
iconData: FontAwesome5Regular.money_bill_alt,
|
||||||
);
|
);
|
||||||
|
final deleteacbox = DisplayText(
|
||||||
|
labelTextKey: "profile.delete",
|
||||||
|
iconData: MaterialCommunityIcons.delete,
|
||||||
|
);
|
||||||
|
|
||||||
final phonenumberbox = DisplayText(
|
final phonenumberbox = DisplayText(
|
||||||
text: mainModel.user!.phone,
|
text: mainModel.user!.phone,
|
||||||
@@ -181,6 +185,18 @@ class _ProfileState extends State<Profile> {
|
|||||||
iconData: Icons.language,
|
iconData: Icons.language,
|
||||||
isEng: languageModel.isEng,
|
isEng: languageModel.isEng,
|
||||||
),
|
),
|
||||||
|
Row(
|
||||||
|
children: <Widget>[
|
||||||
|
Expanded(child: deleteacbox,),
|
||||||
|
Padding(
|
||||||
|
padding: const EdgeInsets.only(right: 0),
|
||||||
|
child: IconButton(
|
||||||
|
icon: Icon(Icons.edit, color: Colors.grey),
|
||||||
|
onPressed: _editDelete),
|
||||||
|
)
|
||||||
|
],
|
||||||
|
),
|
||||||
|
|
||||||
getPrivilegeBox(context),
|
getPrivilegeBox(context),
|
||||||
SizedBox(height: 15),
|
SizedBox(height: 15),
|
||||||
logoutbutton,
|
logoutbutton,
|
||||||
@@ -343,7 +359,10 @@ class _ProfileState extends State<Profile> {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
_editDelete() {
|
||||||
|
Navigator.of(context)
|
||||||
|
.push<void>(CupertinoPageRoute(builder: (context) => ProfileEdit()));
|
||||||
|
}
|
||||||
_editName() {
|
_editName() {
|
||||||
Navigator.of(context)
|
Navigator.of(context)
|
||||||
.push<void>(CupertinoPageRoute(builder: (context) => ProfileEdit()));
|
.push<void>(CupertinoPageRoute(builder: (context) => ProfileEdit()));
|
||||||
|
|||||||
@@ -79,6 +79,7 @@ class UserSearchDelegate extends SearchDelegate<User> {
|
|||||||
child: Text(
|
child: Text(
|
||||||
"No result found",
|
"No result found",
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
|
style: TextStyle(color:Colors.black),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user