LanarsInc / top-snackbar-flutter

Modern UI snackbar widget
Other
157 stars 56 forks source link

dynamic height (suggestion) #68

Open vfiruz97 opened 3 weeks ago

vfiruz97 commented 3 weeks ago

Thanks for package. It looks good but it can only shows thee lines of text. Can you add dynamic height? Now its fixed 80 but if you bring that to parameters. The second suggestion is about ability to define title widget.

TijnvandenEijnde commented 4 days ago

@vfiruz97 I don't think the package is actively maintained since the latest release was 16 months ago. If you are using their CustomSnackBar widget, you could consider creating a CustomSnackBar widget based on theirs. Instead of giving it a fixed height you could remove the height attribute of the Container widget and add BoxConstraints using the constraints attribute of the Container widget. Inside the BoxConstraints you can set the minHeight to 80. The Container widget will automatically adjust its height to ensure the content of the child widget is visible.

Depending on your use case you might have to make more changes, I hope this helps.