Prefer lowercase enums

This commit is contained in:
Victor Choueiri authored and Victor Choueiri committed 2018-05-09 23:49:03 +03:00
1 parent 3bcc37359d
commit c09c4497a5
4 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -98,7 +98,7 @@ class _AnimatedRadialChartExampleState
size: _chartSize,
initialChartData: _generateChartData(value),
chartType: CircularChartType.Radial,
edgeStyle: SegmentEdgeStyle.Round,
edgeStyle: SegmentEdgeStyle.round,
percentageValues: true,
holeLabel: '$value%',
labelStyle: _labelStyle,
+4 -4
View File
@@ -17,10 +17,10 @@ enum CircularChartType {
/// Determines how the ends of a chart's segments should be drawn.
enum SegmentEdgeStyle {
/// Segments begin and end with a flat edge.
Flat,
flat,
/// Segments begin and end with a semi-circle.
Round,
round,
}
class AnimatedCircularChart extends StatefulWidget {
@@ -35,7 +35,7 @@ class AnimatedCircularChart extends StatefulWidget {
this.startAngle = _kStartAngle,
this.holeLabel,
this.labelStyle,
this.edgeStyle = SegmentEdgeStyle.Flat,
this.edgeStyle = SegmentEdgeStyle.flat,
}) : assert(size != null),
super(key: key);
@@ -102,7 +102,7 @@ class AnimatedCircularChart extends StatefulWidget {
/// The type of segment edges to be drawn.
///
/// Defaults to [SegmentEdgeStyle.Flat].
/// Defaults to [SegmentEdgeStyle.flat].
final SegmentEdgeStyle edgeStyle;
/// The state from the closest instance of this class that encloses the given context.
+1 -1
View File
@@ -12,7 +12,7 @@ class CircularChart {
CircularChart(
this.stacks,
this.chartType, {
this.edgeStyle = SegmentEdgeStyle.Flat,
this.edgeStyle = SegmentEdgeStyle.flat,
});
final List<CircularChartStack> stacks;
+1 -1
View File
@@ -57,7 +57,7 @@ void _paintChart(Canvas canvas, Size size, CircularChart chart) {
..style = chart.chartType == CircularChartType.Radial
? PaintingStyle.stroke
: PaintingStyle.fill
..strokeCap = chart.edgeStyle == SegmentEdgeStyle.Round
..strokeCap = chart.edgeStyle == SegmentEdgeStyle.round
? StrokeCap.round
: StrokeCap.butt;