I have issue when message have longer text, there can be set overflow for TextStyle, but it do not help it look very weird. Can you help me with that?
final snackBar = SnackBar(
elevation: 0,
behavior: SnackBarBehavior.floating,
backgroundColor: Colors.transparent,
width: double.infinity,
clipBehavior: Clip.none,
content: AwesomeSnackbarContent(
title: 'Title!',
message: 'This is an example error message that will be shown in the body of snackbar!',
messageTextStyle: const TextStyle(
color: Colors.white,
fontSize: StyleConstants.text12,
overflow: TextOverflow.visible,
),
color: backgroundColor,
contentType: ContentType.success,
),
);
Hello,
I have issue when message have longer text, there can be set overflow for TextStyle, but it do not help it look very weird. Can you help me with that?
final snackBar = SnackBar( elevation: 0, behavior: SnackBarBehavior.floating, backgroundColor: Colors.transparent, width: double.infinity, clipBehavior: Clip.none, content: AwesomeSnackbarContent( title: 'Title!', message: 'This is an example error message that will be shown in the body of snackbar!', messageTextStyle: const TextStyle( color: Colors.white, fontSize: StyleConstants.text12, overflow: TextOverflow.visible, ), color: backgroundColor, contentType: ContentType.success, ), );
ScaffoldMessenger.of(context) ..hideCurrentSnackBar() ..showSnackBar(snackBar); }