gradient property

LinearGradient? gradient
final

Here you can pass your Gradient widget to show gradient color as background of AppBar.

Remember ! You must pass true in gradientEnable to show your Gradient.

Example with LinearGradient :

LinearGradient(
  begin: Alignment.centerLeft,
  end: Alignment.centerRight,
  colors: [
    Colors.blue,
    Colors.green,
  ],
)

Implementation

final LinearGradient? gradient;