I have been using Google Flutter for a recent project. And was wondering if we can apply motion blur in the widget animation. It just makes animations more realistic and soothing. I couldn't find any resources available regarding this.
Has anyone given it a try?
I just gave it a try myself. After finding nothing on the internet about this I came up with my own approach.
I have a spinning Image widget that has sharp edges and thus looks a bit ugly while rotating. I use a
RotationTransitionwidget to animate its rotation.As A child I put a Stack widget containing two
FadeTransitionwidgets that each contain two Versions of the image. One is the default Image and one has the motion blur already applied to (in Photoshop).Then I just created a custom
Curvethat changes the opacity in relation to the speed of the rotation.This of course only applies for images... and only static ones. But it might be exactly what you need.