Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Message have big padding from header #41

Open
LukasP94 opened this issue Oct 14, 2024 · 0 comments
Open

Message have big padding from header #41

LukasP94 opened this issue Oct 14, 2024 · 0 comments

Comments

@LukasP94
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant