Skip to content
This repository was archived by the owner on Jan 9, 2023. It is now read-only.

Commit 5c05736

Browse files
stereotype441domesticmouse
authored andcommitted
Remove workaround for dart-lang/language#1785
PiperOrigin-RevId: 415353392
1 parent c53cb4d commit 5c05736

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

charts_flutter/lib/src/chart_canvas.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,7 @@ class ChartCanvas implements common.ChartCanvas {
150150
common.Color? stroke,
151151
double? strokeWidthPx,
152152
Rectangle<num>? drawAreaBounds}) {
153-
// TODO: remove this explicit `bool` type when no longer needed
154-
// to work around https://github.com/dart-lang/language/issues/1785
155-
final bool drawStroke =
153+
final drawStroke =
156154
(strokeWidthPx != null && strokeWidthPx > 0.0 && stroke != null);
157155

158156
final strokeWidthOffset = (drawStroke ? strokeWidthPx : 0);

charts_flutter/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Material Design charting library for flutter.
44
homepage: https://github.com/google/charts
55

66
environment:
7-
sdk: '>=2.12.0 <3.0.0'
7+
sdk: '>=2.15.0 <3.0.0'
88
flutter: '>=2.5.0'
99

1010
dependencies:

0 commit comments

Comments
 (0)