firo (and possibly other) send fix

This commit is contained in:
julian 2022-12-30 12:11:05 -06:00
parent 4b58f3ec60
commit ae8daa4902

View file

@ -140,10 +140,9 @@ class _DesktopSendState extends ConsumerState<DesktopSend> {
const SizedBox( const SizedBox(
height: 40, height: 40,
), ),
Padding( Row(
padding: const EdgeInsets.only( children: [
right: 32, Expanded(
),
child: SecondaryButton( child: SecondaryButton(
buttonHeight: ButtonHeight.l, buttonHeight: ButtonHeight.l,
label: "Ok", label: "Ok",
@ -152,6 +151,11 @@ class _DesktopSendState extends ConsumerState<DesktopSend> {
}, },
), ),
), ),
const SizedBox(
width: 32,
),
],
),
], ],
), ),
), ),
@ -319,13 +323,13 @@ class _DesktopSendState extends ConsumerState<DesktopSend> {
} }
if (!wasCancelled && mounted) { if (!wasCancelled && mounted) {
txData["note"] = _note ?? "";
txData["address"] = _address;
// pop building dialog // pop building dialog
Navigator.of( Navigator.of(
context, context,
rootNavigator: true, rootNavigator: true,
).pop(); ).pop();
txData["note"] = _note;
txData["address"] = _address;
unawaited( unawaited(
showDialog( showDialog(
@ -394,14 +398,12 @@ class _DesktopSendState extends ConsumerState<DesktopSend> {
const SizedBox( const SizedBox(
height: 40, height: 40,
), ),
Padding( Row(
padding: const EdgeInsets.only( children: [
right: 32, Expanded(
),
child: Expanded(
child: SecondaryButton( child: SecondaryButton(
buttonHeight: ButtonHeight.l, buttonHeight: ButtonHeight.l,
label: "Yes", label: "Ok",
onPressed: () { onPressed: () {
Navigator.of( Navigator.of(
context, context,
@ -410,6 +412,10 @@ class _DesktopSendState extends ConsumerState<DesktopSend> {
}, },
), ),
), ),
const SizedBox(
width: 32,
),
],
), ),
], ],
), ),