mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 09:47:37 +00:00
fix nav pop desktop issue
This commit is contained in:
parent
b30976c0f0
commit
9a0de2e7f6
1 changed files with 3 additions and 1 deletions
|
@ -8,6 +8,7 @@ import 'package:stackwallet/models/buy/response_objects/quote.dart';
|
|||
import 'package:stackwallet/services/buy/buy_response.dart';
|
||||
import 'package:stackwallet/services/buy/simplex/simplex_api.dart';
|
||||
import 'package:stackwallet/utilities/assets.dart';
|
||||
import 'package:stackwallet/utilities/util.dart';
|
||||
import 'package:stackwallet/widgets/desktop/primary_button.dart';
|
||||
import 'package:stackwallet/widgets/desktop/secondary_button.dart';
|
||||
import 'package:stackwallet/widgets/stack_dialog.dart';
|
||||
|
@ -19,6 +20,7 @@ class BuyWarningPopup extends StatelessWidget {
|
|||
}) : super(key: key);
|
||||
|
||||
final SimplexQuote quote;
|
||||
final isDesktop = Util.isDesktop;
|
||||
|
||||
Future<BuyResponse<SimplexOrder>> newOrder(SimplexQuote quote) async {
|
||||
return SimplexAPI.instance.newOrder(quote);
|
||||
|
@ -37,7 +39,7 @@ class BuyWarningPopup extends StatelessWidget {
|
|||
"their instructions.",
|
||||
leftButton: SecondaryButton(
|
||||
label: "Cancel",
|
||||
onPressed: Navigator.of(context).pop,
|
||||
onPressed: Navigator.of(context, rootNavigator: isDesktop).pop,
|
||||
),
|
||||
rightButton: PrimaryButton(
|
||||
label: "Continue",
|
||||
|
|
Loading…
Reference in a new issue