This commit is contained in:
tzw
2024-03-05 16:33:35 +06:30
7 changed files with 26 additions and 1 deletions

View File

@@ -81,6 +81,7 @@ class PartSearchDelegate extends SearchDelegate<Carton> {
child: Text(
"No result found",
textAlign: TextAlign.center,
style: TextStyle(color: Colors.black),
),
),
);

View File

@@ -80,6 +80,7 @@ class PackageSearchDelegate extends SearchDelegate<Package> {
child: Text(
"No result found",
textAlign: TextAlign.center,
style: TextStyle(color: Colors.black),
),
),
);

View File

@@ -81,6 +81,7 @@ class PackageSearchDelegate extends SearchDelegate<Pickup> {
child: Text(
"No result found",
textAlign: TextAlign.center,
style: TextStyle(color: Colors.black),
),
),
);

View File

@@ -82,6 +82,10 @@ class _ProfileState extends State<Profile> {
labelTextKey: "profile.currency",
iconData: FontAwesome5Regular.money_bill_alt,
);
final deleteacbox = DisplayText(
labelTextKey: "profile.delete",
iconData: MaterialCommunityIcons.delete,
);
final phonenumberbox = DisplayText(
text: mainModel.user!.phone,
@@ -181,6 +185,18 @@ class _ProfileState extends State<Profile> {
iconData: Icons.language,
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),
SizedBox(height: 15),
logoutbutton,
@@ -343,7 +359,10 @@ class _ProfileState extends State<Profile> {
),
);
}
_editDelete() {
Navigator.of(context)
.push<void>(CupertinoPageRoute(builder: (context) => ProfileEdit()));
}
_editName() {
Navigator.of(context)
.push<void>(CupertinoPageRoute(builder: (context) => ProfileEdit()));

View File

@@ -79,6 +79,7 @@ class UserSearchDelegate extends SearchDelegate<User> {
child: Text(
"No result found",
textAlign: TextAlign.center,
style: TextStyle(color:Colors.black),
),
),
);