DChartSingleBar constructor
const
DChartSingleBar({
- Key? key,
- Color? backgroundColor,
- required Color foregroundColor,
- BorderRadius? radius,
- required double value,
- required double max,
- void onBackground(
- double max
- void onForground(
- double value
- bool? ltr,
- Widget? backgroundLabel,
- AlignmentGeometry? backgroundLabelAlign = Alignment.centerRight,
- EdgeInsetsGeometry? backgroundLabelPadding = const EdgeInsets.all(0),
- Widget? foregroundLabel,
- AlignmentGeometry? foregroundLabelAlign = Alignment.centerRight,
- EdgeInsetsGeometry? foregroundLabelPadding = const EdgeInsets.all(0),
Implementation
const DChartSingleBar({
super.key,
this.backgroundColor,
required this.foregroundColor,
this.radius,
required this.value,
required this.max,
this.onBackground,
this.onForground,
this.ltr,
this.backgroundLabel,
this.backgroundLabelAlign = Alignment.centerRight,
this.backgroundLabelPadding = const EdgeInsets.all(0),
this.foregroundLabel,
this.foregroundLabelAlign = Alignment.centerRight,
this.foregroundLabelPadding = const EdgeInsets.all(0),
});