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, walletId: widget.walletId,
), ),
if (_succeeded) if (_succeeded)
Expanded( /*Expanded(
child: PrimaryButton( child: */
buttonHeight: ButtonHeight.m, PrimaryButton(
label: "Fuse again", buttonHeight: ButtonHeight.m,
onPressed: () => _fuseAgain, label: "Fuse again",
), onPressed: () => _fuseAgain,
), ),
// ),
if (_failed) if (_failed)
Expanded( /*Expanded(
child: PrimaryButton( child: */
buttonHeight: ButtonHeight.m, PrimaryButton(
label: "Try again", buttonHeight: ButtonHeight.m,
onPressed: () => _fuseAgain, label: "Try again",
), onPressed: () => _fuseAgain,
), ),
// ),
if (!_succeeded && !_failed) const Spacer(), if (!_succeeded && !_failed) const Spacer(),
const SizedBox( const SizedBox(
height: 16, height: 16,

View file

@ -184,22 +184,23 @@ class _FusionDialogViewState extends ConsumerState<FusionDialogView> {
child: Column( child: Column(
children: [ children: [
if (_fusionRoundsCompleted > 0) if (_fusionRoundsCompleted > 0)
Expanded( /*Expanded(
child: RoundedContainer( child: */
color: Theme.of(context) RoundedContainer(
.extension<StackColors>()! color: Theme.of(context)
.snackBarBackInfo, .extension<StackColors>()!
child: Text( .snackBarBackInfo,
"Fusion rounds completed: $_fusionRoundsCompleted", child: Text(
style: STextStyles.w500_14(context).copyWith( "Fusion rounds completed: $_fusionRoundsCompleted",
color: Theme.of(context) style: STextStyles.w500_14(context).copyWith(
.extension<StackColors>()! color: Theme.of(context)
.snackBarTextInfo, .extension<StackColors>()!
), .snackBarTextInfo,
textAlign: TextAlign.center,
), ),
textAlign: TextAlign.center,
), ),
), ),
// ),
if (_fusionRoundsCompleted > 0) if (_fusionRoundsCompleted > 0)
const SizedBox( const SizedBox(
height: 20, height: 20,
@ -213,25 +214,27 @@ class _FusionDialogViewState extends ConsumerState<FusionDialogView> {
Row( Row(
children: [ children: [
if (_succeeded) if (_succeeded)
Expanded( /*Expanded(
child: PrimaryButton( child: */
buttonHeight: ButtonHeight.m, PrimaryButton(
label: "Fuse again", buttonHeight: ButtonHeight.m,
onPressed: () => _fuseAgain, label: "Fuse again",
), onPressed: () => _fuseAgain,
), ),
// ),
if (_succeeded) if (_succeeded)
const SizedBox( const SizedBox(
width: 16, width: 16,
), ),
if (_failed) if (_failed)
Expanded( /*Expanded(
child: PrimaryButton( child: */
buttonHeight: ButtonHeight.m, PrimaryButton(
label: "Try again", buttonHeight: ButtonHeight.m,
onPressed: () => _fuseAgain, label: "Try again",
), onPressed: () => _fuseAgain,
), ),
// ),
if (_failed) if (_failed)
const SizedBox( const SizedBox(
width: 16, width: 16,