stack_wallet/lib/pages/buy_view/buy_view.dart

38 lines
792 B
Dart
Raw Normal View History

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