Is it possible to dismiss dismissable programmatically? Not by swipe, but by let's say button click. The only thing that comes in mind is imitating gesture event with a certain velocity, but this sounds horribly wrong.
A widget that can be dismissed by dragging in the indicated direction. Dragging or flinging this widget in the DismissDirection causes the child to slide out of view.
Flutter Widget - Dismissible() Dismissible takes a child, a background, and a key, and it will detect swipe gestures and animate the child, sliding over the background.
How about considering an AnimatedList instead.
A scrolling container that animates items when they are inserted or removed. This widget is similar to one created by ListView.builder.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With