LinearGauge constructor
const
LinearGauge({
- Key? key,
- double? start = 0,
- double? end = 100,
- double? steps = 0,
- bool? showLinearGaugeContainer = true,
- GaugeOrientation? gaugeOrientation = GaugeOrientation.horizontal,
- TextStyle? textStyle = const TextStyle(fontSize: 12.0, color: Color.fromARGB(255, 86, 86, 86), fontStyle: FontStyle.normal, fontWeight: FontWeight.normal),
- double? primaryRulersWidth = 1.0,
- double? primaryRulersHeight = 15.0,
- double? secondaryRulersHeight = 1.0,
- double? secondaryRulersWidth = 1.0,
- double? labelTopMargin = 0.0,
- Color? primaryRulerColor = Colors.black54,
- Color? secondaryRulerColor = Colors.grey,
- LinearGaugeBoxDecoration? linearGaugeBoxDecoration = const LinearGaugeBoxDecoration(),
- LabelStyle? labelStyle = const LabelStyle(),
- double? secondaryRulerPerInterval = 1.0,
- bool showSecondaryRulers = true,
- bool showPrimaryRulers = true,
- double? value = 0,
LinearGauge is a visualization of measurement widget with a linear scale values. Linear Gauge as rich sets of config parameters which can be modified as per requirement
start
and end
is responsible to paint the values as a label.
LinearGauge(
steps: 2,
start: 0,
end: 100,
),
Implementation
const LinearGauge(
{Key? key,
this.start = 0,
this.end = 100,
this.steps = 0,
this.showLinearGaugeContainer = true,
this.gaugeOrientation = GaugeOrientation.horizontal,
this.textStyle = const TextStyle(
fontSize: 12.0,
color: Color.fromARGB(255, 86, 86, 86),
fontStyle: FontStyle.normal,
fontWeight: FontWeight.normal,
),
this.primaryRulersWidth = 1.0,
this.primaryRulersHeight = 15.0,
this.secondaryRulersHeight = 1.0,
this.secondaryRulersWidth = 1.0,
this.labelTopMargin = 0.0,
this.primaryRulerColor = Colors.black54,
this.secondaryRulerColor = Colors.grey,
this.linearGaugeBoxDecoration = const LinearGaugeBoxDecoration(),
this.labelStyle = const LabelStyle(),
this.secondaryRulerPerInterval = 1.0,
this.showSecondaryRulers = true,
this.showPrimaryRulers = true,
this.value = 0})
: super(key: key);