mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 17:57:40 +00:00
move simplex load from every select tap to initial buy form load
This commit is contained in:
parent
bdfb1f0a20
commit
7bfcaffc01
1 changed files with 3 additions and 1 deletions
|
@ -264,6 +264,9 @@ class _BuyFormState extends ConsumerState<BuyForm> {
|
||||||
buyWithFiat = ref.watch(
|
buyWithFiat = ref.watch(
|
||||||
prefsChangeNotifierProvider.select((value) => value.buyWithFiat));
|
prefsChangeNotifierProvider.select((value) => value.buyWithFiat));
|
||||||
|
|
||||||
|
BuyDataLoadingService().loadAll(
|
||||||
|
ref); // Why does this need to be called here? Shouldn't it already be called by main.dart?
|
||||||
|
|
||||||
return Container(
|
return Container(
|
||||||
width:
|
width:
|
||||||
458, // TODO test that this displays well on mobile or else put in a ternary or something else appropriate to switch here
|
458, // TODO test that this displays well on mobile or else put in a ternary or something else appropriate to switch here
|
||||||
|
@ -286,7 +289,6 @@ class _BuyFormState extends ConsumerState<BuyForm> {
|
||||||
onExit: (_) => setState(() => _hovering1 = false),
|
onExit: (_) => setState(() => _hovering1 = false),
|
||||||
child: GestureDetector(
|
child: GestureDetector(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
BuyDataLoadingService().loadAll(ref);
|
|
||||||
selectCrypto();
|
selectCrypto();
|
||||||
},
|
},
|
||||||
child: RoundedContainer(
|
child: RoundedContainer(
|
||||||
|
|
Loading…
Reference in a new issue