mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 11:59:30 +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>(
|
||||
context: context,
|
||||
builder: (context) => BuyWarningPopup(
|
||||
ticker: widget.quote.crypto.ticker.toUpperCase(),
|
||||
quote: widget.quote,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import 'package:flutter/material.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/widgets/desktop/primary_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 {
|
||||
const BuyWarningPopup({
|
||||
Key? key,
|
||||
required this.ticker,
|
||||
required this.quote,
|
||||
}) : super(key: key);
|
||||
|
||||
final String ticker;
|
||||
final SimplexQuote quote;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return StackDialog(
|
||||
title: "Buy $ticker",
|
||||
title: "Buy ${quote.crypto.ticker}",
|
||||
message: "This purchase is provided and fulfilled by Simplex by nuvei "
|
||||
"(a third party). You will be taken to their website. Please follow "
|
||||
"their instructions.",
|
||||
|
|
Loading…
Reference in a new issue