invoice -> details

This commit is contained in:
sneurlax 2023-01-24 17:17:34 -06:00
parent c330cf973c
commit d03417782d
2 changed files with 7 additions and 7 deletions

View file

@ -11,21 +11,21 @@ import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
import 'package:stackwallet/widgets/desktop/primary_button.dart';
import 'package:stackwallet/widgets/rounded_white_container.dart';
class BuyOrderInvoiceView extends StatefulWidget {
const BuyOrderInvoiceView({
class BuyOrderDetailsView extends StatefulWidget {
const BuyOrderDetailsView({
Key? key,
required this.order,
}) : super(key: key);
final SimplexOrder order;
static const String routeName = "/buyOrderInvoice";
static const String routeName = "/buyOrderDetails";
@override
State<BuyOrderInvoiceView> createState() => _BuyOrderInvoiceViewState();
State<BuyOrderDetailsView> createState() => _BuyOrderDetailsViewState();
}
class _BuyOrderInvoiceViewState extends State<BuyOrderInvoiceView> {
class _BuyOrderDetailsViewState extends State<BuyOrderDetailsView> {
final isDesktop = Util.isDesktop;
@override

View file

@ -4,7 +4,7 @@ import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';
import 'package:stackwallet/models/buy/response_objects/order.dart';
import 'package:stackwallet/models/buy/response_objects/quote.dart';
import 'package:stackwallet/pages/buy_view/buy_order_invoice.dart';
import 'package:stackwallet/pages/buy_view/buy_order_details.dart';
import 'package:stackwallet/services/buy/buy_response.dart';
import 'package:stackwallet/services/buy/simplex/simplex_api.dart';
import 'package:stackwallet/utilities/assets.dart';
@ -38,7 +38,7 @@ class BuyWarningPopup extends StatelessWidget {
Future<void> _buyInvoice() async {
await showDialog<void>(
context: context,
builder: (context) => BuyOrderInvoiceView(
builder: (context) => BuyOrderDetailsView(
order: order as SimplexOrder,
),
);