fix ui for monero batch sending

This commit is contained in:
Serhii 2025-03-25 15:20:06 +02:00
parent 0aa563ead7
commit 4827b17bfe
2 changed files with 22 additions and 10 deletions

View file

@ -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>(

View file

@ -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: [