mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 17:57:40 +00:00
disable problematic Expand()s
This commit is contained in:
parent
bafc4d302f
commit
45d21c2304
2 changed files with 42 additions and 37 deletions
|
@ -166,21 +166,23 @@ class _FusionProgressViewState extends ConsumerState<FusionProgressView> {
|
|||
walletId: widget.walletId,
|
||||
),
|
||||
if (_succeeded)
|
||||
Expanded(
|
||||
child: PrimaryButton(
|
||||
buttonHeight: ButtonHeight.m,
|
||||
label: "Fuse again",
|
||||
onPressed: () => _fuseAgain,
|
||||
),
|
||||
/*Expanded(
|
||||
child: */
|
||||
PrimaryButton(
|
||||
buttonHeight: ButtonHeight.m,
|
||||
label: "Fuse again",
|
||||
onPressed: () => _fuseAgain,
|
||||
),
|
||||
// ),
|
||||
if (_failed)
|
||||
Expanded(
|
||||
child: PrimaryButton(
|
||||
buttonHeight: ButtonHeight.m,
|
||||
label: "Try again",
|
||||
onPressed: () => _fuseAgain,
|
||||
),
|
||||
/*Expanded(
|
||||
child: */
|
||||
PrimaryButton(
|
||||
buttonHeight: ButtonHeight.m,
|
||||
label: "Try again",
|
||||
onPressed: () => _fuseAgain,
|
||||
),
|
||||
// ),
|
||||
if (!_succeeded && !_failed) const Spacer(),
|
||||
const SizedBox(
|
||||
height: 16,
|
||||
|
|
|
@ -184,22 +184,23 @@ class _FusionDialogViewState extends ConsumerState<FusionDialogView> {
|
|||
child: Column(
|
||||
children: [
|
||||
if (_fusionRoundsCompleted > 0)
|
||||
Expanded(
|
||||
child: RoundedContainer(
|
||||
color: Theme.of(context)
|
||||
.extension<StackColors>()!
|
||||
.snackBarBackInfo,
|
||||
child: Text(
|
||||
"Fusion rounds completed: $_fusionRoundsCompleted",
|
||||
style: STextStyles.w500_14(context).copyWith(
|
||||
color: Theme.of(context)
|
||||
.extension<StackColors>()!
|
||||
.snackBarTextInfo,
|
||||
),
|
||||
textAlign: TextAlign.center,
|
||||
/*Expanded(
|
||||
child: */
|
||||
RoundedContainer(
|
||||
color: Theme.of(context)
|
||||
.extension<StackColors>()!
|
||||
.snackBarBackInfo,
|
||||
child: Text(
|
||||
"Fusion rounds completed: $_fusionRoundsCompleted",
|
||||
style: STextStyles.w500_14(context).copyWith(
|
||||
color: Theme.of(context)
|
||||
.extension<StackColors>()!
|
||||
.snackBarTextInfo,
|
||||
),
|
||||
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(
|
||||
buttonHeight: ButtonHeight.m,
|
||||
label: "Fuse again",
|
||||
onPressed: () => _fuseAgain,
|
||||
),
|
||||
/*Expanded(
|
||||
child: */
|
||||
PrimaryButton(
|
||||
buttonHeight: ButtonHeight.m,
|
||||
label: "Fuse again",
|
||||
onPressed: () => _fuseAgain,
|
||||
),
|
||||
// ),
|
||||
if (_succeeded)
|
||||
const SizedBox(
|
||||
width: 16,
|
||||
),
|
||||
if (_failed)
|
||||
Expanded(
|
||||
child: PrimaryButton(
|
||||
buttonHeight: ButtonHeight.m,
|
||||
label: "Try again",
|
||||
onPressed: () => _fuseAgain,
|
||||
),
|
||||
/*Expanded(
|
||||
child: */
|
||||
PrimaryButton(
|
||||
buttonHeight: ButtonHeight.m,
|
||||
label: "Try again",
|
||||
onPressed: () => _fuseAgain,
|
||||
),
|
||||
// ),
|
||||
if (_failed)
|
||||
const SizedBox(
|
||||
width: 16,
|
||||
|
|
Loading…
Reference in a new issue