The Secret To Writing A Flutter Animated Indexed Stack Widget
One of the steps towards Adaptive Scaffold and Canonical Layouts
The chaotic ADHD fueled copy monkey approach is to surrond the indexed stack widget with AnimationSwitcher; notice its not keeping state and throw up your hands. In my uncontrolled ADHD copy monkey days this was certainly the result.
Or, one could look at the IndexedStack source code itself and figure out where the state is being lost. Then re-implement a animation of indexed stack children that works.
AND! Yes, a bonus in that I show you to workaround to use the pre-written PageTransitionsThemes with GoRouter.
This is one more step towards a full working Responsive Animated Adaptive Scaffold and Canonical Layouts solution. You know that one highlighted in the Material Design 3 spec and described as upcoming under resources.
Keep reading with a 7-day free trial
Subscribe to Fred’s Flutter Newsletter to keep reading this post and get 7 days of free access to the full post archives.