Skip to content

Commit

Permalink
Merge pull request #540 from albertms10/fix-list-constructor
Browse files Browse the repository at this point in the history
refactor(bar_chart_painter): change list constructor to filled
  • Loading branch information
imaNNeo authored Jan 30, 2021
2 parents ac10774 + f267194 commit 2629fdd
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 drawSize = getChartUsableDrawSize(viewSize);

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

final leftTextsSpace = getLeftOffsetDrawSize();

Expand Down

0 comments on commit 2629fdd

Please sign in to comment.