disable problematic Expand()s

This commit is contained in:
sneurlax 2023-10-19 16:56:16 -05:00
parent bafc4d302f
commit 45d21c2304
2 changed files with 42 additions and 37 deletions

View file

@ -166,21 +166,23 @@ class _FusionProgressViewState extends ConsumerState<FusionProgressView> {
walletId: widget.walletId,
),
if (_succeeded)
Expanded(
child: PrimaryButton(
/*Expanded(
child: */
PrimaryButton(
buttonHeight: ButtonHeight.m,
label: "Fuse again",
onPressed: () => _fuseAgain,
),
),
// ),
if (_failed)
Expanded(
child: PrimaryButton(
/*Expanded(
child: */
PrimaryButton(
buttonHeight: ButtonHeight.m,
label: "Try again",
onPressed: () => _fuseAgain,
),
),
// ),
if (!_succeeded && !_failed) const Spacer(),
const SizedBox(
height: 16,

View file

@ -184,8 +184,9 @@ class _FusionDialogViewState extends ConsumerState<FusionDialogView> {
child: Column(
children: [
if (_fusionRoundsCompleted > 0)
Expanded(
child: RoundedContainer(
/*Expanded(
child: */
RoundedContainer(
color: Theme.of(context)
.extension<StackColors>()!
.snackBarBackInfo,
@ -199,7 +200,7 @@ class _FusionDialogViewState extends ConsumerState<FusionDialogView> {
textAlign: TextAlign.center,
),
),
),
// ),
if (_fusionRoundsCompleted > 0)
const SizedBox(
height: 20,
@ -213,25 +214,27 @@ class _FusionDialogViewState extends ConsumerState<FusionDialogView> {
Row(
children: [
if (_succeeded)
Expanded(
child: PrimaryButton(
/*Expanded(
child: */
PrimaryButton(
buttonHeight: ButtonHeight.m,
label: "Fuse again",
onPressed: () => _fuseAgain,
),
),
// ),
if (_succeeded)
const SizedBox(
width: 16,
),
if (_failed)
Expanded(
child: PrimaryButton(
/*Expanded(
child: */
PrimaryButton(
buttonHeight: ButtonHeight.m,
label: "Try again",
onPressed: () => _fuseAgain,
),
),
// ),
if (_failed)
const SizedBox(
width: 16,