stack_wallet/lib/pages/buy_view/buy_view.dart

47 lines
1.1 KiB
Dart
Raw Normal View History

2023-05-26 21:21:16 +00:00
/*
* This file is part of Stack Wallet.
*
* Copyright (c) 2023 Cypher Stack
* All Rights Reserved.
* The code is distributed under GPLv3 license, see LICENSE file for details.
* Generated by Cypher Stack on 2023-05-26
*
*/
2022-08-26 08:11:35 +00:00
import 'package:flutter/material.dart';
import 'package:stackwallet/models/isar/models/ethereum/eth_contract.dart';
import 'package:stackwallet/pages/buy_view/buy_form.dart';
import 'package:stackwallet/utilities/enums/coin_enum.dart';
2022-08-26 08:11:35 +00:00
class BuyView extends StatelessWidget {
const BuyView({
Key? key,
this.coin,
this.tokenContract,
}) : super(key: key);
2022-08-26 08:11:35 +00:00
2023-01-21 02:32:57 +00:00
static const String routeName = "/stackBuyView";
final Coin? coin;
final EthContract? tokenContract;
2022-08-26 08:11:35 +00:00
@override
Widget build(BuildContext context) {
debugPrint("BUILD: $runtimeType");
2023-01-27 20:00:51 +00:00
return SafeArea(
child: Padding(
2023-01-27 20:00:51 +00:00
padding: const EdgeInsets.only(
left: 16,
right: 16,
top: 16,
),
child: BuyForm(
coin: coin,
tokenContract: tokenContract,
),
2022-08-26 08:11:35 +00:00
),
);
2022-08-26 08:11:35 +00:00
}
}