From 3fd6a472707474ce1a212444716be49f79299b8f Mon Sep 17 00:00:00 2001 From: Ming Ming Date: Sun, 23 Jul 2023 16:38:02 +0800 Subject: [PATCH] Fix account dialog when theme switch is hidden --- app/lib/widget/account_picker_dialog.dart | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/app/lib/widget/account_picker_dialog.dart b/app/lib/widget/account_picker_dialog.dart index 51dfb33b..339fc702 100644 --- a/app/lib/widget/account_picker_dialog.dart +++ b/app/lib/widget/account_picker_dialog.dart @@ -100,14 +100,11 @@ class _WrappedAccountPickerDialog extends StatelessWidget { children: [ const SizedBox(height: 8), Stack( + alignment: Alignment.center, children: [ - Positioned.fill( - child: Center( - child: Text( - L10n.global().appTitle, - style: Theme.of(context).textTheme.headlineSmall, - ), - ), + Text( + L10n.global().appTitle, + style: Theme.of(context).textTheme.headlineSmall, ), if (!Pref().isFollowSystemThemeOr(false)) Align(