How to put a Linear Gradient as background color of Container in Flutter?

I want my container Background to be something like this:

Is there any widget in Flutter to achieve this?


Thanks for your help.

Use the decoration property of container as follows:

  decoration: BoxDecoration(
    gradient: LinearGradient(
      begin: Alignment.topLeft,
      end: Alignment(0.8, 0.0), 
      colors: [const Color(0xFFFFFFEE), const Color(0xFF999999)], 
      tileMode: TileMode.repeated,