mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 20:39: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);
|
bitcoin!.updateFeeRates(sendViewModel.wallet);
|
||||||
}
|
}
|
||||||
|
|
||||||
reaction((_) => sendViewModel.state, (ExecutionState state) {
|
reaction((_) => sendViewModel.state, (ExecutionState state) async {
|
||||||
if (dialogContext != null && dialogContext?.mounted == true) {
|
if (dialogContext != null && dialogContext?.mounted == true) {
|
||||||
Navigator.of(dialogContext!).pop();
|
Navigator.of(dialogContext!).pop();
|
||||||
}
|
}
|
||||||
|
@ -522,6 +522,15 @@ class SendPage extends BasePage {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (state is IsExecutingState) {
|
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((_) {
|
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||||
if (context.mounted) {
|
if (context.mounted) {
|
||||||
showModalBottomSheet<void>(
|
showModalBottomSheet<void>(
|
||||||
|
|
|
@ -403,15 +403,18 @@ class AddressExpansionTile extends StatelessWidget {
|
||||||
children: [
|
children: [
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Text(isBatchSending ? name : contactType,
|
child: Text(isBatchSending ? name : contactType,
|
||||||
style: itemTitleTextStyle, softWrap: true)),
|
style: itemTitleTextStyle)),
|
||||||
Text(isBatchSending ? amount : name,
|
Expanded(
|
||||||
style: TextStyle(
|
child: Text(isBatchSending ? amount : name,
|
||||||
fontSize: 14,
|
textAlign: TextAlign.end,
|
||||||
fontFamily: 'Lato',
|
style: TextStyle(
|
||||||
fontWeight: FontWeight.w600,
|
fontSize: 14,
|
||||||
color: Theme.of(context).extension<CakeTextTheme>()!.titleColor,
|
fontFamily: 'Lato',
|
||||||
decoration: TextDecoration.none,
|
fontWeight: FontWeight.w600,
|
||||||
)),
|
color: Theme.of(context).extension<CakeTextTheme>()!.titleColor,
|
||||||
|
decoration: TextDecoration.none,
|
||||||
|
)),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
children: [
|
children: [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue