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

Limit height of showTopSnackBar #49

Closed
LoiNH opened this issue Dec 25, 2022 · 2 comments
Closed

Limit height of showTopSnackBar #49

LoiNH opened this issue Dec 25, 2022 · 2 comments

Comments

@LoiNH
Copy link

LoiNH commented Dec 25, 2022

Dear,
Currently the height of showTopSnackBar is fixed by 80, in my case the content is overflow that height.
Could you change the height of showTopSnackBar, I think the minimum height of showTopSnackBar is 80, maximum is unlimit.

Thank you so much

@cliftonlabrum
Copy link

If you pass your own widget into the Widget parameter of showTopSnackBar, you can make it any height you want. You can also make it automatically adjust its height depending on how much content is in your widget by wrapping your widget in a Column:

 Column(
  mainAxisSize: MainAxisSize.min,
  children: [
  ...
  ],
),

@cliftonlabrum
Copy link

Possible duplicate of #39.

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

3 participants