mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 12:29:51 +00:00
fix ui for monero batch sending
This commit is contained in:
parent
0aa563ead7
commit
4827b17bfe
2 changed files with 22 additions and 10 deletions
|
@ -493,7 +493,7 @@ class SendPage extends BasePage {
|
|||
bitcoin!.updateFeeRates(sendViewModel.wallet);
|
||||
}
|
||||
|
||||
reaction((_) => sendViewModel.state, (ExecutionState state) {
|
||||
reaction((_) => sendViewModel.state, (ExecutionState state) async {
|
||||
if (dialogContext != null && dialogContext?.mounted == true) {
|
||||
Navigator.of(dialogContext!).pop();
|
||||
}
|
||||
|
@ -522,6 +522,15 @@ class SendPage extends BasePage {
|
|||
}
|
||||
|
||||
if (state is IsExecutingState) {
|
||||
|
||||
if (sendViewModel.wallet.type == WalletType.monero) {
|
||||
await Future.delayed(const Duration(milliseconds: 200));
|
||||
final currentState = sendViewModel.state;
|
||||
if (currentState is ExecutedSuccessfullyState || currentState is FailureState) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
if (context.mounted) {
|
||||
showModalBottomSheet<void>(
|
||||
|
|
|
@ -403,15 +403,18 @@ class AddressExpansionTile extends StatelessWidget {
|
|||
children: [
|
||||
Expanded(
|
||||
child: Text(isBatchSending ? name : contactType,
|
||||
style: itemTitleTextStyle, softWrap: true)),
|
||||
Text(isBatchSending ? amount : name,
|
||||
style: TextStyle(
|
||||
fontSize: 14,
|
||||
fontFamily: 'Lato',
|
||||
fontWeight: FontWeight.w600,
|
||||
color: Theme.of(context).extension<CakeTextTheme>()!.titleColor,
|
||||
decoration: TextDecoration.none,
|
||||
)),
|
||||
style: itemTitleTextStyle)),
|
||||
Expanded(
|
||||
child: Text(isBatchSending ? amount : name,
|
||||
textAlign: TextAlign.end,
|
||||
style: TextStyle(
|
||||
fontSize: 14,
|
||||
fontFamily: 'Lato',
|
||||
fontWeight: FontWeight.w600,
|
||||
color: Theme.of(context).extension<CakeTextTheme>()!.titleColor,
|
||||
decoration: TextDecoration.none,
|
||||
)),
|
||||
),
|
||||
],
|
||||
),
|
||||
children: [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue