don't pad the close button so far away from the corner of the dialog

This commit is contained in:
sneurlax 2023-10-18 11:31:59 -05:00
parent 2d04e9d857
commit 05ab819f69

View file

@ -42,7 +42,7 @@ class _FusionDialogViewState extends ConsumerState<FusionDialogView> {
child: Padding( child: Padding(
padding: const EdgeInsets.only( padding: const EdgeInsets.only(
left: 32, left: 32,
right: 32, right: 0,
top: 0, top: 0,
bottom: 32, bottom: 32,
), ),
@ -60,32 +60,44 @@ class _FusionDialogViewState extends ConsumerState<FusionDialogView> {
), ),
], ],
), ),
const SizedBox(height: 20), Padding(
Text( padding: const EdgeInsets.only(
"Do you really want to cancel the fusion process?", left: 0,
style: STextStyles.smallMed14(context), right: 32,
), top: 0,
const SizedBox(height: 40), bottom: 0,
Row( ),
children: [ child: Column(
Expanded( children: [
child: SecondaryButton( const SizedBox(height: 20),
label: "No", Text(
onPressed: () { "Do you really want to cancel the fusion process?",
Navigator.of(context).pop(false); style: STextStyles.smallMed14(context),
},
), ),
), const SizedBox(height: 40),
const SizedBox(width: 8), Row(
Expanded( children: [
child: PrimaryButton( Expanded(
label: "Yes", child: SecondaryButton(
onPressed: () { label: "No",
Navigator.of(context).pop(true); onPressed: () {
}, Navigator.of(context).pop(false);
},
),
),
const SizedBox(width: 8),
Expanded(
child: PrimaryButton(
label: "Yes",
onPressed: () {
Navigator.of(context).pop(true);
},
),
),
],
), ),
), ],
], ),
), ),
], ],
), ),