mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-24 12:29:37 +00:00
pass the whole quote, not just the ticker
This commit is contained in:
parent
4543725b1a
commit
4a13189927
2 changed files with 5 additions and 4 deletions
|
@ -33,7 +33,7 @@ class _BuyQuotePreviewViewState extends State<BuyQuotePreviewView> {
|
||||||
await showDialog<void>(
|
await showDialog<void>(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (context) => BuyWarningPopup(
|
builder: (context) => BuyWarningPopup(
|
||||||
ticker: widget.quote.crypto.ticker.toUpperCase(),
|
quote: widget.quote,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_svg/svg.dart';
|
import 'package:flutter_svg/svg.dart';
|
||||||
|
import 'package:stackwallet/models/buy/response_objects/quote.dart';
|
||||||
import 'package:stackwallet/utilities/assets.dart';
|
import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/widgets/desktop/primary_button.dart';
|
import 'package:stackwallet/widgets/desktop/primary_button.dart';
|
||||||
import 'package:stackwallet/widgets/desktop/secondary_button.dart';
|
import 'package:stackwallet/widgets/desktop/secondary_button.dart';
|
||||||
|
@ -8,15 +9,15 @@ import 'package:stackwallet/widgets/stack_dialog.dart';
|
||||||
class BuyWarningPopup extends StatelessWidget {
|
class BuyWarningPopup extends StatelessWidget {
|
||||||
const BuyWarningPopup({
|
const BuyWarningPopup({
|
||||||
Key? key,
|
Key? key,
|
||||||
required this.ticker,
|
required this.quote,
|
||||||
}) : super(key: key);
|
}) : super(key: key);
|
||||||
|
|
||||||
final String ticker;
|
final SimplexQuote quote;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return StackDialog(
|
return StackDialog(
|
||||||
title: "Buy $ticker",
|
title: "Buy ${quote.crypto.ticker}",
|
||||||
message: "This purchase is provided and fulfilled by Simplex by nuvei "
|
message: "This purchase is provided and fulfilled by Simplex by nuvei "
|
||||||
"(a third party). You will be taken to their website. Please follow "
|
"(a third party). You will be taken to their website. Please follow "
|
||||||
"their instructions.",
|
"their instructions.",
|
||||||
|
|
Loading…
Reference in a new issue