koukibadr / Motion-Toast

https://pub.dev/packages/motion_toast
MIT License
49 stars 18 forks source link

Feature Request: Responsive Toast for all screen sizes #70

Closed OutdatedGuy closed 2 years ago

OutdatedGuy commented 2 years ago

Use Case

As Flutter apps runs on different screen sizes, it's not possible to make the toast responsive using just the width and height 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 given constraints and size of contents in the toast.

koukibadr commented 2 years ago

Thanks a lot for your feedback @OutdatedGuy I will work on it