In this example, I will share how to fadein a decorationImage in flutter. You might be able to write a new AnimatedDecorationImage by taking part of the code from DecorationImage and editing it, but that would be pretty complicated.
What I’d recommend is instead to use a stack to simulate the same thing as DecorationImage. This would allow you to use the FadeInImage widget.
That would look something like this:
1 2 3 4 5 6 7 8 9 |
Stack( children: [ FadeInImage( placeHolder: MemoryImage(....), image: NetworkImage(...), ), <your widget, I assume a container?> ], ) |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.