@@ -102,7 +102,9 @@ class _MobileAccountsScreenState extends ConsumerState<MobileAccountsScreen> {
102102 if (wasOpenForAccount) return ;
103103 }
104104
105- final accounts = ref.read (accountProvider).value? .accounts ?? const [];
105+ final accountState = ref.read (accountProvider).value;
106+ final accounts = accountState? .accounts ?? const [];
107+ final isCurrentAccount = accountState? .activeAccountUuid == account.uuid;
106108 final canRemove = _canRemove (account, accounts);
107109
108110 final overlay = Overlay .of (context, rootOverlay: true );
@@ -123,7 +125,12 @@ class _MobileAccountsScreenState extends ConsumerState<MobileAccountsScreen> {
123125 horizontal: AppSpacing .xxs,
124126 vertical: AppSpacing .sm,
125127 );
126- final menuHeight = canRemove ? 173.0 : 126.0 ;
128+ final menuHeight = switch ((isCurrentAccount, canRemove)) {
129+ (true , true ) => 139.0 ,
130+ (true , false ) => 92.0 ,
131+ (false , true ) => 173.0 ,
132+ (false , false ) => 126.0 ,
133+ };
127134 const bottomNavClearance = kMobileTabBarHeight + AppSpacing .lg;
128135 final colors = context.colors;
129136 final menuMaxTop = math.max (
@@ -215,12 +222,13 @@ class _MobileAccountsScreenState extends ConsumerState<MobileAccountsScreen> {
215222 label: 'Copy address' ,
216223 action: _AccountAction .copy,
217224 ),
218- item (
219- key: const ValueKey ('mobile_account_menu_send' ),
220- iconName: AppIcons .plane,
221- label: 'Send ZEC' ,
222- action: _AccountAction .send,
223- ),
225+ if (! isCurrentAccount)
226+ item (
227+ key: const ValueKey ('mobile_account_menu_send' ),
228+ iconName: AppIcons .plane,
229+ label: 'Send ZEC' ,
230+ action: _AccountAction .send,
231+ ),
224232 item (
225233 key: const ValueKey ('mobile_account_menu_edit' ),
226234 iconName: AppIcons .edit,
0 commit comments