Member-only story
Stop Boring Your App User, Wow With Animation
Look, humans respond to animation and if it’s executed right its emphasis that they made the right choice in downloading your flutter app. Theme change by your app user is an opportunity to emphasize to the user of your Flutter app that they made the correct choice in choosing to use your flutter app.
What Are We Building
We are building this:
The only 3rd party package we are using is the rect getter package
What it does is a way to get a child’s rectangle information after rendered.
So now, let me explain how we can animate a theme change.
Theme Change Animation
First, how does the Flutter SDK animate theme changes? Well, through the class called AnimatedTheme: