diff --git a/lib/pages_desktop_specific/cashfusion/sub_widgets/fusion_dialog.dart b/lib/pages_desktop_specific/cashfusion/sub_widgets/fusion_dialog.dart index a3f1911c7..1e6099cd4 100644 --- a/lib/pages_desktop_specific/cashfusion/sub_widgets/fusion_dialog.dart +++ b/lib/pages_desktop_specific/cashfusion/sub_widgets/fusion_dialog.dart @@ -15,6 +15,7 @@ import 'package:stackwallet/widgets/desktop/desktop_dialog_close_button.dart'; import 'package:stackwallet/widgets/desktop/primary_button.dart'; import 'package:stackwallet/widgets/desktop/secondary_button.dart'; import 'package:stackwallet/widgets/rounded_container.dart'; +import 'package:stackwallet/widgets/rounded_white_container.dart'; enum CashFusionStatus { waiting, running, success, failed } @@ -182,42 +183,35 @@ class _FusionDialogViewState extends ConsumerState { bottom: 32, ), child: Column( + crossAxisAlignment: CrossAxisAlignment.stretch, children: [ - if (_fusionRoundsCompleted == 0) - Expanded( - child: RoundedContainer( - color: Theme.of(context) - .extension()! - .snackBarBackError, - child: Text( - "Do not close this window. If you exit, " - "the process will be canceled.", - style: STextStyles.smallMed14(context).copyWith( - color: Theme.of(context) - .extension()! - .snackBarTextError, + _fusionRoundsCompleted > 0 + ? RoundedWhiteContainer( + child: Text( + "Fusion rounds completed: $_fusionRoundsCompleted", + style: STextStyles.w500_14(context).copyWith( + color: Theme.of(context) + .extension()! + .textSubtitle1, + ), + textAlign: TextAlign.center, ), - textAlign: TextAlign.center, - ), - ), - ), - if (_fusionRoundsCompleted > 0) - Expanded( - child: RoundedContainer( - color: Theme.of(context) - .extension()! - .snackBarBackInfo, - child: Text( - "Fusion rounds completed: $_fusionRoundsCompleted", - style: STextStyles.w500_14(context).copyWith( - color: Theme.of(context) - .extension()! - .snackBarTextInfo, + ) + : RoundedContainer( + color: Theme.of(context) + .extension()! + .snackBarBackError, + child: Text( + "Do not close this window. If you exit, " + "the process will be canceled.", + style: STextStyles.smallMed14(context).copyWith( + color: Theme.of(context) + .extension()! + .snackBarTextError, + ), + textAlign: TextAlign.center, ), - textAlign: TextAlign.center, ), - ), - ), const SizedBox( height: 20, ),