payam-zahedi / toastification

Toastification is a Flutter package for displaying customizable toast messages. It provides predefined widgets for success, error, warning, and info messages, as well as a custom widget for flexibility. With Toastification, you can add and manage multiple toast messages at the same time with ease.
https://payamzahedi.com/toastification/
BSD 3-Clause "New" or "Revised" License
586 stars 45 forks source link

Add possibility to change clipBehaviour of AnimatedList #107

Closed komakur closed 5 months ago

komakur commented 6 months ago

Is your feature request related to a problem? Please describe. No.

Describe the solution you'd like Either add new argument to config, or just change AnimatedLis.clipBehaviour to clipBehavior: Clip.none in toastification.manager.dart.

Additional context If every item has a shadow, it will be clipped by AnimatedList, so I need to add padding to my item to fix this. Better solution would be to pass clipBehavior or just to 'disable' it. Thus, making clip behaviour none, increases performance. It also quite useless to have clipbehavior with notifications as they should "float" anyway

shadow is clipped image As you can see the shadow of items is being clipped.

And after I changed clipBehavior to none: after I change clipBehavior

payam-zahedi commented 5 months ago

Thanks @komakur Yes it will make sense

In the next version, we will use ClipBehavior.none as default value

and also user will be able to set it through the Configuration

payam-zahedi commented 5 months ago

@komakur

If you would like to work on it, please don't hesitate.

komakur commented 5 months ago

@payam-zahedi yeah, I can work on it