From 16c2249483126fa5f7e33b91d71ce4c30a5047e1 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Tue, 22 Jun 2021 17:56:15 +0200 Subject: [PATCH] fix: Bootstrap dialog --- lib/pages/bootstrap_dialog.dart | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/pages/bootstrap_dialog.dart b/lib/pages/bootstrap_dialog.dart index 6022dae3..836ad537 100644 --- a/lib/pages/bootstrap_dialog.dart +++ b/lib/pages/bootstrap_dialog.dart @@ -69,7 +69,9 @@ class _BootstrapDialogState extends State { Widget build(BuildContext context) { _wipe ??= widget.wipe; final buttons = []; - Widget body = LinearProgressIndicator(); + Widget body = PlatformInfos.isCupertinoStyle + ? CupertinoActivityIndicator() + : LinearProgressIndicator(); titleText = L10n.of(context).loadingPleaseWait; if (bootstrap == null) { @@ -236,11 +238,7 @@ class _BootstrapDialogState extends State { case BootstrapState.askBadSsss: case BootstrapState.error: titleText = L10n.of(context).oopsSomethingWentWrong; - body = ListTile( - contentPadding: EdgeInsets.zero, - leading: Icon(Icons.error_outline, color: Colors.red), - title: Text(L10n.of(context).oopsSomethingWentWrong), - ); + body = Icon(Icons.error_outline, color: Colors.red, size: 40); buttons.add(AdaptiveFlatButton( label: L10n.of(context).close, onPressed: () => @@ -249,10 +247,12 @@ class _BootstrapDialogState extends State { break; case BootstrapState.done: titleText = L10n.of(context).everythingReady; - body = ListTile( - contentPadding: EdgeInsets.zero, - leading: Icon(Icons.check_circle, color: Colors.green), - title: Text(L10n.of(context).keysCached), + body = Column( + mainAxisSize: MainAxisSize.min, + children: [ + Icon(Icons.check_circle, color: Colors.green, size: 40), + Text(L10n.of(context).keysCached), + ], ); buttons.add(AdaptiveFlatButton( label: L10n.of(context).close,