In this tutorial, we will fork a native Flutter Dismissible widget and create our own DismissibaleStack based on it. We will customize animations, layout, and callbacks of the original widget to achieve what we need.
This is a great way to create a custom widget in real-life projects with time pressure and deadlines.
Environment:
macOS 13.0.1 (22A400)
Flutter 3.3.8
Outline:
00:00 - Intro
00:52 - Base structure, Dismissible widget
04:55 - Fork Dismissible, Multiple children in a stack, dismissing children functionality
23:40 - Stack part implementation, animating cards
43:10 - Adding controller
50:10 - Moving our widget to the main project