AnimatedProgressBarChart constructor

const AnimatedProgressBarChart({
  1. Key? key,
  2. required ChartData data,
  3. Color currentColor = const Color(0xFF6366F1),
  4. Color previousColor = const Color(0xFFA855F7),
  5. Color averageColor = const Color(0xFFE5E7EB),
  6. Color backgroundColor = const Color(0xFFF9FAFB),
  7. double height = 40.0,
  8. double borderRadius = 20.0,
  9. bool showLegend = true,
  10. List<LegendItem>? customLegend,
  11. TextStyle? titleStyle,
  12. TextStyle? subtitleStyle,
  13. EdgeInsets padding = const EdgeInsets.all(16.0),
  14. double markerWidth = 3.0,
  15. Color markerColor = const Color(0xFF374151),
  16. 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),
});