From 571039f6eeffc77aba3a55e19c74eb98ab80f3ba Mon Sep 17 00:00:00 2001 From: Michael Goderbauer Date: Wed, 18 Oct 2023 16:53:08 -0700 Subject: [PATCH] Bump flutter_lints to 3.0 (#136841) Follow-up to https://github.com/flutter/packages/pull/5177 --- packages/flutter_tools/templates/app/pubspec.yaml.tmpl | 4 ++-- .../flutter_tools/templates/module/common/pubspec.yaml.tmpl | 2 +- packages/flutter_tools/templates/package/pubspec.yaml.tmpl | 2 +- .../flutter_tools/templates/package_ffi/pubspec.yaml.tmpl | 2 +- .../flutter_tools/templates/plugin_shared/pubspec.yaml.tmpl | 2 +- packages/flutter_tools/templates/skeleton/pubspec.yaml.tmpl | 2 +- .../test/commands.shard/permeable/data/to_analyze.dart.test | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/flutter_tools/templates/app/pubspec.yaml.tmpl b/packages/flutter_tools/templates/app/pubspec.yaml.tmpl index 8e9a7d66fb..0ad5fb0a8e 100644 --- a/packages/flutter_tools/templates/app/pubspec.yaml.tmpl +++ b/packages/flutter_tools/templates/app/pubspec.yaml.tmpl @@ -14,7 +14,7 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - flutter_lints: ^2.0.0 + flutter_lints: ^3.0.0 flutter: uses-material-design: true @@ -80,7 +80,7 @@ dev_dependencies: # activated in the `analysis_options.yaml` file located at the root of your # package. See that file for information about deactivating specific lint # rules and activating additional ones. - flutter_lints: ^2.0.0 + flutter_lints: ^3.0.0 # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec diff --git a/packages/flutter_tools/templates/module/common/pubspec.yaml.tmpl b/packages/flutter_tools/templates/module/common/pubspec.yaml.tmpl index 4606b8bd4d..c5bc5bafb4 100644 --- a/packages/flutter_tools/templates/module/common/pubspec.yaml.tmpl +++ b/packages/flutter_tools/templates/module/common/pubspec.yaml.tmpl @@ -31,7 +31,7 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - flutter_lints: ^2.0.0 + flutter_lints: ^3.0.0 # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec diff --git a/packages/flutter_tools/templates/package/pubspec.yaml.tmpl b/packages/flutter_tools/templates/package/pubspec.yaml.tmpl index 8a3a42b444..ac5482c22d 100644 --- a/packages/flutter_tools/templates/package/pubspec.yaml.tmpl +++ b/packages/flutter_tools/templates/package/pubspec.yaml.tmpl @@ -14,7 +14,7 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - flutter_lints: ^2.0.0 + flutter_lints: ^3.0.0 # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec diff --git a/packages/flutter_tools/templates/package_ffi/pubspec.yaml.tmpl b/packages/flutter_tools/templates/package_ffi/pubspec.yaml.tmpl index d9ef78c86d..9f0de92b19 100644 --- a/packages/flutter_tools/templates/package_ffi/pubspec.yaml.tmpl +++ b/packages/flutter_tools/templates/package_ffi/pubspec.yaml.tmpl @@ -15,5 +15,5 @@ dependencies: dev_dependencies: ffi: ^2.0.2 ffigen: ^9.0.0 - flutter_lints: ^2.0.0 + flutter_lints: ^3.0.0 test: ^1.21.0 diff --git a/packages/flutter_tools/templates/plugin_shared/pubspec.yaml.tmpl b/packages/flutter_tools/templates/plugin_shared/pubspec.yaml.tmpl index c8d9bbf05a..1659f7f621 100644 --- a/packages/flutter_tools/templates/plugin_shared/pubspec.yaml.tmpl +++ b/packages/flutter_tools/templates/plugin_shared/pubspec.yaml.tmpl @@ -23,7 +23,7 @@ dev_dependencies: {{/withFfi}} flutter_test: sdk: flutter - flutter_lints: ^2.0.0 + flutter_lints: ^3.0.0 # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec diff --git a/packages/flutter_tools/templates/skeleton/pubspec.yaml.tmpl b/packages/flutter_tools/templates/skeleton/pubspec.yaml.tmpl index 1f13c8ac18..f662a40beb 100644 --- a/packages/flutter_tools/templates/skeleton/pubspec.yaml.tmpl +++ b/packages/flutter_tools/templates/skeleton/pubspec.yaml.tmpl @@ -19,7 +19,7 @@ dev_dependencies: flutter_test: sdk: flutter - flutter_lints: ^2.0.0 + flutter_lints: ^3.0.0 flutter: uses-material-design: true diff --git a/packages/flutter_tools/test/commands.shard/permeable/data/to_analyze.dart.test b/packages/flutter_tools/test/commands.shard/permeable/data/to_analyze.dart.test index 1bec7f929e..08bc1b0cbc 100644 --- a/packages/flutter_tools/test/commands.shard/permeable/data/to_analyze.dart.test +++ b/packages/flutter_tools/test/commands.shard/permeable/data/to_analyze.dart.test @@ -17,7 +17,7 @@ class NoConstructor extends StatelessWidget { class NoConstConstructor extends StatelessWidget { // LINT: Missing const constructor generates prefer_const_constructors_in_immutables warning. - NoConstConstructor({Key? key, required this.name }) : super(key: key); + NoConstConstructor({super.key, required this.name }); final String name;