linearGradient property
linearGradient Sets the gradient background of the ValueBar
- NOTE : If
linearGradientis given in ValueBar thecolorproperty will be ignored
LinearGauge (
valueBar: [
ValueBar(
linearGradient: LinearGradient(
colors: [Colors.blue, Colors.pink],),
value: 20,
enableAnimation: true,
animationType: Curves.linear
)])
const LinearGauge( linearGaugeBoxDecoration: LinearGaugeBoxDecoration(
linearGradient: LinearGradient(
colors: [Colors.blue, Colors.pink],
),
),
),
Implementation
final LinearGradient? linearGradient;