linearGradient property
linearGradient
Sets the gradient background of the ValueBar
- NOTE : If
linearGradient
is given in ValueBar thecolor
property 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;