Here is a simple example of using Gradient in Flutter. Here we are just showing a demo of how to use LinearGradient in Flutter. You can even use the RadialGradient or SweepGradient in the similar way. Watch Video Tutorial Here is the complete example of setting a LinearGradient in a Container. Please leave your valuable comments below.