mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-22 11:39:22 +00:00
Fix list UI having double width on some parts (#1687)
Some checks failed
Cache Dependencies / test (push) Has been cancelled
Some checks failed
Cache Dependencies / test (push) Has been cancelled
* save * fix * re-add support button * update
This commit is contained in:
parent
c6a4c69084
commit
b6bc3df622
1 changed files with 10 additions and 7 deletions
|
@ -97,7 +97,15 @@ class MenuWidgetState extends State<MenuWidget> {
|
|||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final itemCount = SettingActions.all.length;
|
||||
List<SettingActions> items = SettingActions.all;
|
||||
if (!widget.dashboardViewModel.hasSilentPayments) {
|
||||
items.removeWhere((element) => element.name(context) == S.of(context).silent_payments_settings);
|
||||
}
|
||||
// if (!widget.dashboardViewModel.hasMweb) {
|
||||
// itemCount--;
|
||||
// items.removeWhere((element) => element.name(context) == S.of(context).litecoin_mweb_settings);
|
||||
// }
|
||||
int itemCount = items.length;
|
||||
|
||||
moneroIcon = Image.asset('assets/images/monero_menu.png',
|
||||
color: Theme.of(context).extension<CakeMenuTheme>()!.iconColor);
|
||||
|
@ -181,12 +189,7 @@ class MenuWidgetState extends State<MenuWidget> {
|
|||
|
||||
index--;
|
||||
|
||||
final item = SettingActions.all[index];
|
||||
|
||||
if (!widget.dashboardViewModel.hasSilentPayments &&
|
||||
item.name(context) == S.of(context).silent_payments_settings) {
|
||||
return Container();
|
||||
}
|
||||
final item = items[index];
|
||||
|
||||
final isLastTile = index == itemCount - 1;
|
||||
|
||||
|
|
Loading…
Reference in a new issue