2022-08-26 08:11:35 +00:00
|
|
|
import 'package:flutter/material.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
|
|
|
|
|
|
|
class BuyView extends StatefulWidget {
|
2023-01-27 19:47:41 +00:00
|
|
|
const BuyView({
|
|
|
|
Key? key,
|
|
|
|
this.coin,
|
|
|
|
}) : 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;
|
|
|
|
|
2022-08-26 08:11:35 +00:00
|
|
|
@override
|
|
|
|
State<BuyView> createState() => _BuyViewState();
|
|
|
|
}
|
|
|
|
|
|
|
|
class _BuyViewState extends State<BuyView> {
|
2023-01-27 19:47:41 +00:00
|
|
|
late final Coin? coin;
|
|
|
|
|
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-01-27 20:00:51 +00:00
|
|
|
child: BuyForm(coin: widget.coin),
|
2022-08-26 08:11:35 +00:00
|
|
|
),
|
2023-01-14 16:41:02 +00:00
|
|
|
);
|
2022-08-26 08:11:35 +00:00
|
|
|
}
|
|
|
|
}
|