Skip to content

Commit

Permalink
Fix deprecated constructor warning in bar_chart_painter
Browse files Browse the repository at this point in the history
Signed-off-by: Shripal Jain <[email protected]>
  • Loading branch information
shripal17 committed Jan 16, 2021
1 parent 7a951d4 commit 2c5a3dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/chart/bar_chart/bar_chart_painter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class BarChartPainter extends AxisChartPainter<BarChartData> with TouchHandler<B
Size viewSize, List<BarChartGroupData> barGroups, BarChartAlignment alignment) {
final Size drawSize = getChartUsableDrawSize(viewSize);

final List<double> groupsX = List<double>(barGroups.length);
final List<double> groupsX = List.filled(barGroups.length, 0, growable: false);

final double leftTextsSpace = getLeftOffsetDrawSize();

Expand Down

0 comments on commit 2c5a3dc

Please sign in to comment.