fixed profile crash

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

View File

@ -41,9 +41,8 @@ class WelcomeMessagePanelButton extends StatelessWidget {
},
title: Text("welcome_msg".i18n),
leading: const Icon(FeatherIcons.smile),
trailing: SizedBox(
width: 100,
child: Expanded(
trailing: Container(
constraints: const BoxConstraints(maxWidth: 100),
child: Text(
settingsProvider.welcomeMessage.replaceAll(' ', '') != ''
? localizeFill(
@ -57,7 +56,6 @@ class WelcomeMessagePanelButton extends StatelessWidget {
overflow: TextOverflow.ellipsis,
),
),
),
);
}
}