pass coin as arg

This commit is contained in:
sneurlax 2023-01-27 14:00:51 -06:00
parent 9f40e11385
commit 0fddad94e6
2 changed files with 4 additions and 4 deletions

View file

@ -37,7 +37,7 @@ class _BuyInWalletViewState extends State<BuyInWalletView> {
}, },
), ),
title: Text( title: Text(
"Buy ", "Buy ${widget.coin?.ticker}",
style: STextStyles.navBarTitle(context), style: STextStyles.navBarTitle(context),
), ),
), ),

View file

@ -23,14 +23,14 @@ class _BuyViewState extends State<BuyView> {
Widget build(BuildContext context) { Widget build(BuildContext context) {
debugPrint("BUILD: $runtimeType"); debugPrint("BUILD: $runtimeType");
return const SafeArea( return SafeArea(
child: Padding( child: Padding(
padding: EdgeInsets.only( padding: const EdgeInsets.only(
left: 16, left: 16,
right: 16, right: 16,
top: 16, top: 16,
), ),
child: BuyForm(), child: BuyForm(coin: widget.coin),
), ),
); );
} }