@@ -6,6 +6,8 @@ import 'package:bb_mobile/features/ark/router.dart';
66import 'package:bb_mobile/features/ark/ui/ark_balance_detail_widget.dart' ;
77import 'package:bb_mobile/features/ark/ui/settle_bottom_sheet.dart' ;
88import 'package:bb_mobile/features/ark/ui/transaction_history_widget.dart' ;
9+ import 'package:bb_mobile/features/settings/presentation/bloc/settings_cubit.dart' ;
10+ import 'package:bb_mobile/features/swap/ui/swap_router.dart' ;
911import 'package:bb_mobile/features/wallet/ui/wallet_router.dart' ;
1012import 'package:flutter/cupertino.dart' ;
1113import 'package:flutter/material.dart' ;
@@ -20,6 +22,8 @@ class ArkWalletDetailPage extends StatelessWidget {
2022 Widget build (BuildContext context) {
2123 final cubit = context.read <ArkCubit >();
2224 final state = context.watch <ArkCubit >().state;
25+ final hideExchangeFeatures =
26+ context.watch <SettingsCubit >().state.hideExchangeFeatures ?? false ;
2327
2428 return Scaffold (
2529 appBar: AppBar (
@@ -97,13 +101,13 @@ class ArkWalletDetailPage extends StatelessWidget {
97101 );
98102 },
99103 ),
100- const Padding (
104+ Padding (
101105 padding: EdgeInsets .only (
102106 left: 13.0 ,
103107 right: 13.0 ,
104- bottom: 40 .0 ,
108+ bottom: hideExchangeFeatures ? 40.0 : 16 .0 ,
105109 ),
106- child: ArkWalletBottomButtons (),
110+ child: const ArkWalletBottomButtons (),
107111 ),
108112 ],
109113 ),
@@ -122,6 +126,18 @@ class ArkWalletBottomButtons extends StatelessWidget {
122126 Widget build (BuildContext context) {
123127 return Row (
124128 children: [
129+ BBButton .small (
130+ iconData: Icons .swap_vert,
131+ label: '' ,
132+ onPressed: () {
133+ context.pushNamed (SwapRoute .swap.name);
134+ },
135+ bgColor: context.colour.secondary,
136+ textColor: context.colour.onPrimary,
137+ width: 56 ,
138+ height: 56 ,
139+ ),
140+ const Gap (8 ),
125141 Expanded (
126142 child: BBButton .big (
127143 iconData: Icons .arrow_downward,
0 commit comments