fix:bottom sheet navigation context (#2178)
Serhii committed
Apr 8, 2025 at 20:04 UTC
29bc130562da073db1598fd3bffd8f4c3c36f272
1 file changed
+8
-6
lib/src/screens/send/send_page.dart
+8
-6
@@ -639,12 +639,14 @@ class SendPage extends BasePage {
639
actionButtonKey: ValueKey('send_page_sent_dialog_ok_button_key'),
640
actionButton: () {
641
Navigator.of(bottomSheetContext).pop();
642
- if (context.mounted) {
643
- Navigator.of(context)
644
- .pushNamedAndRemoveUntil(Routes.dashboard, (route) => false);
645
- }
646
- RequestReviewHandler.requestReview();
647
- newContactAddress = null;
642
+ Future.delayed(Duration.zero, () {
643
+ if (context.mounted) {
644
+ Navigator.of(context)
645
+ .pushNamedAndRemoveUntil(Routes.dashboard, (route) => false);
646
+ }
647
+ RequestReviewHandler.requestReview();
648
+ newContactAddress = null;
649
+ });
650
},
651
);
652
},