Skip to content

Commit

Permalink
refactor: reorder menuitems on history page (#4181)
Browse files Browse the repository at this point in the history
* refactor: reorder menuitems on history page

Signed-off-by: Mohd Jasir Noor Khan <khanmohdjasir@gmail.com>

* refactor: updated the translation description

Signed-off-by: Mohd Jasir Noor Khan <khanmohdjasir@gmail.com>

---------

Signed-off-by: Mohd Jasir Noor Khan <khanmohdjasir@gmail.com>
  • Loading branch information
khanjasir90 committed Jun 16, 2023
1 parent c4c2929 commit 42b8788
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions packages/smooth_app/lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -1309,9 +1309,9 @@
"@added_to_list_msg": {
"description": "Message when products have been successfully added to a list"
},
"user_list_popup_clear": "Clear",
"user_list_popup_clear": "Clear your history",
"@user_list_popup_clear": {
"description": "Short label of a 'clear list' popup"
"description": "Short label of a 'clear your history list' popup"
},
"user_list_popup_rename": "Rename",
"@user_list_popup_rename": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,24 +199,24 @@ class _ProductListPageState extends State<ProductListPage>
},
itemBuilder: (BuildContext context) =>
<PopupMenuEntry<String>>[
if (enableClear)
PopupMenuItem<String>(
value: _popupActionClear,
child: Text(appLocalizations.user_list_popup_clear),
),
if (enableRename)
PopupMenuItem<String>(
value: _popupActionRename,
child: Text(appLocalizations.user_list_popup_rename),
),
PopupMenuItem<String>(
value: _popupActionOpenInWeb,
child: Text(appLocalizations.label_web),
),
PopupMenuItem<String>(
value: _popupActionShare,
child: Text(appLocalizations.share),
),
PopupMenuItem<String>(
value: _popupActionOpenInWeb,
child: Text(appLocalizations.label_web),
),
if (enableClear)
PopupMenuItem<String>(
value: _popupActionClear,
child: Text(appLocalizations.user_list_popup_clear),
),
],
)
],
Expand Down

0 comments on commit 42b8788

Please sign in to comment.