RadialTrack constructor
const
RadialTrack({
- Key? key,
- required double start,
- required double end,
- double startAngle = -30,
- int steps = 10,
- double endAngle = 210,
- Color color = Colors.grey,
- bool hideLabels = false,
- bool hideTrack = false,
- double thickness = 10,
- TrackStyle trackStyle = const TrackStyle(labelStyle: TextStyle(fontSize: 12, color: Colors.black), primaryRulersHeight: 25, primaryRulerColor: Colors.black54, secondaryRulerColor: Colors.grey, inverseRulers: false, secondaryRulersHeight: 15, primaryRulersWidth: 1.0, secondaryRulerPerInterval: 4.0),
- LinearGradient? gradient,
- String trackLabelFormater()?,
The RadialTrack is used to set the track of the Radial Gauge.
The start
property is used to set the start value of the Radial Gauge.
The end
property is used to set the end value of the Radial Gauge.
The startAngle
property is used to set the start angle of the Radial Gauge.
The endAngle
property is used to set the end angle of the Radial Gauge.
RadialGauge(
track: RadialTrack(
start: 0,
end: 100,
startAngle: 0,
endAngle: 360,
),
),
Implementation
const RadialTrack({
Key? key,
required this.start,
required this.end,
this.startAngle = -30,
this.steps = 10,
this.endAngle = 210,
this.color = Colors.grey,
this.hideLabels = false,
this.hideTrack = false,
this.thickness = 10,
this.trackStyle = const TrackStyle(
labelStyle: TextStyle(
fontSize: 12,
color: Colors.black,
),
primaryRulersHeight: 25,
primaryRulerColor: Colors.black54,
secondaryRulerColor: Colors.grey,
inverseRulers: false,
secondaryRulersHeight: 15,
primaryRulersWidth: 1.0,
secondaryRulerPerInterval: 4.0,
),
this.gradient,
this.trackLabelFormater,
});