Skip to content

Commit 6e035f0

Browse files
authored
upgrade flutter to 3.22.2 and fix errors (#13)
1 parent 9b67db3 commit 6e035f0

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

charts_common/lib/src/chart/bar/base_bar_renderer.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ class _ReversedSeriesIterable<S extends ImmutableSeries<Object?>>
808808
/// order it was passed in for the grouping, but the series is flipped so that
809809
/// the first series of that category is on the top of the stack.
810810
class _ReversedSeriesIterator<S extends ImmutableSeries<Object?>>
811-
extends Iterator<S> {
811+
implements Iterator<S> {
812812
final List<S> _list;
813813
final _visitIndex = <int>[];
814814
int? _current;

charts_common/lib/src/chart/cartesian/axis/time/time_stepper.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ abstract class TimeStepper {
4545

4646
/// Iterator with a reset function that can be used multiple times to avoid
4747
/// object instantiation during the Android layout/draw phases.
48-
abstract class TimeStepIterator extends Iterator<DateTime> {
48+
abstract class TimeStepIterator implements Iterator<DateTime> {
4949
/// Reset the iterator and set the tickIncrement to the specified value.
5050
///
5151
/// This method is provided so that the same iterator instance can be used for

charts_common/pubspec.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ author: Charts Team <[email protected]>
55
homepage: https://github.com/google/charts
66

77
environment:
8-
sdk: '>=2.12.0 <3.0.0'
8+
sdk: ">=3.4.3 <4.0.0"
99

1010
dependencies:
1111
collection: ^1.14.5
12-
intl: ">=0.15.2 <= 0.19.0"
12+
intl: ">=0.15.2 <= 0.19.0"
1313
logging: any
1414
meta: ^1.1.1
1515
vector_math: ^2.0.8

charts_flutter/lib/src/behaviors/legend/legend_entry_layout.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class SimpleLegendEntryLayout implements LegendEntryLayout {
131131
: null;
132132
if (isHidden) {
133133
// Use a default color for hidden legend entries if none is provided.
134-
color ??= Theme.of(context).textTheme.bodyText2!.color;
134+
color ??= Theme.of(context).textTheme.bodyMedium!.color;
135135
color = color!.withOpacity(0.26);
136136
}
137137

charts_flutter/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: Charts Team <[email protected]>
55
homepage: https://github.com/google/charts
66

77
environment:
8-
sdk: '>=3.0.2 <4.0.0'
8+
sdk: ">=3.4.3 <4.0.0"
99

1010
dependencies:
1111
# Pointing this to a local path allows for pointing to the latest code

0 commit comments

Comments
 (0)