fixed profile crash

This commit is contained in:
Kima 2023-09-26 22:11:27 +02:00
parent 129a95f359
commit a9bd11a4d7

View File

@ -41,21 +41,19 @@ class WelcomeMessagePanelButton extends StatelessWidget {
}, },
title: Text("welcome_msg".i18n), title: Text("welcome_msg".i18n),
leading: const Icon(FeatherIcons.smile), leading: const Icon(FeatherIcons.smile),
trailing: SizedBox( trailing: Container(
width: 100, constraints: const BoxConstraints(maxWidth: 100),
child: Expanded( child: Text(
child: Text( settingsProvider.welcomeMessage.replaceAll(' ', '') != ''
settingsProvider.welcomeMessage.replaceAll(' ', '') != '' ? localizeFill(
? localizeFill( settingsProvider.welcomeMessage,
settingsProvider.welcomeMessage, [finalName],
[finalName], )
) : 'default'.i18n,
: 'default'.i18n, style: const TextStyle(fontSize: 14.0),
style: const TextStyle(fontSize: 14.0), textAlign: TextAlign.end,
textAlign: TextAlign.end, softWrap: true,
softWrap: true, overflow: TextOverflow.ellipsis,
overflow: TextOverflow.ellipsis,
),
), ),
), ),
); );