Check out example codes for "how to load gif in flutter". It will help you in understanding the concepts better.

Code Example 1

Image.asset(
                    "images/loading.gif",
                    height: 125.0,
                    width: 125.0,
                  )

Learn ReactJs, React Native from akashmittal.com