diff --git a/lib/pages/home_view/home_view.dart b/lib/pages/home_view/home_view.dart index f5e43eac2..9b6f6eddb 100644 --- a/lib/pages/home_view/home_view.dart +++ b/lib/pages/home_view/home_view.dart @@ -126,8 +126,10 @@ class _HomeViewState extends ConsumerState { _rotateIconController = RotateIconController(); _children = [ const WalletsView(), - if (Constants.enableExchange) const ExchangeView(), - if (Constants.enableExchange) const BuyView(), + if (AppConfig.hasFeature(AppFeature.swap) && Constants.enableExchange) + const ExchangeView(), + if (AppConfig.hasFeature(AppFeature.buy) && Constants.enableExchange) + const BuyView(), ]; ref.read(notificationsProvider).startCheckingWatchedNotifications(); @@ -343,7 +345,7 @@ class _HomeViewState extends ConsumerState { ), body: Column( children: [ - if (Constants.enableExchange) + if (_children.length > 1) Container( decoration: BoxDecoration( color: Theme.of(context)