mhmzdev / awesome_snackbar_content

A beautiful dart package to uplift your SnackBar experiences in the application
https://pub.dev/packages/awesome_snackbar_content
MIT License
100 stars 67 forks source link

Message have big padding from header #41

Open LukasP94 opened 1 month ago

LukasP94 commented 1 month ago

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); } IMG_72A5D82EAFDD-1