AnimatedProgressBarChart constructor
const
AnimatedProgressBarChart({
- Key? key,
- required ChartData data,
- Color currentColor = const Color(0xFF6366F1),
- Color previousColor = const Color(0xFFA855F7),
- Color averageColor = const Color(0xFFE5E7EB),
- Color backgroundColor = const Color(0xFFF9FAFB),
- double height = 40.0,
- double borderRadius = 20.0,
- bool showLegend = true,
- List<
LegendItem> ? customLegend, - TextStyle? titleStyle,
- TextStyle? subtitleStyle,
- EdgeInsets padding = const EdgeInsets.all(16.0),
- double markerWidth = 3.0,
- Color markerColor = const Color(0xFF374151),
- Duration animationDuration = const Duration(milliseconds: 1500),
Implementation
const AnimatedProgressBarChart({
super.key,
required this.data,
this.currentColor = const Color(0xFF6366F1),
this.previousColor = const Color(0xFFA855F7),
this.averageColor = const Color(0xFFE5E7EB),
this.backgroundColor = const Color(0xFFF9FAFB),
this.height = 40.0,
this.borderRadius = 20.0,
this.showLegend = true,
this.customLegend,
this.titleStyle,
this.subtitleStyle,
this.padding = const EdgeInsets.all(16.0),
this.markerWidth = 3.0,
this.markerColor = const Color(0xFF374151),
this.animationDuration = const Duration(milliseconds: 1500),
});