mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-22 18:44:31 +00:00
move isDesktop out of constructor
This commit is contained in:
parent
2e6dfe0f62
commit
39f5df3158
1 changed files with 2 additions and 1 deletions
|
@ -20,7 +20,6 @@ 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);
|
||||
|
@ -32,6 +31,8 @@ class BuyWarningPopup extends StatelessWidget {
|
|||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final isDesktop = Util.isDesktop;
|
||||
|
||||
return StackDialog(
|
||||
title: "Buy ${quote.crypto.ticker}",
|
||||
message: "This purchase is provided and fulfilled by Simplex by nuvei "
|
||||
|
|
Loading…
Reference in a new issue