2022-08-26 08:11:35 +00:00
|
|
|
import 'package:flutter/material.dart';
|
2023-03-28 23:17:59 +00:00
|
|
|
import 'package:stackwallet/models/isar/models/ethereum/eth_contract.dart';
|
2023-01-10 21:25:20 +00:00
|
|
|
import 'package:stackwallet/pages/buy_view/buy_form.dart';
|
2023-01-27 19:47:41 +00:00
|
|
|
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
2022-08-26 08:11:35 +00:00
|
|
|
|
2023-03-28 23:17:59 +00:00
|
|
|
class BuyView extends StatelessWidget {
|
2023-01-27 19:47:41 +00:00
|
|
|
const BuyView({
|
|
|
|
Key? key,
|
|
|
|
this.coin,
|
2023-03-28 23:17:59 +00:00
|
|
|
this.tokenContract,
|
2023-01-27 19:47:41 +00:00
|
|
|
}) : super(key: key);
|
2022-08-26 08:11:35 +00:00
|
|
|
|
2023-01-21 02:32:57 +00:00
|
|
|
static const String routeName = "/stackBuyView";
|
|
|
|
|
2023-01-27 19:47:41 +00:00
|
|
|
final Coin? coin;
|
2023-03-28 23:17:59 +00:00
|
|
|
final EthContract? tokenContract;
|
2023-01-27 19:47:41 +00:00
|
|
|
|
2022-08-26 08:11:35 +00:00
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
2023-01-14 16:41:02 +00:00
|
|
|
debugPrint("BUILD: $runtimeType");
|
2023-01-10 21:25:20 +00:00
|
|
|
|
2023-01-27 20:00:51 +00:00
|
|
|
return SafeArea(
|
2023-01-14 16:41:02 +00:00
|
|
|
child: Padding(
|
2023-01-27 20:00:51 +00:00
|
|
|
padding: const EdgeInsets.only(
|
2023-01-14 16:41:02 +00:00
|
|
|
left: 16,
|
|
|
|
right: 16,
|
|
|
|
top: 16,
|
|
|
|
),
|
2023-03-28 23:17:59 +00:00
|
|
|
child: BuyForm(
|
|
|
|
coin: coin,
|
|
|
|
tokenContract: tokenContract,
|
|
|
|
),
|
2022-08-26 08:11:35 +00:00
|
|
|
),
|
2023-01-14 16:41:02 +00:00
|
|
|
);
|
2022-08-26 08:11:35 +00:00
|
|
|
}
|
|
|
|
}
|