From a9bd11a4d7f7b5ea0734f7c558c7d09ce1536d0f Mon Sep 17 00:00:00 2001 From: Kima Date: Tue, 26 Sep 2023 22:11:27 +0200 Subject: [PATCH] fixed profile crash --- .../ui/mobile/settings/welcome_message.dart | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/filcnaplo_premium/lib/ui/mobile/settings/welcome_message.dart b/filcnaplo_premium/lib/ui/mobile/settings/welcome_message.dart index 5e412f9..9bc7575 100644 --- a/filcnaplo_premium/lib/ui/mobile/settings/welcome_message.dart +++ b/filcnaplo_premium/lib/ui/mobile/settings/welcome_message.dart @@ -41,21 +41,19 @@ class WelcomeMessagePanelButton extends StatelessWidget { }, title: Text("welcome_msg".i18n), leading: const Icon(FeatherIcons.smile), - trailing: SizedBox( - width: 100, - child: Expanded( - child: Text( - settingsProvider.welcomeMessage.replaceAll(' ', '') != '' - ? localizeFill( - settingsProvider.welcomeMessage, - [finalName], - ) - : 'default'.i18n, - style: const TextStyle(fontSize: 14.0), - textAlign: TextAlign.end, - softWrap: true, - overflow: TextOverflow.ellipsis, - ), + trailing: Container( + constraints: const BoxConstraints(maxWidth: 100), + child: Text( + settingsProvider.welcomeMessage.replaceAll(' ', '') != '' + ? localizeFill( + settingsProvider.welcomeMessage, + [finalName], + ) + : 'default'.i18n, + style: const TextStyle(fontSize: 14.0), + textAlign: TextAlign.end, + softWrap: true, + overflow: TextOverflow.ellipsis, ), ), );