diff --git a/lib/src/screens/dashboard/widgets/balance_page.dart b/lib/src/screens/dashboard/widgets/balance_page.dart index 617481f95..9d05eefb7 100644 --- a/lib/src/screens/dashboard/widgets/balance_page.dart +++ b/lib/src/screens/dashboard/widgets/balance_page.dart @@ -1,6 +1,7 @@ import 'package:cake_wallet/src/screens/exchange_trade/information_page.dart'; import 'package:cake_wallet/store/settings_store.dart'; import 'package:cake_wallet/themes/theme_base.dart'; +import 'package:cake_wallet/utils/feature_flag.dart'; import 'package:cake_wallet/utils/responsive_layout_util.dart'; import 'package:cake_wallet/utils/show_pop_up.dart'; import 'package:flutter/material.dart'; @@ -43,7 +44,7 @@ class BalancePage extends StatelessWidget { textAlign: TextAlign.center); })), Observer(builder: (_) { - if (dashboardViewModel.balanceViewModel.isShowCard) { + if (dashboardViewModel.balanceViewModel.isShowCard && FeatureFlag.isCakePayEnabled) { return IntroducingCard( title: S.of(context).introducing_cake_pay, subTitle: S.of(context).cake_pay_learn_more, diff --git a/lib/src/screens/dashboard/widgets/market_place_page.dart b/lib/src/screens/dashboard/widgets/market_place_page.dart index c6d69764f..eeed4bee0 100644 --- a/lib/src/screens/dashboard/widgets/market_place_page.dart +++ b/lib/src/screens/dashboard/widgets/market_place_page.dart @@ -52,7 +52,10 @@ class MarketPlacePage extends StatelessWidget { children: [ SizedBox(height: 20), DashBoardRoundedCardWidget( - onTap: () => _navigatorToGiftCardsPage(context), + onTap: () => launchUrl( + Uri.parse("https://cakelabs.com/news/cake-pay-mobile-to-shut-down/"), + mode: LaunchMode.externalApplication, + ), title: S.of(context).cake_pay_title, subTitle: S.of(context).cake_pay_subtitle, ), @@ -75,6 +78,7 @@ class MarketPlacePage extends StatelessWidget { ); } + // TODO: Remove ionia flow/files if we will discard it void _navigatorToGiftCardsPage(BuildContext context) { final walletType = dashboardViewModel.type; diff --git a/lib/utils/feature_flag.dart b/lib/utils/feature_flag.dart new file mode 100644 index 000000000..2b0d5a2b9 --- /dev/null +++ b/lib/utils/feature_flag.dart @@ -0,0 +1,3 @@ +class FeatureFlag { + static const bool isCakePayEnabled = false; +} \ No newline at end of file