diff --git a/dev/automated_tests/pubspec.yaml b/dev/automated_tests/pubspec.yaml index 843aacb9be1..ddadd9ff2a1 100644 --- a/dev/automated_tests/pubspec.yaml +++ b/dev/automated_tests/pubspec.yaml @@ -1,7 +1,7 @@ name: flutter_automated_tests environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/dev/benchmarks/complex_layout/pubspec.yaml b/dev/benchmarks/complex_layout/pubspec.yaml index b8fb09ad068..3fc886a1743 100644 --- a/dev/benchmarks/complex_layout/pubspec.yaml +++ b/dev/benchmarks/complex_layout/pubspec.yaml @@ -2,7 +2,7 @@ name: complex_layout description: A benchmark of a relatively complex layout. environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/dev/benchmarks/macrobenchmarks/pubspec.yaml b/dev/benchmarks/macrobenchmarks/pubspec.yaml index b3b7b5debf8..38973194042 100644 --- a/dev/benchmarks/macrobenchmarks/pubspec.yaml +++ b/dev/benchmarks/macrobenchmarks/pubspec.yaml @@ -2,7 +2,7 @@ name: macrobenchmarks description: Performance benchmarks using flutter drive. environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/dev/benchmarks/microbenchmarks/pubspec.yaml b/dev/benchmarks/microbenchmarks/pubspec.yaml index c85f6c299af..bb0632c4a01 100644 --- a/dev/benchmarks/microbenchmarks/pubspec.yaml +++ b/dev/benchmarks/microbenchmarks/pubspec.yaml @@ -2,7 +2,7 @@ name: microbenchmarks description: Small benchmarks for very specific parts of the Flutter framework. environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: meta: 1.9.0 diff --git a/dev/benchmarks/multiple_flutters/module/pubspec.yaml b/dev/benchmarks/multiple_flutters/module/pubspec.yaml index 4f002a322c2..2d1b55f5bd4 100644 --- a/dev/benchmarks/multiple_flutters/module/pubspec.yaml +++ b/dev/benchmarks/multiple_flutters/module/pubspec.yaml @@ -4,7 +4,7 @@ description: A module that is embedded in the multiple_flutters benchmark test. version: 1.0.0+1 environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/dev/benchmarks/platform_channels_benchmarks/pubspec.yaml b/dev/benchmarks/platform_channels_benchmarks/pubspec.yaml index f6e7cb50ab9..59f2c7e3aec 100644 --- a/dev/benchmarks/platform_channels_benchmarks/pubspec.yaml +++ b/dev/benchmarks/platform_channels_benchmarks/pubspec.yaml @@ -5,7 +5,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev version: 1.0.0+1 environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/dev/benchmarks/platform_views_layout/pubspec.yaml b/dev/benchmarks/platform_views_layout/pubspec.yaml index 2c1fc976a81..d98f620767e 100644 --- a/dev/benchmarks/platform_views_layout/pubspec.yaml +++ b/dev/benchmarks/platform_views_layout/pubspec.yaml @@ -2,7 +2,7 @@ name: platform_views_layout description: A benchmark for platform views. environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/dev/benchmarks/platform_views_layout_hybrid_composition/pubspec.yaml b/dev/benchmarks/platform_views_layout_hybrid_composition/pubspec.yaml index e3976ce09ab..9d8846e2d60 100644 --- a/dev/benchmarks/platform_views_layout_hybrid_composition/pubspec.yaml +++ b/dev/benchmarks/platform_views_layout_hybrid_composition/pubspec.yaml @@ -2,7 +2,7 @@ name: platform_views_layout_hybrid_composition description: A benchmark for platform views, using hybrid composition on android. environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/dev/benchmarks/test_apps/stocks/pubspec.yaml b/dev/benchmarks/test_apps/stocks/pubspec.yaml index 0854fd49c44..085b185c855 100644 --- a/dev/benchmarks/test_apps/stocks/pubspec.yaml +++ b/dev/benchmarks/test_apps/stocks/pubspec.yaml @@ -1,7 +1,7 @@ name: stocks environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/dev/bots/pubspec.yaml b/dev/bots/pubspec.yaml index 2f935850ab8..2433f18f7bd 100644 --- a/dev/bots/pubspec.yaml +++ b/dev/bots/pubspec.yaml @@ -2,7 +2,7 @@ name: tests_on_bots description: Scripts which run on bots. environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: args: 2.4.0 diff --git a/dev/conductor/core/pubspec.yaml b/dev/conductor/core/pubspec.yaml index 86264506973..c01bc3caf4e 100644 --- a/dev/conductor/core/pubspec.yaml +++ b/dev/conductor/core/pubspec.yaml @@ -4,7 +4,7 @@ description: Flutter Automated Release Tool publish_to: none environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: archive: 3.3.2 diff --git a/dev/customer_testing/pubspec.yaml b/dev/customer_testing/pubspec.yaml index 0404e389160..54923e5d4c8 100644 --- a/dev/customer_testing/pubspec.yaml +++ b/dev/customer_testing/pubspec.yaml @@ -2,7 +2,7 @@ name: customer_testing description: Tool to run the tests listed in the flutter/tests repository. environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: args: 2.4.0 diff --git a/dev/devicelab/bin/tasks/plugin_dependencies_test.dart b/dev/devicelab/bin/tasks/plugin_dependencies_test.dart index 86b116fdafa..da776743dbb 100644 --- a/dev/devicelab/bin/tasks/plugin_dependencies_test.dart +++ b/dev/devicelab/bin/tasks/plugin_dependencies_test.dart @@ -101,7 +101,7 @@ dependencies: sdk: flutter environment: - sdk: ">=2.0.0-dev.28.0 <4.0.0" + sdk: '>=3.0.0-0 <4.0.0' flutter: ">=1.5.0" ''', flush: true); diff --git a/dev/devicelab/pubspec.yaml b/dev/devicelab/pubspec.yaml index 5383be72171..cef944bf34f 100644 --- a/dev/devicelab/pubspec.yaml +++ b/dev/devicelab/pubspec.yaml @@ -3,7 +3,7 @@ description: Flutter continuous integration performance and correctness tests. homepage: https://github.com/flutter/flutter environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: archive: 3.3.2 diff --git a/dev/integration_tests/deferred_components_test/pubspec.yaml b/dev/integration_tests/deferred_components_test/pubspec.yaml index 575155d5666..6b60812d154 100644 --- a/dev/integration_tests/deferred_components_test/pubspec.yaml +++ b/dev/integration_tests/deferred_components_test/pubspec.yaml @@ -3,7 +3,7 @@ description: Integration test application for basic deferred components function publish_to: 'none' version: 1.0.0+1 environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/dev/integration_tests/external_ui/pubspec.yaml b/dev/integration_tests/external_ui/pubspec.yaml index 720f1576fe9..9c93fe625c6 100644 --- a/dev/integration_tests/external_ui/pubspec.yaml +++ b/dev/integration_tests/external_ui/pubspec.yaml @@ -2,7 +2,7 @@ name: external_ui description: A test of Flutter integrating external UIs. environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/dev/integration_tests/flavors/pubspec.yaml b/dev/integration_tests/flavors/pubspec.yaml index 0110643c0d7..888072030a6 100644 --- a/dev/integration_tests/flavors/pubspec.yaml +++ b/dev/integration_tests/flavors/pubspec.yaml @@ -2,7 +2,7 @@ name: flavors description: Integration test for build flavors. environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/dev/integration_tests/flutter_gallery/pubspec.yaml b/dev/integration_tests/flutter_gallery/pubspec.yaml index 13bae98390a..08911a3d534 100644 --- a/dev/integration_tests/flutter_gallery/pubspec.yaml +++ b/dev/integration_tests/flutter_gallery/pubspec.yaml @@ -1,7 +1,7 @@ name: flutter_gallery environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/dev/integration_tests/gradle_deprecated_settings/pubspec.yaml b/dev/integration_tests/gradle_deprecated_settings/pubspec.yaml index 49d77fd23c7..3093449aac9 100644 --- a/dev/integration_tests/gradle_deprecated_settings/pubspec.yaml +++ b/dev/integration_tests/gradle_deprecated_settings/pubspec.yaml @@ -2,7 +2,7 @@ name: gradle_deprecated_settings description: Integration test for the current settings.gradle. environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/dev/integration_tests/hybrid_android_views/pubspec.yaml b/dev/integration_tests/hybrid_android_views/pubspec.yaml index c62f97e8602..38924a3526e 100644 --- a/dev/integration_tests/hybrid_android_views/pubspec.yaml +++ b/dev/integration_tests/hybrid_android_views/pubspec.yaml @@ -4,7 +4,7 @@ publish_to: none description: An integration test for hybrid composition on Android version: 1.0.0+1 environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/dev/integration_tests/ios_add2app_life_cycle/flutterapp/pubspec.yaml b/dev/integration_tests/ios_add2app_life_cycle/flutterapp/pubspec.yaml index bd4137feedc..6d88ddc7b83 100644 --- a/dev/integration_tests/ios_add2app_life_cycle/flutterapp/pubspec.yaml +++ b/dev/integration_tests/ios_add2app_life_cycle/flutterapp/pubspec.yaml @@ -14,7 +14,7 @@ description: A new flutter module project. version: 1.0.0+1 environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/dev/integration_tests/ios_app_with_extensions/pubspec.yaml b/dev/integration_tests/ios_app_with_extensions/pubspec.yaml index f9663234060..c3e1c47b7ef 100644 --- a/dev/integration_tests/ios_app_with_extensions/pubspec.yaml +++ b/dev/integration_tests/ios_app_with_extensions/pubspec.yaml @@ -13,7 +13,7 @@ name: ios_app_with_extensions version: 1.0.0+1 environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/dev/integration_tests/ios_platform_view_tests/pubspec.yaml b/dev/integration_tests/ios_platform_view_tests/pubspec.yaml index 5d11e153271..2272edf7ad3 100644 --- a/dev/integration_tests/ios_platform_view_tests/pubspec.yaml +++ b/dev/integration_tests/ios_platform_view_tests/pubspec.yaml @@ -3,7 +3,7 @@ name: ios_platform_view_tests version: 1.0.0+1 environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/dev/integration_tests/non_nullable/pubspec.yaml b/dev/integration_tests/non_nullable/pubspec.yaml index ea21f8eb7de..d4871f0191c 100644 --- a/dev/integration_tests/non_nullable/pubspec.yaml +++ b/dev/integration_tests/non_nullable/pubspec.yaml @@ -5,7 +5,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev version: 1.0.0+1 environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/dev/integration_tests/platform_interaction/pubspec.yaml b/dev/integration_tests/platform_interaction/pubspec.yaml index 7aec9d6cfe1..536f6de1df5 100644 --- a/dev/integration_tests/platform_interaction/pubspec.yaml +++ b/dev/integration_tests/platform_interaction/pubspec.yaml @@ -2,7 +2,7 @@ name: platform_interaction description: Integration test for platform interactions. environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/dev/integration_tests/release_smoke_test/pubspec.yaml b/dev/integration_tests/release_smoke_test/pubspec.yaml index 99abd80447e..07fbeb39f32 100644 --- a/dev/integration_tests/release_smoke_test/pubspec.yaml +++ b/dev/integration_tests/release_smoke_test/pubspec.yaml @@ -1,7 +1,7 @@ name: release_smoke_test environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/dev/integration_tests/spell_check/pubspec.yaml b/dev/integration_tests/spell_check/pubspec.yaml index a0bd6ac3a0d..0950cb21fcf 100644 --- a/dev/integration_tests/spell_check/pubspec.yaml +++ b/dev/integration_tests/spell_check/pubspec.yaml @@ -18,7 +18,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev version: 1.0.0+1 environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' # Dependencies specify other packages that your package needs in order to work. # To automatically upgrade your package dependencies to the latest versions diff --git a/dev/integration_tests/ui/pubspec.yaml b/dev/integration_tests/ui/pubspec.yaml index b8cb947326e..e79d363e246 100644 --- a/dev/integration_tests/ui/pubspec.yaml +++ b/dev/integration_tests/ui/pubspec.yaml @@ -2,7 +2,7 @@ name: integration_ui description: Flutter non-plugin UI integration tests. environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/dev/integration_tests/web/pubspec.yaml b/dev/integration_tests/web/pubspec.yaml index 8195718fba5..3c053e3ebb4 100644 --- a/dev/integration_tests/web/pubspec.yaml +++ b/dev/integration_tests/web/pubspec.yaml @@ -2,7 +2,7 @@ name: web_integration description: Integration test for web compilation. environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' flutter: assets: diff --git a/dev/integration_tests/web_compile_tests/pubspec.yaml b/dev/integration_tests/web_compile_tests/pubspec.yaml index 83ef602d716..7e18e567879 100644 --- a/dev/integration_tests/web_compile_tests/pubspec.yaml +++ b/dev/integration_tests/web_compile_tests/pubspec.yaml @@ -1,6 +1,6 @@ name: web_compile_tests environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/dev/integration_tests/web_e2e_tests/pubspec.yaml b/dev/integration_tests/web_e2e_tests/pubspec.yaml index e2a7801a83e..5312ae0674f 100644 --- a/dev/integration_tests/web_e2e_tests/pubspec.yaml +++ b/dev/integration_tests/web_e2e_tests/pubspec.yaml @@ -2,7 +2,7 @@ name: web_e2e_tests publish_to: none environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' flutter: assets: diff --git a/dev/integration_tests/wide_gamut_test/pubspec.yaml b/dev/integration_tests/wide_gamut_test/pubspec.yaml index a35963ad202..c0044d12ca1 100644 --- a/dev/integration_tests/wide_gamut_test/pubspec.yaml +++ b/dev/integration_tests/wide_gamut_test/pubspec.yaml @@ -5,7 +5,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev version: 1.0.0+1 environment: - sdk: '>=3.0.0-157.0.dev <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/dev/integration_tests/windows_startup_test/pubspec.yaml b/dev/integration_tests/windows_startup_test/pubspec.yaml index ab5450c2554..eb0e639641d 100644 --- a/dev/integration_tests/windows_startup_test/pubspec.yaml +++ b/dev/integration_tests/windows_startup_test/pubspec.yaml @@ -2,7 +2,7 @@ name: windows_startup_test description: Integration test for Windows app's startup. environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/dev/manual_tests/pubspec.yaml b/dev/manual_tests/pubspec.yaml index c18a93333bb..24c1ffd7ef4 100644 --- a/dev/manual_tests/pubspec.yaml +++ b/dev/manual_tests/pubspec.yaml @@ -1,7 +1,7 @@ name: manual_tests environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/dev/missing_dependency_tests/pubspec.yaml b/dev/missing_dependency_tests/pubspec.yaml index 5dda1d8a253..a322c188f3e 100644 --- a/dev/missing_dependency_tests/pubspec.yaml +++ b/dev/missing_dependency_tests/pubspec.yaml @@ -1,7 +1,7 @@ name: missing_dependency_tests environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/dev/tools/dartdoc.dart b/dev/tools/dartdoc.dart index b3ea77623b2..8bf6c484ea4 100644 --- a/dev/tools/dartdoc.dart +++ b/dev/tools/dartdoc.dart @@ -59,7 +59,7 @@ Future main(List arguments) async { buf.writeln('homepage: https://flutter.dev'); buf.writeln('version: 0.0.0'); buf.writeln('environment:'); - buf.writeln(" sdk: '>=2.19.0 <4.0.0'"); + buf.writeln(" sdk: '>=3.0.0-0 <4.0.0'"); buf.writeln('dependencies:'); for (final String package in findPackageNames()) { buf.writeln(' $package:'); diff --git a/dev/tools/gen_defaults/pubspec.yaml b/dev/tools/gen_defaults/pubspec.yaml index 3d850f0c5d8..9c4c421f3cb 100644 --- a/dev/tools/gen_defaults/pubspec.yaml +++ b/dev/tools/gen_defaults/pubspec.yaml @@ -3,7 +3,7 @@ description: A command line script to generate Material component defaults from version: 1.0.0 environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: diff --git a/dev/tools/gen_keycodes/pubspec.yaml b/dev/tools/gen_keycodes/pubspec.yaml index 861c783a34d..2162499b85d 100644 --- a/dev/tools/gen_keycodes/pubspec.yaml +++ b/dev/tools/gen_keycodes/pubspec.yaml @@ -2,7 +2,7 @@ name: gen_keycodes description: Generates keycode source files from various resources. environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: args: 2.4.0 diff --git a/dev/tools/pubspec.yaml b/dev/tools/pubspec.yaml index cfa03661b7f..3db47df9e27 100644 --- a/dev/tools/pubspec.yaml +++ b/dev/tools/pubspec.yaml @@ -2,7 +2,7 @@ name: dev_tools description: Various repository development tools for flutter. environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: archive: 3.3.2 diff --git a/dev/tools/vitool/pubspec.yaml b/dev/tools/vitool/pubspec.yaml index 99670d55f3f..38ec9056b9d 100644 --- a/dev/tools/vitool/pubspec.yaml +++ b/dev/tools/vitool/pubspec.yaml @@ -4,7 +4,7 @@ version: 0.0.1 homepage: https://flutter.dev environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/dev/tracing_tests/pubspec.yaml b/dev/tracing_tests/pubspec.yaml index aaf8e887e4a..df984826de8 100644 --- a/dev/tracing_tests/pubspec.yaml +++ b/dev/tracing_tests/pubspec.yaml @@ -2,7 +2,7 @@ name: tracing_tests description: Various tests for tracing in flutter/flutter environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/examples/api/pubspec.yaml b/examples/api/pubspec.yaml index caacf8be610..a3ce9389c50 100644 --- a/examples/api/pubspec.yaml +++ b/examples/api/pubspec.yaml @@ -7,7 +7,7 @@ publish_to: 'none' version: 1.0.0 environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' flutter: ">=2.5.0-6.0.pre.30 <3.0.0" dependencies: diff --git a/examples/flutter_view/pubspec.yaml b/examples/flutter_view/pubspec.yaml index 02bd9e67e9c..4d51791bb68 100644 --- a/examples/flutter_view/pubspec.yaml +++ b/examples/flutter_view/pubspec.yaml @@ -2,7 +2,7 @@ name: flutter_view description: A new flutter project. environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/examples/hello_world/pubspec.yaml b/examples/hello_world/pubspec.yaml index 5e14002ec9b..340b891ef9b 100644 --- a/examples/hello_world/pubspec.yaml +++ b/examples/hello_world/pubspec.yaml @@ -1,7 +1,7 @@ name: hello_world environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/examples/image_list/pubspec.yaml b/examples/image_list/pubspec.yaml index 03b3e27edeb..b003e3624b6 100644 --- a/examples/image_list/pubspec.yaml +++ b/examples/image_list/pubspec.yaml @@ -4,7 +4,7 @@ description: Simple Flutter project used for benchmarking image loading over net version: 1.0.0+1 environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/examples/layers/pubspec.yaml b/examples/layers/pubspec.yaml index 2971b999f7c..8c6b0b05e77 100644 --- a/examples/layers/pubspec.yaml +++ b/examples/layers/pubspec.yaml @@ -1,7 +1,7 @@ name: flutter_examples_layers environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/examples/platform_channel/pubspec.yaml b/examples/platform_channel/pubspec.yaml index 1db79946edb..e14eae2aebb 100644 --- a/examples/platform_channel/pubspec.yaml +++ b/examples/platform_channel/pubspec.yaml @@ -1,7 +1,7 @@ name: platform_channel environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/examples/platform_channel_swift/pubspec.yaml b/examples/platform_channel_swift/pubspec.yaml index 6428cfac79f..1c31a6caaa5 100644 --- a/examples/platform_channel_swift/pubspec.yaml +++ b/examples/platform_channel_swift/pubspec.yaml @@ -1,7 +1,7 @@ name: platform_channel_swift environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/examples/platform_view/pubspec.yaml b/examples/platform_view/pubspec.yaml index b5ca3b0ed8f..80567b06c77 100644 --- a/examples/platform_view/pubspec.yaml +++ b/examples/platform_view/pubspec.yaml @@ -1,7 +1,7 @@ name: platform_view environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/examples/splash/pubspec.yaml b/examples/splash/pubspec.yaml index d3de45c7efa..f8b8e725d8c 100644 --- a/examples/splash/pubspec.yaml +++ b/examples/splash/pubspec.yaml @@ -1,7 +1,7 @@ name: splash environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/packages/flutter/lib/src/foundation/change_notifier.dart b/packages/flutter/lib/src/foundation/change_notifier.dart index 01b9ac0926e..5fcb5d8a126 100644 --- a/packages/flutter/lib/src/foundation/change_notifier.dart +++ b/packages/flutter/lib/src/foundation/change_notifier.dart @@ -109,7 +109,7 @@ const String _flutterFoundationLibrary = 'package:flutter/foundation.dart'; /// See also: /// /// * [ValueNotifier], which is a [ChangeNotifier] that wraps a single value. -class ChangeNotifier implements Listenable { +mixin class ChangeNotifier implements Listenable { int _count = 0; // The _listeners is intentionally set to a fixed-length _GrowableList instead // of const []. diff --git a/packages/flutter/lib/src/material/app.dart b/packages/flutter/lib/src/material/app.dart index 2ccb6c9c28f..f70cd3bb2eb 100644 --- a/packages/flutter/lib/src/material/app.dart +++ b/packages/flutter/lib/src/material/app.dart @@ -865,17 +865,20 @@ class MaterialScrollBehavior extends ScrollBehavior { child: child, ); case AndroidOverscrollIndicator.glow: - continue glow; + return _buildGlowingOverscrollIndicator(context, details, child); } - glow: case TargetPlatform.fuchsia: - return GlowingOverscrollIndicator( - axisDirection: details.direction, - color: Theme.of(context).colorScheme.secondary, - child: child, - ); + return _buildGlowingOverscrollIndicator(context, details, child); } } + + GlowingOverscrollIndicator _buildGlowingOverscrollIndicator(BuildContext context, ScrollableDetails details, Widget child) { + return GlowingOverscrollIndicator( + axisDirection: details.direction, + color: Theme.of(context).colorScheme.secondary, + child: child, + ); + } } class _MaterialAppState extends State { diff --git a/packages/flutter/lib/src/widgets/binding.dart b/packages/flutter/lib/src/widgets/binding.dart index 9d7b51bd3a5..c472cfd173e 100644 --- a/packages/flutter/lib/src/widgets/binding.dart +++ b/packages/flutter/lib/src/widgets/binding.dart @@ -45,7 +45,7 @@ export 'dart:ui' show AppLifecycleState, Locale; /// /// To respond to other notifications, replace the [didChangeAppLifecycleState] /// method above with other methods from this class. -abstract class WidgetsBindingObserver { +abstract mixin class WidgetsBindingObserver { /// Called when the system tells the app to pop the current route. /// For example, on Android, this is called when the user presses /// the back button. diff --git a/packages/flutter/lib/src/widgets/overlay.dart b/packages/flutter/lib/src/widgets/overlay.dart index e4314fe0b2b..c789775ef51 100644 --- a/packages/flutter/lib/src/widgets/overlay.dart +++ b/packages/flutter/lib/src/widgets/overlay.dart @@ -1638,7 +1638,7 @@ class _OverlayPortalState extends State { // // Since it can't implement operator== (it's mutable), the same `_OverlayEntryLocation` // instance must not be used to represent more than one locations. -class _OverlayEntryLocation extends LinkedListEntry<_OverlayEntryLocation> { +final class _OverlayEntryLocation extends LinkedListEntry<_OverlayEntryLocation> { _OverlayEntryLocation(this._zOrderIndex, this._childModel, this._theater); final int _zOrderIndex; @@ -1954,7 +1954,7 @@ class _DeferredLayout extends SingleChildRenderObjectWidget { // 3. When invoked from `PipelineOwner.flushLayout`, or // `_layoutSurrogate.performLayout`, this `RenderObject` behaves like an // `Overlay` that has only one entry. -class _RenderDeferredLayoutBox extends RenderProxyBox with _RenderTheaterMixin, LinkedListEntry<_RenderDeferredLayoutBox> { +final class _RenderDeferredLayoutBox extends RenderProxyBox with _RenderTheaterMixin, LinkedListEntry<_RenderDeferredLayoutBox> { _RenderDeferredLayoutBox(this._layoutSurrogate); StackParentData get stackParentData => parentData! as StackParentData; diff --git a/packages/flutter/lib/src/widgets/routes.dart b/packages/flutter/lib/src/widgets/routes.dart index ac35de4f2e9..da0a1c45104 100644 --- a/packages/flutter/lib/src/widgets/routes.dart +++ b/packages/flutter/lib/src/widgets/routes.dart @@ -1959,7 +1959,7 @@ class RouteObserver> extends NavigatorObserver { /// /// This is used with [RouteObserver] to make a widget aware of changes to the /// [Navigator]'s session history. -abstract class RouteAware { +abstract mixin class RouteAware { /// Called when the top route has been popped off, and the current route /// shows up. void didPopNext() { } diff --git a/packages/flutter/lib/src/widgets/scroll_configuration.dart b/packages/flutter/lib/src/widgets/scroll_configuration.dart index 97e4cc3a6c2..d70d71ef7a3 100644 --- a/packages/flutter/lib/src/widgets/scroll_configuration.dart +++ b/packages/flutter/lib/src/widgets/scroll_configuration.dart @@ -194,18 +194,21 @@ class ScrollBehavior { child: child, ); case AndroidOverscrollIndicator.glow: - continue glow; + return _buildGlowingOverscrollIndicator(details, child); } - glow: case TargetPlatform.fuchsia: - return GlowingOverscrollIndicator( - axisDirection: details.direction, - color: _kDefaultGlowColor, - child: child, - ); + return _buildGlowingOverscrollIndicator(details, child); } } + GlowingOverscrollIndicator _buildGlowingOverscrollIndicator(ScrollableDetails details, Widget child) { + return GlowingOverscrollIndicator( + axisDirection: details.direction, + color: _kDefaultGlowColor, + child: child, + ); + } + /// Specifies the type of velocity tracker to use in the descendant /// [Scrollable]s' drag gesture recognizers, for estimating the velocity of a /// drag gesture. @@ -379,6 +382,11 @@ class _WrappedScrollBehavior implements ScrollBehavior { @override String toString() => objectRuntimeType(this, '_WrappedScrollBehavior'); + + @override + GlowingOverscrollIndicator _buildGlowingOverscrollIndicator(ScrollableDetails details, Widget child) { + return delegate._buildGlowingOverscrollIndicator(details, child); + } } /// Controls how [Scrollable] widgets behave in a subtree. diff --git a/packages/flutter/lib/src/widgets/scroll_notification_observer.dart b/packages/flutter/lib/src/widgets/scroll_notification_observer.dart index 487f1d76c23..bdeca667e35 100644 --- a/packages/flutter/lib/src/widgets/scroll_notification_observer.dart +++ b/packages/flutter/lib/src/widgets/scroll_notification_observer.dart @@ -35,7 +35,7 @@ class _ScrollNotificationObserverScope extends InheritedWidget { bool updateShouldNotify(_ScrollNotificationObserverScope old) => _scrollNotificationObserverState != old._scrollNotificationObserverState; } -class _ListenerEntry extends LinkedListEntry<_ListenerEntry> { +final class _ListenerEntry extends LinkedListEntry<_ListenerEntry> { _ListenerEntry(this.listener); final ScrollNotificationCallback listener; } diff --git a/packages/flutter/lib/src/widgets/tap_region.dart b/packages/flutter/lib/src/widgets/tap_region.dart index bba5b6a72f5..c736f3a51f5 100644 --- a/packages/flutter/lib/src/widgets/tap_region.dart +++ b/packages/flutter/lib/src/widgets/tap_region.dart @@ -174,7 +174,7 @@ class TapRegionSurface extends SingleChildRenderObjectWidget { /// the render tree. /// * [TapRegionRegistry.of], which can find the nearest ancestor /// [RenderTapRegionSurface], which is a [TapRegionRegistry]. -class RenderTapRegionSurface extends RenderProxyBoxWithHitTestBehavior with TapRegionRegistry { +class RenderTapRegionSurface extends RenderProxyBoxWithHitTestBehavior implements TapRegionRegistry { final Expando _cachedResults = Expando(); final Set _registeredRegions = {}; final Map> _groupIdToRegions = >{}; diff --git a/packages/flutter/pubspec.yaml b/packages/flutter/pubspec.yaml index 0798971adfb..4ccfd63628f 100644 --- a/packages/flutter/pubspec.yaml +++ b/packages/flutter/pubspec.yaml @@ -3,7 +3,7 @@ description: A framework for writing Flutter applications homepage: https://flutter.dev environment: - sdk: '>=2.19.0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: # To update these, use "flutter update-packages --force-upgrade". diff --git a/packages/flutter/test/material/expansion_tile_test.dart b/packages/flutter/test/material/expansion_tile_test.dart index 86e32b62800..98e0631b337 100644 --- a/packages/flutter/test/material/expansion_tile_test.dart +++ b/packages/flutter/test/material/expansion_tile_test.dart @@ -329,10 +329,11 @@ void main() { const Key child0Key = Key('child0'); const Key child1Key = Key('child1'); - await tester.pumpWidget(MaterialApp( - home: Material( - child: Center( - child: ExpansionTile( + // TODO(goderbauer): Reevaluate the following ignores when https://github.com/dart-lang/sdk/issues/51800 is fixed. + await tester.pumpWidget(MaterialApp( // ignore: prefer_const_constructors + home: Material( // ignore: prefer_const_constructors + child: Center( // ignore: prefer_const_constructors + child: ExpansionTile( // ignore: prefer_const_constructors title: const Text('title'), // Set the column's alignment to Alignment.centerRight to test CrossAxisAlignment // of children widgets. This helps distinguish the effect of expandedAlignment diff --git a/packages/flutter/test/widgets/selectable_region_context_menu_test.dart b/packages/flutter/test/widgets/selectable_region_context_menu_test.dart index 11bb65cfe47..794ddd0023b 100644 --- a/packages/flutter/test/widgets/selectable_region_context_menu_test.dart +++ b/packages/flutter/test/widgets/selectable_region_context_menu_test.dart @@ -144,7 +144,8 @@ class RenderSelectionSpy extends RenderProxyBox @override SelectionGeometry get value => _value; - SelectionGeometry _value = SelectionGeometry( + // TODO(goderbauer): Reevaluate the ignore when https://github.com/dart-lang/sdk/issues/51800 is fixed. + SelectionGeometry _value = SelectionGeometry( // ignore: prefer_const_constructors hasContent: true, status: SelectionStatus.uncollapsed, startSelectionPoint: const SelectionPoint( diff --git a/packages/flutter/test/widgets/selectable_region_test.dart b/packages/flutter/test/widgets/selectable_region_test.dart index 035c034a567..3b201808953 100644 --- a/packages/flutter/test/widgets/selectable_region_test.dart +++ b/packages/flutter/test/widgets/selectable_region_test.dart @@ -1995,7 +1995,8 @@ class RenderSelectionSpy extends RenderProxyBox @override SelectionGeometry get value => _value; - SelectionGeometry _value = SelectionGeometry( + // TODO(goderbauer): Reevaluate the ignore when https://github.com/dart-lang/sdk/issues/51800 is fixed. + SelectionGeometry _value = SelectionGeometry( // ignore: prefer_const_constructors hasContent: true, status: SelectionStatus.uncollapsed, startSelectionPoint: const SelectionPoint( @@ -2084,7 +2085,8 @@ class RenderSelectAll extends RenderProxyBox @override SelectionGeometry get value => _value; - SelectionGeometry _value = SelectionGeometry( + // TODO(goderbauer): Reevaluate the ignore when https://github.com/dart-lang/sdk/issues/51800 is fixed. + SelectionGeometry _value = SelectionGeometry( // ignore: prefer_const_constructors hasContent: true, status: SelectionStatus.uncollapsed, startSelectionPoint: const SelectionPoint( diff --git a/packages/flutter/test_private/pubspec.yaml b/packages/flutter/test_private/pubspec.yaml index 68f7e0093af..7c4ab81727c 100644 --- a/packages/flutter/test_private/pubspec.yaml +++ b/packages/flutter/test_private/pubspec.yaml @@ -2,7 +2,7 @@ name: flutter_test_private description: Tests private interfaces of the flutter environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: # To update these, use "flutter update-packages --force-upgrade". diff --git a/packages/flutter/test_private/test/pubspec.yaml b/packages/flutter/test_private/test/pubspec.yaml index 549a9a698a3..2e1bec99c61 100644 --- a/packages/flutter/test_private/test/pubspec.yaml +++ b/packages/flutter/test_private/test/pubspec.yaml @@ -1,7 +1,7 @@ name: animated_icons_private_test environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: # To update these, use "flutter update-packages --force-upgrade". diff --git a/packages/flutter_driver/pubspec.yaml b/packages/flutter_driver/pubspec.yaml index a4a78dbecc4..1b5e4d6244e 100644 --- a/packages/flutter_driver/pubspec.yaml +++ b/packages/flutter_driver/pubspec.yaml @@ -3,7 +3,7 @@ description: Integration and performance test API for Flutter applications homepage: https://flutter.dev environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: file: 6.1.4 diff --git a/packages/flutter_goldens/pubspec.yaml b/packages/flutter_goldens/pubspec.yaml index 6cfadbc35cc..aac60b274b2 100644 --- a/packages/flutter_goldens/pubspec.yaml +++ b/packages/flutter_goldens/pubspec.yaml @@ -1,7 +1,7 @@ name: flutter_goldens environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: # To update these, use "flutter update-packages --force-upgrade". diff --git a/packages/flutter_goldens_client/pubspec.yaml b/packages/flutter_goldens_client/pubspec.yaml index 9e10ba2efbf..650145bccd0 100644 --- a/packages/flutter_goldens_client/pubspec.yaml +++ b/packages/flutter_goldens_client/pubspec.yaml @@ -1,7 +1,7 @@ name: flutter_goldens_client environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: # To update these, use "flutter update-packages --force-upgrade". diff --git a/packages/flutter_localizations/pubspec.yaml b/packages/flutter_localizations/pubspec.yaml index 482b38a0406..7945b7ef105 100644 --- a/packages/flutter_localizations/pubspec.yaml +++ b/packages/flutter_localizations/pubspec.yaml @@ -1,7 +1,7 @@ name: flutter_localizations environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: # To update these, use "flutter update-packages --force-upgrade". diff --git a/packages/flutter_test/pubspec.yaml b/packages/flutter_test/pubspec.yaml index 6b6120c1284..2b94488e62d 100644 --- a/packages/flutter_test/pubspec.yaml +++ b/packages/flutter_test/pubspec.yaml @@ -1,7 +1,7 @@ name: flutter_test environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: # To update these, use "flutter update-packages --force-upgrade". diff --git a/packages/flutter_test/test/test_config/project_root/pubspec.yaml b/packages/flutter_test/test/test_config/project_root/pubspec.yaml index 2af26f7d6f8..f4d908c2003 100644 --- a/packages/flutter_test/test/test_config/project_root/pubspec.yaml +++ b/packages/flutter_test/test/test_config/project_root/pubspec.yaml @@ -4,6 +4,6 @@ name: dummy environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' # PUBSPEC CHECKSUM: 0000 diff --git a/packages/flutter_tools/lib/src/commands/update_packages.dart b/packages/flutter_tools/lib/src/commands/update_packages.dart index 69e2b2e18eb..eb81136198d 100644 --- a/packages/flutter_tools/lib/src/commands/update_packages.dart +++ b/packages/flutter_tools/lib/src/commands/update_packages.dart @@ -1648,7 +1648,7 @@ Directory createTemporaryFlutterSdk( // Fill in SDK dependency constraint. output.write(''' environment: - sdk: ">=2.7.0 <4.0.0" + sdk: '>=3.0.0-0 <4.0.0' '''); output.writeln('dependencies:'); @@ -1680,7 +1680,7 @@ description: Dart SDK extensions for dart:ui homepage: http://flutter.io # sky_engine requires sdk_ext support in the analyzer which was added in 1.11.x environment: - sdk: '>=1.11.0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' '''); return directory; diff --git a/packages/flutter_tools/pubspec.yaml b/packages/flutter_tools/pubspec.yaml index d24daa64bca..32956d5954d 100644 --- a/packages/flutter_tools/pubspec.yaml +++ b/packages/flutter_tools/pubspec.yaml @@ -3,7 +3,7 @@ description: Tools for building Flutter applications homepage: https://flutter.dev environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: # To update these, use "flutter update-packages --force-upgrade". diff --git a/packages/flutter_tools/test/commands.shard/hermetic/analyze_continuously_test.dart b/packages/flutter_tools/test/commands.shard/hermetic/analyze_continuously_test.dart index 31d0e63f981..6de8ee8fbd9 100644 --- a/packages/flutter_tools/test/commands.shard/hermetic/analyze_continuously_test.dart +++ b/packages/flutter_tools/test/commands.shard/hermetic/analyze_continuously_test.dart @@ -60,7 +60,7 @@ void main() { pubspecFile.writeAsStringSync(''' name: foo_project environment: - sdk: '>=2.12.0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' '''); final File dartFile = fileSystem.file(fileSystem.path.join(directory.path, 'lib', 'main.dart')); diff --git a/packages/flutter_tools/test/commands.shard/hermetic/update_packages_test.dart b/packages/flutter_tools/test/commands.shard/hermetic/update_packages_test.dart index a67e38d360e..971afe76fe1 100644 --- a/packages/flutter_tools/test/commands.shard/hermetic/update_packages_test.dart +++ b/packages/flutter_tools/test/commands.shard/hermetic/update_packages_test.dart @@ -23,7 +23,7 @@ description: A framework for writing Flutter applications homepage: http://flutter.dev environment: - sdk: ">=2.2.2 <4.0.0" + sdk: '>=3.0.0-0 <4.0.0' dependencies: # To update these, use "flutter update-packages --force-upgrade". @@ -60,7 +60,7 @@ homepage: http://flutter.dev version: 1.0.0 environment: - sdk: ">=2.14.0-383.0.dev <4.0.0" + sdk: '>=3.0.0-0 <4.0.0' flutter: ">=2.5.0-6.0.pre.30 <3.0.0" dependencies: diff --git a/packages/flutter_tools/test/data/asset_test/font/pubspec.yaml b/packages/flutter_tools/test/data/asset_test/font/pubspec.yaml index 9059ad1c85d..4408e2ac595 100644 --- a/packages/flutter_tools/test/data/asset_test/font/pubspec.yaml +++ b/packages/flutter_tools/test/data/asset_test/font/pubspec.yaml @@ -2,7 +2,7 @@ name: font description: A test project that contains a font. environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' flutter: uses-material-design: true diff --git a/packages/flutter_tools/test/data/asset_test/main/pubspec.yaml b/packages/flutter_tools/test/data/asset_test/main/pubspec.yaml index b3104615563..8611c6daa85 100644 --- a/packages/flutter_tools/test/data/asset_test/main/pubspec.yaml +++ b/packages/flutter_tools/test/data/asset_test/main/pubspec.yaml @@ -2,7 +2,7 @@ name: main description: A test project that has a package with a font as a dependency. environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: font: diff --git a/packages/flutter_tools/test/general.shard/build_system/targets/dart_plugin_registrant_test.dart b/packages/flutter_tools/test/general.shard/build_system/targets/dart_plugin_registrant_test.dart index 67d79aa9987..aed5fcb4e4b 100644 --- a/packages/flutter_tools/test/general.shard/build_system/targets/dart_plugin_registrant_test.dart +++ b/packages/flutter_tools/test/general.shard/build_system/targets/dart_plugin_registrant_test.dart @@ -86,7 +86,7 @@ flutter: pluginClass: none environment: - sdk: ">=2.12.0-259.9.beta <4.0.0" + sdk: '>=3.0.0-0 <4.0.0' flutter: ">=1.20.0" '''; diff --git a/packages/flutter_tools/test/general.shard/test/test_compiler_test.dart b/packages/flutter_tools/test/general.shard/test/test_compiler_test.dart index 9d2da366868..7aa5bbb4dda 100644 --- a/packages/flutter_tools/test/general.shard/test/test_compiler_test.dart +++ b/packages/flutter_tools/test/general.shard/test/test_compiler_test.dart @@ -166,7 +166,7 @@ flutter: linux: dartPluginClass: APlugin environment: - sdk: ">=2.14.0 <4.0.0" + sdk: '>=3.0.0-0 <4.0.0' flutter: ">=2.5.0" '''); diff --git a/packages/flutter_tools/test/general.shard/update_packages_test.dart b/packages/flutter_tools/test/general.shard/update_packages_test.dart index 540501babfe..93deb41a5f1 100644 --- a/packages/flutter_tools/test/general.shard/update_packages_test.dart +++ b/packages/flutter_tools/test/general.shard/update_packages_test.dart @@ -17,7 +17,7 @@ description: A framework for writing Flutter applications homepage: http://flutter.dev environment: - sdk: '>=2.2.2 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: # To update these, use "flutter update-packages --force-upgrade". @@ -51,7 +51,7 @@ description: A dummy pubspec with no dependencies homepage: http://flutter.dev environment: - sdk: ">=2.2.2 <4.0.0" + sdk: '>=3.0.0-0 <4.0.0' '''; const String kInvalidGitPubspec = ''' @@ -60,7 +60,7 @@ description: A framework for writing Flutter applications homepage: http://flutter.dev environment: - sdk: ">=2.2.2 <4.0.0" + sdk: '>=3.0.0-0 <4.0.0' dependencies: # To update these, use "flutter update-packages --force-upgrade". diff --git a/packages/flutter_tools/test/integration.shard/analyze_once_test.dart b/packages/flutter_tools/test/integration.shard/analyze_once_test.dart index 8fc3b849db1..7424bd4a48e 100644 --- a/packages/flutter_tools/test/integration.shard/analyze_once_test.dart +++ b/packages/flutter_tools/test/integration.shard/analyze_once_test.dart @@ -484,7 +484,7 @@ class _MyHomePageState extends State { const String pubspecYamlSrc = r''' name: flutter_project environment: - sdk: ">=2.1.0 <4.0.0" + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/packages/flutter_tools/test/integration.shard/break_on_framework_exceptions_test.dart b/packages/flutter_tools/test/integration.shard/break_on_framework_exceptions_test.dart index e147aa67e50..151789cef1e 100644 --- a/packages/flutter_tools/test/integration.shard/break_on_framework_exceptions_test.dart +++ b/packages/flutter_tools/test/integration.shard/break_on_framework_exceptions_test.dart @@ -732,7 +732,7 @@ class TestProject extends Project { final String pubspec = ''' name: test environment: - sdk: '>=2.12.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/packages/flutter_tools/test/integration.shard/test_data/background_project.dart b/packages/flutter_tools/test/integration.shard/test_data/background_project.dart index 0fccff366c2..783004b55e6 100644 --- a/packages/flutter_tools/test/integration.shard/test_data/background_project.dart +++ b/packages/flutter_tools/test/integration.shard/test_data/background_project.dart @@ -12,7 +12,7 @@ class BackgroundProject extends Project { final String pubspec = ''' name: test environment: - sdk: ">=2.12.0-0 <4.0.0" + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: @@ -63,7 +63,7 @@ class RepeatingBackgroundProject extends Project { final String pubspec = ''' name: test environment: - sdk: ">=2.12.0-0 <4.0.0" + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/packages/flutter_tools/test/integration.shard/test_data/basic_project.dart b/packages/flutter_tools/test/integration.shard/test_data/basic_project.dart index 3f3c031cddc..93a2d090cf2 100644 --- a/packages/flutter_tools/test/integration.shard/test_data/basic_project.dart +++ b/packages/flutter_tools/test/integration.shard/test_data/basic_project.dart @@ -10,7 +10,7 @@ class BasicProject extends Project { final String pubspec = ''' name: test environment: - sdk: '>=2.12.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: @@ -63,7 +63,7 @@ class BasicProjectThatThrows extends Project { final String pubspec = ''' name: test environment: - sdk: '>=2.12.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: @@ -120,7 +120,7 @@ class BasicProjectWithTimelineTraces extends Project { final String pubspec = ''' name: test environment: - sdk: '>=2.12.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: @@ -169,7 +169,7 @@ class BasicProjectWithFlutterGen extends Project { final String pubspec = ''' name: test environment: - sdk: '>=2.12.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: @@ -194,7 +194,7 @@ class BasicProjectWithUnaryMain extends Project { final String pubspec = ''' name: test environment: - sdk: '>=2.12.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: sdk: flutter diff --git a/packages/flutter_tools/test/integration.shard/test_data/compile_error_project.dart b/packages/flutter_tools/test/integration.shard/test_data/compile_error_project.dart index 1ba2f5b6280..3232d7f44c7 100644 --- a/packages/flutter_tools/test/integration.shard/test_data/compile_error_project.dart +++ b/packages/flutter_tools/test/integration.shard/test_data/compile_error_project.dart @@ -10,7 +10,7 @@ class CompileErrorProject extends Project { final String pubspec = ''' name: test environment: - sdk: '>=2.12.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/packages/flutter_tools/test/integration.shard/test_data/deferred_components_project.dart b/packages/flutter_tools/test/integration.shard/test_data/deferred_components_project.dart index b135962465f..92173fd7c13 100644 --- a/packages/flutter_tools/test/integration.shard/test_data/deferred_components_project.dart +++ b/packages/flutter_tools/test/integration.shard/test_data/deferred_components_project.dart @@ -13,7 +13,7 @@ class DeferredComponentsProject extends Project { final String pubspec = ''' name: test environment: - sdk: ">=2.12.0-0 <4.0.0" + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/packages/flutter_tools/test/integration.shard/test_data/gen_l10n_project.dart b/packages/flutter_tools/test/integration.shard/test_data/gen_l10n_project.dart index b3c55ab71b9..46d2a51202d 100644 --- a/packages/flutter_tools/test/integration.shard/test_data/gen_l10n_project.dart +++ b/packages/flutter_tools/test/integration.shard/test_data/gen_l10n_project.dart @@ -34,7 +34,7 @@ class GenL10nProject extends Project { final String pubspec = ''' name: test_l10n_project environment: - sdk: ">=2.12.0-0 <4.0.0" + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/packages/flutter_tools/test/integration.shard/test_data/hot_reload_const_project.dart b/packages/flutter_tools/test/integration.shard/test_data/hot_reload_const_project.dart index d6d9c086a86..355919fd904 100644 --- a/packages/flutter_tools/test/integration.shard/test_data/hot_reload_const_project.dart +++ b/packages/flutter_tools/test/integration.shard/test_data/hot_reload_const_project.dart @@ -10,7 +10,7 @@ class HotReloadConstProject extends Project { final String pubspec = ''' name: test environment: - sdk: ">=2.12.0-0 <4.0.0" + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/packages/flutter_tools/test/integration.shard/test_data/hot_reload_project.dart b/packages/flutter_tools/test/integration.shard/test_data/hot_reload_project.dart index c61082b8a1e..7e188c0b260 100644 --- a/packages/flutter_tools/test/integration.shard/test_data/hot_reload_project.dart +++ b/packages/flutter_tools/test/integration.shard/test_data/hot_reload_project.dart @@ -12,7 +12,7 @@ class HotReloadProject extends Project { final String pubspec = ''' name: test environment: - sdk: ">=2.12.0-0 <4.0.0" + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/packages/flutter_tools/test/integration.shard/test_data/hot_reload_with_asset.dart b/packages/flutter_tools/test/integration.shard/test_data/hot_reload_with_asset.dart index ae26ac4e68b..27d3665968d 100644 --- a/packages/flutter_tools/test/integration.shard/test_data/hot_reload_with_asset.dart +++ b/packages/flutter_tools/test/integration.shard/test_data/hot_reload_with_asset.dart @@ -10,7 +10,7 @@ class HotReloadWithAssetProject extends Project { final String pubspec = ''' name: test environment: - sdk: '>=2.12.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/packages/flutter_tools/test/integration.shard/test_data/integration_tests_project.dart b/packages/flutter_tools/test/integration.shard/test_data/integration_tests_project.dart index 1a5c0ad67af..a67f1bbc900 100644 --- a/packages/flutter_tools/test/integration.shard/test_data/integration_tests_project.dart +++ b/packages/flutter_tools/test/integration.shard/test_data/integration_tests_project.dart @@ -14,7 +14,7 @@ class IntegrationTestsProject extends Project implements TestsProject { final String pubspec = ''' name: test environment: - sdk: '>=2.12.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/packages/flutter_tools/test/integration.shard/test_data/migrate_project.dart b/packages/flutter_tools/test/integration.shard/test_data/migrate_project.dart index bcbc640d111..d4a3ca38598 100644 --- a/packages/flutter_tools/test/integration.shard/test_data/migrate_project.dart +++ b/packages/flutter_tools/test/integration.shard/test_data/migrate_project.dart @@ -175,7 +175,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev version: 1.0.0+1 environment: - sdk: ">=2.6.0 <4.0.0" + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/packages/flutter_tools/test/integration.shard/test_data/multidex_project.dart b/packages/flutter_tools/test/integration.shard/test_data/multidex_project.dart index d175dd96557..c3bc25f5f14 100644 --- a/packages/flutter_tools/test/integration.shard/test_data/multidex_project.dart +++ b/packages/flutter_tools/test/integration.shard/test_data/multidex_project.dart @@ -38,7 +38,7 @@ class MultidexProject extends Project { final String pubspec = ''' name: test environment: - sdk: ">=2.12.0-0 <4.0.0" + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/packages/flutter_tools/test/integration.shard/test_data/project_with_early_error.dart b/packages/flutter_tools/test/integration.shard/test_data/project_with_early_error.dart index 9c90f4981ac..6d37629f4c3 100644 --- a/packages/flutter_tools/test/integration.shard/test_data/project_with_early_error.dart +++ b/packages/flutter_tools/test/integration.shard/test_data/project_with_early_error.dart @@ -10,7 +10,7 @@ class ProjectWithEarlyError extends Project { final String pubspec = ''' name: test environment: - sdk: ">=2.12.0-0 <4.0.0" + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/packages/flutter_tools/test/integration.shard/test_data/single_widget_reload_project.dart b/packages/flutter_tools/test/integration.shard/test_data/single_widget_reload_project.dart index 690c71a2af9..2a48a090ea0 100644 --- a/packages/flutter_tools/test/integration.shard/test_data/single_widget_reload_project.dart +++ b/packages/flutter_tools/test/integration.shard/test_data/single_widget_reload_project.dart @@ -10,7 +10,7 @@ class SingleWidgetReloadProject extends Project { final String pubspec = ''' name: test environment: - sdk: ">=2.12.0-0 <4.0.0" + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/packages/flutter_tools/test/integration.shard/test_data/stateless_stateful_project.dart b/packages/flutter_tools/test/integration.shard/test_data/stateless_stateful_project.dart index e1c312ce94d..ecf1834be50 100644 --- a/packages/flutter_tools/test/integration.shard/test_data/stateless_stateful_project.dart +++ b/packages/flutter_tools/test/integration.shard/test_data/stateless_stateful_project.dart @@ -10,7 +10,7 @@ class HotReloadProject extends Project { final String pubspec = ''' name: test environment: - sdk: ">=2.12.0-0 <4.0.0" + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/packages/flutter_tools/test/integration.shard/test_data/stepping_project.dart b/packages/flutter_tools/test/integration.shard/test_data/stepping_project.dart index 902ce7974e7..87bc6a29c81 100644 --- a/packages/flutter_tools/test/integration.shard/test_data/stepping_project.dart +++ b/packages/flutter_tools/test/integration.shard/test_data/stepping_project.dart @@ -9,7 +9,7 @@ class SteppingProject extends Project { final String pubspec = ''' name: test environment: - sdk: '>=2.12.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: sdk: flutter @@ -65,7 +65,7 @@ class WebSteppingProject extends Project { final String pubspec = ''' name: test environment: - sdk: '>=2.12.0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: sdk: flutter diff --git a/packages/flutter_tools/test/integration.shard/test_data/test_project.dart b/packages/flutter_tools/test/integration.shard/test_data/test_project.dart index 77b62a44982..436a86e0099 100644 --- a/packages/flutter_tools/test/integration.shard/test_data/test_project.dart +++ b/packages/flutter_tools/test/integration.shard/test_data/test_project.dart @@ -10,7 +10,7 @@ class TestProject extends Project { final String pubspec = ''' name: test environment: - sdk: '>=2.12.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/packages/flutter_tools/test/integration.shard/test_data/tests_project.dart b/packages/flutter_tools/test/integration.shard/test_data/tests_project.dart index 308e16a38fa..45ee250104a 100644 --- a/packages/flutter_tools/test/integration.shard/test_data/tests_project.dart +++ b/packages/flutter_tools/test/integration.shard/test_data/tests_project.dart @@ -13,7 +13,7 @@ class TestsProject extends Project { final String pubspec = ''' name: test environment: - sdk: '>=2.12.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/packages/flutter_web_plugins/pubspec.yaml b/packages/flutter_web_plugins/pubspec.yaml index 7133e6b5ae8..f863a439fc8 100644 --- a/packages/flutter_web_plugins/pubspec.yaml +++ b/packages/flutter_web_plugins/pubspec.yaml @@ -3,7 +3,7 @@ description: Library to register Flutter Web plugins homepage: https://flutter.dev environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/packages/fuchsia_remote_debug_protocol/pubspec.yaml b/packages/fuchsia_remote_debug_protocol/pubspec.yaml index f583e41bb43..0a27d2f2cf1 100644 --- a/packages/fuchsia_remote_debug_protocol/pubspec.yaml +++ b/packages/fuchsia_remote_debug_protocol/pubspec.yaml @@ -4,7 +4,7 @@ description: Provides an API to test/debug Flutter applications on remote Fuchsi homepage: https://flutter.dev environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: process: 4.2.4 diff --git a/packages/integration_test/example/pubspec.yaml b/packages/integration_test/example/pubspec.yaml index 516dab376a9..34703f12969 100644 --- a/packages/integration_test/example/pubspec.yaml +++ b/packages/integration_test/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Demonstrates how to use the integration_test plugin. publish_to: 'none' environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' flutter: ">=1.6.7" dependencies: diff --git a/packages/integration_test/integration_test_macos/pubspec.yaml b/packages/integration_test/integration_test_macos/pubspec.yaml index a0dcc17cac6..6d5600e2d22 100644 --- a/packages/integration_test/integration_test_macos/pubspec.yaml +++ b/packages/integration_test/integration_test_macos/pubspec.yaml @@ -10,7 +10,7 @@ flutter: pluginClass: IntegrationTestPlugin environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: diff --git a/packages/integration_test/pubspec.yaml b/packages/integration_test/pubspec.yaml index a4d72a542a6..4bc7e276772 100644 --- a/packages/integration_test/pubspec.yaml +++ b/packages/integration_test/pubspec.yaml @@ -3,7 +3,7 @@ description: Runs tests that use the flutter_test API as integration tests. publish_to: none environment: - sdk: '>=2.19.0-0 <4.0.0' + sdk: '>=3.0.0-0 <4.0.0' dependencies: flutter: