mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-22 02:24:30 +00:00
quickfix for swapping between exchanges
This commit is contained in:
parent
35dc0e06c2
commit
2359674946
1 changed files with 23 additions and 10 deletions
|
@ -13,6 +13,7 @@ import 'package:stackwallet/utilities/amount/amount.dart';
|
||||||
import 'package:stackwallet/utilities/assets.dart';
|
import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||||
import 'package:stackwallet/utilities/logger.dart';
|
import 'package:stackwallet/utilities/logger.dart';
|
||||||
|
import 'package:stackwallet/utilities/show_loading.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/utilities/util.dart';
|
import 'package:stackwallet/utilities/util.dart';
|
||||||
|
@ -94,11 +95,17 @@ class _ExchangeProviderOptionsState
|
||||||
onTap: () {
|
onTap: () {
|
||||||
if (ref.read(exchangeFormStateProvider).exchange.name !=
|
if (ref.read(exchangeFormStateProvider).exchange.name !=
|
||||||
ChangeNowExchange.exchangeName) {
|
ChangeNowExchange.exchangeName) {
|
||||||
ref.read(exchangeFormStateProvider).updateExchange(
|
showLoading(
|
||||||
exchange: ChangeNowExchange.instance,
|
whileFuture:
|
||||||
shouldUpdateData: true,
|
ref.read(exchangeFormStateProvider).updateExchange(
|
||||||
shouldNotifyListeners: true,
|
exchange: ChangeNowExchange.instance,
|
||||||
);
|
shouldUpdateData: true,
|
||||||
|
shouldNotifyListeners: true,
|
||||||
|
),
|
||||||
|
context: context,
|
||||||
|
message: "Updating rates",
|
||||||
|
isDesktop: isDesktop,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
child: Container(
|
child: Container(
|
||||||
|
@ -333,11 +340,17 @@ class _ExchangeProviderOptionsState
|
||||||
onTap: () {
|
onTap: () {
|
||||||
if (ref.read(exchangeFormStateProvider).exchange.name !=
|
if (ref.read(exchangeFormStateProvider).exchange.name !=
|
||||||
MajesticBankExchange.exchangeName) {
|
MajesticBankExchange.exchangeName) {
|
||||||
ref.read(exchangeFormStateProvider).updateExchange(
|
showLoading(
|
||||||
exchange: MajesticBankExchange.instance,
|
whileFuture:
|
||||||
shouldUpdateData: true,
|
ref.read(exchangeFormStateProvider).updateExchange(
|
||||||
shouldNotifyListeners: true,
|
exchange: MajesticBankExchange.instance,
|
||||||
);
|
shouldUpdateData: true,
|
||||||
|
shouldNotifyListeners: true,
|
||||||
|
),
|
||||||
|
context: context,
|
||||||
|
isDesktop: isDesktop,
|
||||||
|
message: "Updating rates",
|
||||||
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
child: Container(
|
child: Container(
|
||||||
|
|
Loading…
Reference in a new issue