mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-09-29 18:01:06 +00:00
set wallet coin in exchange view
This commit is contained in:
parent
cbbbbc0796
commit
a5a2dcef64
1 changed files with 10 additions and 0 deletions
|
@ -618,6 +618,16 @@ class _ExchangeFormState extends ConsumerState<ExchangeForm> {
|
||||||
if (walletInitiated) {
|
if (walletInitiated) {
|
||||||
WidgetsBinding.instance.addPostFrameCallback((timeStamp) {
|
WidgetsBinding.instance.addPostFrameCallback((timeStamp) {
|
||||||
ref.read(exchangeFormStateProvider).reset(shouldNotifyListeners: true);
|
ref.read(exchangeFormStateProvider).reset(shouldNotifyListeners: true);
|
||||||
|
ExchangeDataLoadingService.instance
|
||||||
|
.getAggregateCurrency(
|
||||||
|
coin!.ticker,
|
||||||
|
ExchangeRateType.estimated,
|
||||||
|
)
|
||||||
|
.then((value) {
|
||||||
|
if (value != null) {
|
||||||
|
ref.read(exchangeFormStateProvider).updateSendCurrency(value, true);
|
||||||
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
_sendController.text =
|
_sendController.text =
|
||||||
|
|
Loading…
Reference in a new issue