Closed OutdatedGuy closed 2 years ago
As Flutter apps runs on different screen sizes, it's not possible to make the toast responsive using just the width and height properties.
width
height
Using MediaQuery.of(context).size can make the toast responsive but can make toasts unnecessarily big than the contents in the toast.
MediaQuery.of(context).size
To have a constraints property which will auto size the toast within the given constraints and size of contents in the toast.
constraints
Thanks a lot for your feedback @OutdatedGuy I will work on it
Use Case
As Flutter apps runs on different screen sizes, it's not possible to make the toast responsive using just the
width
andheight
properties.Using
MediaQuery.of(context).size
can make the toast responsive but can make toasts unnecessarily big than the contents in the toast.Proposal
To have a
constraints
property which will auto size the toast within the givenconstraints
and size of contents in the toast.