minor fix [skip ci]
OmarHatem committed
Oct 5, 2025 at 17:48 UTC
9214fd63ffd172cea674110c147e1860f073e227
1 file changed
+4
lib/cake_pay/src/cards/cake_pay_buy_card_page.dart
+4
@@ -682,6 +682,10 @@ class CakePayBuyCardPage extends BasePage {
682
683
final BuildContext sheetParentCtx = usePageContextLater ? context : _overlayCtx;
684
685
+ if (!sheetParentCtx.mounted) {
686
+ return;
687
+ }
688
+
689
await showModalBottomSheet<void>(
690
context: sheetParentCtx,
691
useRootNavigator: !usePageContextLater,