From 6e035f0fd4151b02a2a3ab754aa9f6865508f11f Mon Sep 17 00:00:00 2001 From: Claire Davis Date: Mon, 15 Jul 2024 16:05:30 -0400 Subject: [PATCH] upgrade flutter to 3.22.2 and fix errors (#13) --- charts_common/lib/src/chart/bar/base_bar_renderer.dart | 2 +- .../lib/src/chart/cartesian/axis/time/time_stepper.dart | 2 +- charts_common/pubspec.yaml | 4 ++-- .../lib/src/behaviors/legend/legend_entry_layout.dart | 2 +- charts_flutter/pubspec.yaml | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/charts_common/lib/src/chart/bar/base_bar_renderer.dart b/charts_common/lib/src/chart/bar/base_bar_renderer.dart index 3c57c6a11..937b87157 100644 --- a/charts_common/lib/src/chart/bar/base_bar_renderer.dart +++ b/charts_common/lib/src/chart/bar/base_bar_renderer.dart @@ -808,7 +808,7 @@ class _ReversedSeriesIterable> /// order it was passed in for the grouping, but the series is flipped so that /// the first series of that category is on the top of the stack. class _ReversedSeriesIterator> - extends Iterator { + implements Iterator { final List _list; final _visitIndex = []; int? _current; diff --git a/charts_common/lib/src/chart/cartesian/axis/time/time_stepper.dart b/charts_common/lib/src/chart/cartesian/axis/time/time_stepper.dart index a66f7ef5f..9eeaa75b4 100644 --- a/charts_common/lib/src/chart/cartesian/axis/time/time_stepper.dart +++ b/charts_common/lib/src/chart/cartesian/axis/time/time_stepper.dart @@ -45,7 +45,7 @@ abstract class TimeStepper { /// Iterator with a reset function that can be used multiple times to avoid /// object instantiation during the Android layout/draw phases. -abstract class TimeStepIterator extends Iterator { +abstract class TimeStepIterator implements Iterator { /// Reset the iterator and set the tickIncrement to the specified value. /// /// This method is provided so that the same iterator instance can be used for diff --git a/charts_common/pubspec.yaml b/charts_common/pubspec.yaml index f3ca3b892..47d47b8a1 100644 --- a/charts_common/pubspec.yaml +++ b/charts_common/pubspec.yaml @@ -5,11 +5,11 @@ author: Charts Team homepage: https://github.com/google/charts environment: - sdk: '>=2.12.0 <3.0.0' + sdk: ">=3.4.3 <4.0.0" dependencies: collection: ^1.14.5 - intl: ">=0.15.2 <= 0.19.0" + intl: ">=0.15.2 <= 0.19.0" logging: any meta: ^1.1.1 vector_math: ^2.0.8 diff --git a/charts_flutter/lib/src/behaviors/legend/legend_entry_layout.dart b/charts_flutter/lib/src/behaviors/legend/legend_entry_layout.dart index fe6e791b7..fa38b843b 100644 --- a/charts_flutter/lib/src/behaviors/legend/legend_entry_layout.dart +++ b/charts_flutter/lib/src/behaviors/legend/legend_entry_layout.dart @@ -131,7 +131,7 @@ class SimpleLegendEntryLayout implements LegendEntryLayout { : null; if (isHidden) { // Use a default color for hidden legend entries if none is provided. - color ??= Theme.of(context).textTheme.bodyText2!.color; + color ??= Theme.of(context).textTheme.bodyMedium!.color; color = color!.withOpacity(0.26); } diff --git a/charts_flutter/pubspec.yaml b/charts_flutter/pubspec.yaml index 1115d0dcb..9d8850db2 100644 --- a/charts_flutter/pubspec.yaml +++ b/charts_flutter/pubspec.yaml @@ -5,7 +5,7 @@ author: Charts Team homepage: https://github.com/google/charts environment: - sdk: '>=3.0.2 <4.0.0' + sdk: ">=3.4.3 <4.0.0" dependencies: # Pointing this to a local path allows for pointing to the latest code