I want to add animation for switching theme from light to dark or vice versa in flutter like telegram do :
can’t see any way to do it in flutter, is it possible in flutter?
thx for any answer
I want to add animation for switching theme from light to dark or vice versa in flutter like telegram do :
can’t see any way to do it in flutter, is it possible in flutter?
thx for any answer
2
Answers
It’s not hard, but you need to do several things.
update!
I’ve converted our code to a package with simple api.
While @Kherel’s answer above works perfectly fine, I wanted to share my version of this effect.
Here’s my medium blog post explaining this effect
You can find a complete code sample with Usage here https://gist.github.com/maheshmnj/815642f5576ebef0a0747db6854c2a74