gradient property
Background gradient applied to the image container.
Example
Image(
'https://example.com/avatar.png',
gradient: Gradient()..applyLinear(colors: [Colors.purple, Colors.blue]),
)
Implementation
final Gradient? gradient;
Background gradient applied to the image container.
Image(
'https://example.com/avatar.png',
gradient: Gradient()..applyLinear(colors: [Colors.purple, Colors.blue]),
)
final Gradient? gradient;