From 25e318a66b3fc96c943fa0504062474dcac44a45 Mon Sep 17 00:00:00 2001 From: lsaudon Date: Mon, 17 Apr 2023 21:53:50 +0200 Subject: [PATCH] chore: Bump dependencies --- analysis_options.yaml | 1 + example/lib/presentation/menu/menu_row.dart | 3 ++- .../samples/line/line_chart_sample8.dart | 6 +++--- example/pubspec.yaml | 12 ++++++------ lib/fl_chart.dart | 1 + lib/src/chart/radar_chart/radar_chart_painter.dart | 2 +- pubspec.yaml | 10 +++++----- 7 files changed, 19 insertions(+), 16 deletions(-) diff --git a/analysis_options.yaml b/analysis_options.yaml index c840df60a..0ecfaa591 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -4,6 +4,7 @@ analyzer: - "**.mocks.dart" linter: rules: + always_put_required_named_parameters_first: false avoid_bool_literals_in_conditional_expressions: false avoid_positional_boolean_parameters: false comment_references: false diff --git a/example/lib/presentation/menu/menu_row.dart b/example/lib/presentation/menu/menu_row.dart index f1c33b970..9a402b449 100644 --- a/example/lib/presentation/menu/menu_row.dart +++ b/example/lib/presentation/menu/menu_row.dart @@ -35,7 +35,8 @@ class MenuRow extends StatelessWidget { svgPath, width: AppDimens.menuIconSize, height: AppDimens.menuIconSize, - color: AppColors.primary, + colorFilter: + const ColorFilter.mode(AppColors.primary, BlendMode.srcIn), ), const SizedBox( width: 18, diff --git a/example/lib/presentation/samples/line/line_chart_sample8.dart b/example/lib/presentation/samples/line/line_chart_sample8.dart index ca92c9b55..da3d6a706 100644 --- a/example/lib/presentation/samples/line/line_chart_sample8.dart +++ b/example/lib/presentation/samples/line/line_chart_sample8.dart @@ -33,10 +33,10 @@ class _LineChartSample8State extends State { const rawSvg = ''; - final svgRoot = await svg.fromSvgString(rawSvg, rawSvg); + final pictureInfo = + await vg.loadPicture(const SvgStringLoader(rawSvg), null); - final picture = svgRoot.toPicture(); - final sizedPicture = SizedPicture(picture, 14, 14); + final sizedPicture = SizedPicture(pictureInfo.picture, 14, 14); return sizedPicture; } diff --git a/example/pubspec.yaml b/example/pubspec.yaml index a8e3f27e8..03a34e85b 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -11,12 +11,12 @@ dependencies: flutter_web_plugins: sdk: flutter cupertino_icons: ^1.0.5 - google_fonts: ^3.0.1 - flutter_svg: ^1.1.6 + google_fonts: ^4.0.3 + flutter_svg: ^2.0.5 universal_platform: ^1.0.0+1 flutter_staggered_grid_view: ^0.6.2 - url_launcher: ^6.1.8 - go_router: ^6.0.1 + url_launcher: ^6.1.10 + go_router: ^6.5.6 dartx: ^1.1.0 fl_chart: path: ../ @@ -24,7 +24,7 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - flutter_lints: ^2.0.0 + flutter_lints: ^2.0.1 flutter: uses-material-design: true @@ -35,4 +35,4 @@ flutter: assets: - assets/icons/ - - assets/fonts/ \ No newline at end of file + - assets/fonts/ diff --git a/lib/fl_chart.dart b/lib/fl_chart.dart index f0a7e2b5f..d3597fb81 100644 --- a/lib/fl_chart.dart +++ b/lib/fl_chart.dart @@ -1,3 +1,4 @@ +/// A highly customizable Flutter chart library that supports Line Chart, Bar Chart, Pie Chart, Scatter Chart, and Radar Chart. library fl_chart; export 'src/chart/bar_chart/bar_chart.dart'; diff --git a/lib/src/chart/radar_chart/radar_chart_painter.dart b/lib/src/chart/radar_chart/radar_chart_painter.dart index 179593bab..ab09ebc3e 100644 --- a/lib/src/chart/radar_chart/radar_chart_painter.dart +++ b/lib/src/chart/radar_chart/radar_chart_painter.dart @@ -1,4 +1,4 @@ -import 'dart:math' show pi, cos, sin, min; +import 'dart:math' show cos, min, pi, sin; import 'package:fl_chart/fl_chart.dart'; import 'package:fl_chart/src/chart/base/base_chart/base_chart_painter.dart'; diff --git a/pubspec.yaml b/pubspec.yaml index 1945e2823..fabb7af04 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -15,12 +15,12 @@ dependencies: sdk: flutter dev_dependencies: - build_runner: ^2.2.1 + build_runner: ^2.3.3 flutter_test: sdk: flutter - mockito: ^5.3.2 - vector_math: ^2.1.2 #Added to use in some generated codes of mockito - very_good_analysis: ^3.1.0 + mockito: ^5.4.0 + vector_math: ^2.1.4 #Added to use in some generated codes of mockito + very_good_analysis: ^4.0.0+1 screenshots: - description: 'LineChartSample1 and LineChartSample2' @@ -36,4 +36,4 @@ screenshots: - description: 'ScatterChartSample2' path: pub_screenshots/scatter_chart_sample_2.gif - description: 'RadarChartSample1' - path: pub_screenshots/radar_chart_sample_1.jpg \ No newline at end of file + path: pub_screenshots/radar_chart_sample_1.jpg