From 789e3a72c9d439336bb50e5d291128347f7f6967 Mon Sep 17 00:00:00 2001 From: stuartmorgan Date: Sat, 4 Mar 2023 10:28:18 -0800 Subject: [PATCH] [various] Align Flutter and Dart SDK constraints (#3349) As described in https://github.com/flutter/flutter/issues/121684, we currently have inconsistencies between Flutter SDK constraints and Dart SDK constraints; we have often updated only the former. This PR: 1. Adds CI enforcement via the repo tooling that the minimum versions are consistent. 2. Adds a new repo tooling command to update SDK constraints, to help mass-fix all the violations of the new enforcement in step 1 (and for future mass changes, such as when we update our test matrix and mass-drop support for versions that are no longe tested). - In all cases, the looser constraint was updated to match the more restrictive constraint, such that there's no actual change in what Flutter version any package actually supports. 3. Runs `dart fix --apply` over all changed packages to automatically fix all of the analysis failures caused by step 2 suddenly making all of our packages able to use `super` parameters. Fixes https://github.com/flutter/flutter/issues/121684 Fixes https://github.com/flutter/flutter/issues/121685 --- .cirrus.yml | 4 +- packages/animations/CHANGELOG.md | 4 + .../example/lib/container_transition.dart | 2 +- .../example/lib/fade_scale_transition.dart | 2 +- .../example/lib/fade_through_transition.dart | 2 +- .../example/lib/shared_axis_transition.dart | 2 +- packages/animations/example/pubspec.yaml | 2 +- .../lib/src/fade_scale_transition.dart | 22 +-- .../lib/src/fade_through_transition.dart | 7 +- packages/animations/lib/src/modal.dart | 4 +- .../animations/lib/src/open_container.dart | 8 +- .../lib/src/page_transition_switcher.dart | 4 +- .../lib/src/shared_axis_transition.dart | 8 +- packages/animations/pubspec.yaml | 2 +- .../test/dual_transition_builder_test.dart | 2 +- .../test/fade_scale_transition_test.dart | 4 +- .../test/fade_through_transition_test.dart | 2 +- packages/animations/test/modal_test.dart | 23 ++- .../animations/test/open_container_test.dart | 2 +- .../test/page_transition_switcher_test.dart | 2 +- .../test/shared_axis_transition_test.dart | 2 +- packages/camera/camera/CHANGELOG.md | 4 + packages/camera/camera/README.md | 2 +- packages/camera/camera/example/lib/main.dart | 4 +- .../example/lib/readme_full_example.dart | 2 +- packages/camera/camera/example/pubspec.yaml | 2 +- .../camera/camera/lib/src/camera_preview.dart | 3 +- packages/camera/camera/pubspec.yaml | 2 +- packages/camera/camera_android/CHANGELOG.md | 1 + .../example/lib/camera_preview.dart | 3 +- .../camera_android/example/lib/main.dart | 4 +- .../camera_android/example/pubspec.yaml | 2 +- packages/camera/camera_android/pubspec.yaml | 2 +- .../camera/camera_avfoundation/CHANGELOG.md | 4 + .../example/lib/camera_preview.dart | 3 +- .../camera_avfoundation/example/lib/main.dart | 4 +- .../camera_avfoundation/example/pubspec.yaml | 2 +- .../camera_platform_interface/CHANGELOG.md | 4 + .../lib/src/events/camera_event.dart | 15 +- .../camera_platform_interface/pubspec.yaml | 2 +- packages/camera/camera_web/CHANGELOG.md | 4 + .../camera/camera_web/example/lib/main.dart | 2 +- .../camera/camera_web/example/pubspec.yaml | 2 +- packages/camera/camera_web/pubspec.yaml | 2 +- packages/camera/camera_windows/CHANGELOG.md | 4 + .../camera_windows/example/lib/main.dart | 2 +- .../camera_windows/example/pubspec.yaml | 2 +- packages/camera/camera_windows/pubspec.yaml | 2 +- packages/css_colors/CHANGELOG.md | 1 + packages/css_colors/pubspec.yaml | 2 +- packages/dynamic_layouts/CHANGELOG.md | 1 + packages/dynamic_layouts/pubspec.yaml | 2 +- packages/espresso/CHANGELOG.md | 4 + packages/espresso/example/lib/main.dart | 14 +- packages/espresso/example/pubspec.yaml | 2 +- packages/espresso/pubspec.yaml | 2 +- .../CHANGELOG.md | 4 + .../example/lib/main.dart | 2 +- .../example/pubspec.yaml | 2 +- .../pubspec.yaml | 2 +- .../file_selector/file_selector/CHANGELOG.md | 4 + .../example/lib/get_directory_page.dart | 4 +- .../file_selector/example/lib/home_page.dart | 2 +- .../file_selector/example/lib/main.dart | 2 +- .../example/lib/open_image_page.dart | 5 +- .../lib/open_multiple_images_page.dart | 4 +- .../example/lib/open_text_page.dart | 5 +- .../lib/readme_standalone_excerpts.dart | 2 +- .../example/lib/save_text_page.dart | 2 +- .../file_selector/example/pubspec.yaml | 2 +- .../file_selector/file_selector/pubspec.yaml | 2 +- .../file_selector_ios/CHANGELOG.md | 4 + .../example/lib/home_page.dart | 2 +- .../file_selector_ios/example/lib/main.dart | 2 +- .../example/lib/open_image_page.dart | 5 +- .../lib/open_multiple_images_page.dart | 4 +- .../example/lib/open_text_page.dart | 5 +- .../file_selector_ios/example/pubspec.yaml | 2 +- .../file_selector_linux/CHANGELOG.md | 4 + .../example/lib/get_directory_page.dart | 4 +- .../lib/get_multiple_directories_page.dart | 4 +- .../example/lib/home_page.dart | 2 +- .../file_selector_linux/example/lib/main.dart | 2 +- .../example/lib/open_image_page.dart | 5 +- .../lib/open_multiple_images_page.dart | 4 +- .../example/lib/open_text_page.dart | 5 +- .../example/lib/save_text_page.dart | 2 +- .../file_selector_linux/example/pubspec.yaml | 2 +- .../file_selector_linux/pubspec.yaml | 2 +- .../file_selector_macos/CHANGELOG.md | 4 + .../example/lib/get_directory_page.dart | 4 +- .../example/lib/home_page.dart | 2 +- .../file_selector_macos/example/lib/main.dart | 2 +- .../example/lib/open_image_page.dart | 5 +- .../lib/open_multiple_images_page.dart | 4 +- .../example/lib/open_text_page.dart | 5 +- .../example/lib/save_text_page.dart | 2 +- .../file_selector_macos/example/pubspec.yaml | 2 +- .../file_selector_macos/pubspec.yaml | 2 +- .../CHANGELOG.md | 4 + .../pubspec.yaml | 2 +- .../file_selector_web/CHANGELOG.md | 4 + .../file_selector_web/example/lib/main.dart | 2 +- .../file_selector_web/example/pubspec.yaml | 2 +- .../file_selector_web/pubspec.yaml | 2 +- .../file_selector_windows/CHANGELOG.md | 4 + .../example/lib/get_directory_page.dart | 4 +- .../example/lib/home_page.dart | 2 +- .../example/lib/main.dart | 2 +- .../example/lib/open_image_page.dart | 5 +- .../lib/open_multiple_images_page.dart | 4 +- .../example/lib/open_text_page.dart | 5 +- .../example/lib/save_text_page.dart | 2 +- .../example/pubspec.yaml | 2 +- .../file_selector_windows/pubspec.yaml | 2 +- .../flutter_adaptive_scaffold/CHANGELOG.md | 4 + .../example/pubspec.yaml | 4 +- .../flutter_adaptive_scaffold/pubspec.yaml | 2 +- packages/flutter_image/CHANGELOG.md | 4 + packages/flutter_image/pubspec.yaml | 2 +- packages/flutter_markdown/CHANGELOG.md | 4 + .../lib/demos/basic_markdown_demo.dart | 2 +- .../lib/demos/centered_header_demo.dart | 2 +- .../lib/demos/extended_emoji_demo.dart | 2 +- .../demos/markdown_body_shrink_wrap_demo.dart | 2 +- .../lib/demos/minimal_markdown_demo.dart | 2 +- .../example/lib/demos/original_demo.dart | 2 +- .../lib/demos/subscript_syntax_demo.dart | 2 +- .../lib/demos/wrap_alignment_demo.dart | 2 +- .../example/lib/screens/demo_card.dart | 2 +- .../example/lib/screens/demo_screen.dart | 8 +- .../example/lib/screens/home_screen.dart | 2 +- .../example/lib/shared/dropdown_menu.dart | 5 +- .../lib/shared/markdown_demo_widget.dart | 2 +- .../flutter_markdown/example/pubspec.yaml | 2 +- packages/flutter_markdown/lib/src/widget.dart | 139 ++++++------------ packages/flutter_markdown/pubspec.yaml | 2 +- .../CHANGELOG.md | 4 + .../example/lib/main.dart | 2 +- .../example/pubspec.yaml | 2 +- .../pubspec.yaml | 2 +- packages/go_router/CHANGELOG.md | 1 + .../example/lib/async_redirection.dart | 12 +- .../go_router/example/lib/books/main.dart | 10 +- .../go_router/example/lib/books/src/auth.dart | 8 +- .../lib/books/src/screens/author_details.dart | 4 +- .../lib/books/src/screens/authors.dart | 2 +- .../lib/books/src/screens/book_details.dart | 4 +- .../example/lib/books/src/screens/books.dart | 2 +- .../lib/books/src/screens/scaffold.dart | 4 +- .../lib/books/src/screens/settings.dart | 6 +- .../lib/books/src/screens/sign_in.dart | 4 +- .../lib/books/src/widgets/author_list.dart | 4 +- .../lib/books/src/widgets/book_list.dart | 4 +- packages/go_router/example/lib/main.dart | 6 +- .../go_router/example/lib/named_routes.dart | 9 +- .../example/lib/others/error_screen.dart | 8 +- .../example/lib/others/extra_param.dart | 6 +- .../example/lib/others/init_loc.dart | 8 +- .../example/lib/others/nav_observer.dart | 8 +- .../go_router/example/lib/others/push.dart | 6 +- .../example/lib/others/router_neglect.dart | 6 +- .../example/lib/others/state_restoration.dart | 6 +- .../example/lib/others/transitions.dart | 6 +- .../lib/path_and_query_parameters.dart | 7 +- .../go_router/example/lib/redirection.dart | 6 +- .../go_router/example/lib/shell_route.dart | 16 +- .../example/lib/transition_animations.dart | 8 +- packages/go_router/example/pubspec.yaml | 2 +- packages/go_router/pubspec.yaml | 2 +- packages/go_router_builder/CHANGELOG.md | 4 + packages/go_router_builder/pubspec.yaml | 2 +- .../google_maps_flutter/CHANGELOG.md | 4 + .../google_maps_flutter/README.md | 2 +- .../example/lib/animate_camera.dart | 2 +- .../google_maps_flutter/example/lib/main.dart | 2 +- .../example/lib/map_ui.dart | 2 +- .../example/lib/marker_icons.dart | 2 +- .../example/lib/move_camera.dart | 2 +- .../example/lib/padding.dart | 2 +- .../google_maps_flutter/example/lib/page.dart | 3 +- .../example/lib/place_circle.dart | 2 +- .../example/lib/place_marker.dart | 2 +- .../example/lib/place_polygon.dart | 2 +- .../example/lib/place_polyline.dart | 2 +- .../example/lib/readme_sample.dart | 4 +- .../example/lib/scrolling_map.dart | 2 +- .../example/lib/tile_overlay.dart | 2 +- .../google_maps_flutter/example/pubspec.yaml | 2 +- .../lib/src/google_map.dart | 5 +- .../google_maps_flutter/pubspec.yaml | 2 +- .../google_maps_flutter_android/CHANGELOG.md | 4 + .../example/lib/animate_camera.dart | 2 +- .../example/lib/example_google_map.dart | 4 +- .../example/lib/main.dart | 2 +- .../example/lib/map_ui.dart | 2 +- .../example/lib/marker_icons.dart | 2 +- .../example/lib/move_camera.dart | 2 +- .../example/lib/padding.dart | 2 +- .../example/lib/page.dart | 3 +- .../example/lib/place_circle.dart | 2 +- .../example/lib/place_marker.dart | 2 +- .../example/lib/place_polygon.dart | 2 +- .../example/lib/place_polyline.dart | 2 +- .../example/lib/readme_excerpts.dart | 2 +- .../example/lib/scrolling_map.dart | 2 +- .../example/lib/tile_overlay.dart | 2 +- .../example/pubspec.yaml | 2 +- .../lib/src/google_maps_flutter_android.dart | 4 +- .../google_maps_flutter_android/pubspec.yaml | 2 +- .../google_maps_flutter_ios/CHANGELOG.md | 4 + .../example/lib/animate_camera.dart | 2 +- .../example/lib/example_google_map.dart | 4 +- .../example/lib/main.dart | 2 +- .../example/lib/map_ui.dart | 2 +- .../example/lib/marker_icons.dart | 2 +- .../example/lib/move_camera.dart | 2 +- .../example/lib/padding.dart | 2 +- .../example/lib/page.dart | 3 +- .../example/lib/place_circle.dart | 2 +- .../example/lib/place_marker.dart | 2 +- .../example/lib/place_polygon.dart | 2 +- .../example/lib/place_polyline.dart | 2 +- .../example/lib/scrolling_map.dart | 2 +- .../example/lib/tile_overlay.dart | 2 +- .../example/pubspec.yaml | 2 +- .../CHANGELOG.md | 4 + .../lib/src/events/map_event.dart | 21 ++- .../lib/src/types/circle.dart | 2 +- .../lib/src/types/circle_updates.dart | 4 +- .../lib/src/types/marker.dart | 2 +- .../lib/src/types/marker_updates.dart | 4 +- .../lib/src/types/polygon.dart | 2 +- .../lib/src/types/polygon_updates.dart | 4 +- .../lib/src/types/polyline.dart | 2 +- .../lib/src/types/polyline_updates.dart | 4 +- .../lib/src/types/tile_overlay.dart | 2 +- .../lib/src/types/tile_overlay_updates.dart | 4 +- .../pubspec.yaml | 2 +- .../test/types/maps_object_updates_test.dart | 5 +- .../test/types/test_maps_object.dart | 5 +- .../google_maps_flutter_web/CHANGELOG.md | 4 + .../integration_test/projection_test.dart | 4 +- .../example/lib/main.dart | 2 +- .../example/pubspec.yaml | 2 +- .../google_maps_flutter_web/pubspec.yaml | 2 +- .../google_sign_in/CHANGELOG.md | 4 + .../google_sign_in/example/lib/main.dart | 2 +- .../google_sign_in/example/pubspec.yaml | 2 +- .../google_sign_in/lib/widgets.dart | 5 +- .../google_sign_in/pubspec.yaml | 2 +- .../google_sign_in_android/CHANGELOG.md | 1 + .../example/lib/main.dart | 2 +- .../example/pubspec.yaml | 2 +- .../google_sign_in_android/pubspec.yaml | 2 +- .../google_sign_in_ios/CHANGELOG.md | 4 + .../google_sign_in_ios/example/lib/main.dart | 2 +- .../google_sign_in_ios/example/pubspec.yaml | 2 +- .../CHANGELOG.md | 4 + .../pubspec.yaml | 2 +- .../google_sign_in_web/CHANGELOG.md | 4 + .../google_sign_in_web/example/lib/main.dart | 2 +- .../google_sign_in_web/example/pubspec.yaml | 2 +- .../image_picker/image_picker/CHANGELOG.md | 4 + .../image_picker/example/lib/main.dart | 6 +- .../image_picker/example/pubspec.yaml | 2 +- .../image_picker/image_picker/pubspec.yaml | 2 +- .../image_picker_android/CHANGELOG.md | 4 + .../example/lib/main.dart | 6 +- .../image_picker_android/example/pubspec.yaml | 2 +- .../image_picker_android/pubspec.yaml | 2 +- .../image_picker_for_web/CHANGELOG.md | 4 + .../example/lib/main.dart | 2 +- .../image_picker_for_web/example/pubspec.yaml | 2 +- .../image_picker_for_web/pubspec.yaml | 2 +- .../image_picker_ios/CHANGELOG.md | 4 + .../image_picker_ios/example/lib/main.dart | 6 +- .../image_picker_ios/example/pubspec.yaml | 2 +- .../CHANGELOG.md | 4 + .../lib/src/types/picked_file/io.dart | 4 +- .../src/types/picked_file/unsupported.dart | 2 +- .../pubspec.yaml | 2 +- .../image_picker_windows/CHANGELOG.md | 4 + .../example/lib/main.dart | 6 +- .../image_picker_windows/example/pubspec.yaml | 2 +- .../image_picker_windows/pubspec.yaml | 2 +- .../in_app_purchase/CHANGELOG.md | 4 + .../in_app_purchase/example/pubspec.yaml | 2 +- .../in_app_purchase/pubspec.yaml | 2 +- .../in_app_purchase_android/CHANGELOG.md | 1 + .../example/lib/main.dart | 2 +- .../example/pubspec.yaml | 2 +- .../types/google_play_product_details.dart | 24 +-- .../types/google_play_purchase_details.dart | 18 +-- .../src/types/google_play_purchase_param.dart | 9 +- .../in_app_purchase_android/pubspec.yaml | 2 +- .../CHANGELOG.md | 4 + .../pubspec.yaml | 2 +- .../in_app_purchase_storekit/CHANGELOG.md | 4 + .../example/pubspec.yaml | 2 +- packages/ios_platform_images/CHANGELOG.md | 4 + .../ios_platform_images/example/lib/main.dart | 2 +- .../ios_platform_images/example/pubspec.yaml | 2 +- packages/local_auth/local_auth/CHANGELOG.md | 4 + .../local_auth/example/lib/main.dart | 2 +- .../example/lib/readme_excerpts.dart | 2 +- .../local_auth/example/pubspec.yaml | 2 +- packages/local_auth/local_auth/pubspec.yaml | 2 +- .../local_auth_android/CHANGELOG.md | 4 + .../local_auth_android/example/lib/main.dart | 2 +- .../local_auth_android/example/pubspec.yaml | 2 +- .../local_auth_android/pubspec.yaml | 2 +- .../local_auth/local_auth_ios/CHANGELOG.md | 4 + .../local_auth_ios/example/lib/main.dart | 2 +- .../local_auth_ios/example/pubspec.yaml | 2 +- .../CHANGELOG.md | 4 + .../pubspec.yaml | 2 +- .../local_auth_windows/CHANGELOG.md | 4 + .../local_auth_windows/example/lib/main.dart | 2 +- .../local_auth_windows/example/pubspec.yaml | 2 +- .../local_auth_windows/pubspec.yaml | 2 +- packages/palette_generator/CHANGELOG.md | 4 + .../palette_generator/example/lib/main.dart | 12 +- .../palette_generator/example/pubspec.yaml | 2 +- packages/palette_generator/pubspec.yaml | 2 +- .../path_provider/path_provider/CHANGELOG.md | 4 + .../path_provider/example/lib/main.dart | 4 +- .../path_provider/example/pubspec.yaml | 2 +- .../path_provider/path_provider/pubspec.yaml | 2 +- .../path_provider_android/CHANGELOG.md | 1 + .../example/lib/main.dart | 4 +- .../example/pubspec.yaml | 2 +- .../path_provider_android/pubspec.yaml | 2 +- .../path_provider_foundation/CHANGELOG.md | 4 + .../example/lib/main.dart | 2 +- .../example/pubspec.yaml | 2 +- .../path_provider_foundation/pubspec.yaml | 2 +- .../path_provider_linux/CHANGELOG.md | 4 + .../path_provider_linux/example/lib/main.dart | 2 +- .../path_provider_linux/example/pubspec.yaml | 2 +- .../path_provider_linux/pubspec.yaml | 2 +- .../CHANGELOG.md | 4 + .../pubspec.yaml | 2 +- .../path_provider_windows/CHANGELOG.md | 4 + .../example/lib/main.dart | 2 +- .../example/pubspec.yaml | 2 +- packages/pigeon/CHANGELOG.md | 4 + .../pigeon/mock_handler_tester/pubspec.yaml | 2 +- .../pubspec.yaml | 2 +- .../flutter_null_safe_unit_tests/pubspec.yaml | 2 +- .../shared_test_plugin_code/pubspec.yaml | 2 +- .../platform_tests/test_plugin/pubspec.yaml | 2 +- packages/pigeon/pubspec.yaml | 2 +- packages/pointer_interceptor/CHANGELOG.md | 4 + .../pointer_interceptor/example/lib/main.dart | 6 +- .../pointer_interceptor/example/pubspec.yaml | 2 +- .../pointer_interceptor/lib/src/mobile.dart | 4 +- packages/pointer_interceptor/lib/src/web.dart | 4 +- packages/pointer_interceptor/pubspec.yaml | 2 +- .../quick_actions/quick_actions/CHANGELOG.md | 4 + .../quick_actions/example/lib/main.dart | 4 +- .../quick_actions/example/pubspec.yaml | 2 +- .../quick_actions/quick_actions/pubspec.yaml | 2 +- .../quick_actions_android/CHANGELOG.md | 1 + .../example/lib/main.dart | 4 +- .../example/pubspec.yaml | 2 +- .../quick_actions_android/pubspec.yaml | 2 +- .../quick_actions_ios/CHANGELOG.md | 4 + .../quick_actions_ios/example/lib/main.dart | 4 +- .../quick_actions_ios/example/pubspec.yaml | 2 +- .../quick_actions_ios/pubspec.yaml | 2 +- .../CHANGELOG.md | 4 + .../pubspec.yaml | 2 +- packages/rfw/CHANGELOG.md | 4 + packages/rfw/example/hello/lib/main.dart | 2 +- packages/rfw/example/hello/pubspec.yaml | 2 +- packages/rfw/example/local/lib/main.dart | 2 +- packages/rfw/example/local/pubspec.yaml | 2 +- packages/rfw/example/remote/lib/main.dart | 2 +- packages/rfw/example/remote/pubspec.yaml | 2 +- packages/rfw/example/wasm/lib/main.dart | 2 +- packages/rfw/example/wasm/pubspec.yaml | 2 +- packages/rfw/lib/src/dart/model.dart | 8 +- packages/rfw/lib/src/dart/text.dart | 2 +- .../lib/src/flutter/argument_decoders.dart | 16 +- .../rfw/lib/src/flutter/remote_widget.dart | 2 +- packages/rfw/lib/src/flutter/runtime.dart | 2 +- packages/rfw/pubspec.yaml | 2 +- .../shared_preferences/CHANGELOG.md | 4 + .../shared_preferences/example/lib/main.dart | 4 +- .../shared_preferences/example/pubspec.yaml | 2 +- .../shared_preferences/pubspec.yaml | 2 +- .../shared_preferences_android/CHANGELOG.md | 1 + .../example/lib/main.dart | 4 +- .../example/pubspec.yaml | 2 +- .../shared_preferences_android/pubspec.yaml | 2 +- .../CHANGELOG.md | 4 + .../example/lib/main.dart | 4 +- .../example/pubspec.yaml | 2 +- .../pubspec.yaml | 2 +- .../shared_preferences_linux/CHANGELOG.md | 4 + .../example/lib/main.dart | 4 +- .../example/pubspec.yaml | 2 +- .../shared_preferences_linux/pubspec.yaml | 2 +- .../CHANGELOG.md | 4 + .../pubspec.yaml | 2 +- .../shared_preferences_web/CHANGELOG.md | 4 + .../example/lib/main.dart | 2 +- .../example/pubspec.yaml | 2 +- .../shared_preferences_web/pubspec.yaml | 2 +- .../shared_preferences_windows/CHANGELOG.md | 4 + .../example/lib/main.dart | 4 +- .../example/pubspec.yaml | 2 +- .../shared_preferences_windows/pubspec.yaml | 2 +- .../url_launcher/url_launcher/CHANGELOG.md | 4 + .../url_launcher/example/lib/main.dart | 4 +- .../url_launcher/example/pubspec.yaml | 2 +- .../url_launcher/lib/src/link.dart | 6 +- .../url_launcher/url_launcher/pubspec.yaml | 2 +- .../url_launcher_android/CHANGELOG.md | 4 + .../example/lib/main.dart | 4 +- .../url_launcher_android/example/pubspec.yaml | 2 +- .../url_launcher_android/pubspec.yaml | 2 +- .../url_launcher_linux/CHANGELOG.md | 4 + .../url_launcher_linux/example/lib/main.dart | 4 +- .../url_launcher_linux/example/pubspec.yaml | 2 +- .../url_launcher_linux/pubspec.yaml | 2 +- .../url_launcher_macos/CHANGELOG.md | 4 + .../url_launcher_macos/example/lib/main.dart | 4 +- .../url_launcher_macos/example/pubspec.yaml | 2 +- .../url_launcher_macos/pubspec.yaml | 2 +- .../CHANGELOG.md | 4 + .../pubspec.yaml | 2 +- .../url_launcher_web/CHANGELOG.md | 4 + .../url_launcher_web/example/lib/main.dart | 2 +- .../url_launcher_web/example/pubspec.yaml | 2 +- .../url_launcher_web/lib/src/link.dart | 2 +- .../url_launcher_web/pubspec.yaml | 2 +- .../url_launcher_windows/CHANGELOG.md | 4 + .../example/lib/main.dart | 4 +- .../url_launcher_windows/example/pubspec.yaml | 2 +- .../url_launcher_windows/pubspec.yaml | 2 +- .../video_player/video_player/CHANGELOG.md | 4 + packages/video_player/video_player/README.md | 2 +- .../video_player/example/lib/basic.dart | 2 +- .../video_player/example/lib/main.dart | 5 +- .../video_player/example/pubspec.yaml | 2 +- .../video_player/lib/video_player.dart | 16 +- .../video_player/video_player/pubspec.yaml | 2 +- .../video_player/test/video_player_test.dart | 2 +- .../video_player_android/CHANGELOG.md | 1 + .../example/lib/main.dart | 3 +- .../example/lib/mini_controller.dart | 4 +- .../video_player_android/example/pubspec.yaml | 2 +- .../video_player_android/pubspec.yaml | 2 +- .../video_player_avfoundation/CHANGELOG.md | 4 + .../example/lib/main.dart | 3 +- .../example/lib/mini_controller.dart | 4 +- .../example/pubspec.yaml | 2 +- .../CHANGELOG.md | 4 + .../pubspec.yaml | 2 +- .../video_player_web/CHANGELOG.md | 4 + .../video_player_web/example/lib/main.dart | 2 +- .../video_player_web/example/pubspec.yaml | 2 +- .../video_player_web/pubspec.yaml | 2 +- .../webview_flutter_android/CHANGELOG.md | 4 + .../legacy/webview_flutter_test.dart | 4 +- .../webview_flutter_test.dart | 4 +- .../example/lib/legacy/web_view.dart | 5 +- .../example/lib/main.dart | 12 +- .../example/pubspec.yaml | 2 +- .../CHANGELOG.md | 4 + .../pubspec.yaml | 2 +- .../platform_navigation_delegate_test.dart | 4 +- .../platform_webview_controller_test.dart | 4 +- .../test/platform_webview_widget_test.dart | 3 +- .../webview_flutter_web/CHANGELOG.md | 4 + .../example/lib/legacy/web_view.dart | 4 +- .../webview_flutter_web/example/lib/main.dart | 2 +- .../webview_flutter_web/example/pubspec.yaml | 2 +- .../webview_flutter_web/pubspec.yaml | 2 +- .../webview_flutter_wkwebview/CHANGELOG.md | 4 + .../legacy/webview_flutter_test.dart | 3 +- .../webview_flutter_test.dart | 4 +- .../example/lib/legacy/web_view.dart | 5 +- .../example/lib/main.dart | 12 +- .../example/pubspec.yaml | 2 +- script/tool/lib/src/common/core.dart | 15 ++ script/tool/lib/src/main.dart | 4 +- .../tool/lib/src/pubspec_check_command.dart | 91 ++++++++---- ...t => remove_dev_dependencies_command.dart} | 0 .../tool/lib/src/update_min_sdk_command.dart | 101 +++++++++++++ .../tool/test/pubspec_check_command_test.dart | 86 +++++++++-- ...remove_dev_dependencies_command_test.dart} | 2 +- .../test/update_min_sdk_command_test.dart | 114 ++++++++++++++ .../packages/cupertino_icons/CHANGELOG.md | 2 + 496 files changed, 1363 insertions(+), 838 deletions(-) rename script/tool/lib/src/{remove_dev_dependencies.dart => remove_dev_dependencies_command.dart} (100%) create mode 100644 script/tool/lib/src/update_min_sdk_command.dart rename script/tool/test/{remove_dev_dependencies_test.dart => remove_dev_dependencies_command_test.dart} (99%) create mode 100644 script/tool/test/update_min_sdk_command_test.dart diff --git a/.cirrus.yml b/.cirrus.yml index 9db2e54f1f67..73a843d91521 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -95,9 +95,9 @@ task: always: format_script: ./script/tool_runner.sh format --fail-on-change license_script: $PLUGIN_TOOL_COMMAND license-check - # The major and minor versions here should match the lowest version + # The major and minor version here should match the lowest version # analyzed in legacy_version_analyze. - pubspec_script: ./script/tool_runner.sh pubspec-check --min-min-flutter-version=3.0.0 --min-min-dart-version=2.17.0 + pubspec_script: ./script/tool_runner.sh pubspec-check --min-min-flutter-version=3.0.0 readme_script: - ./script/tool_runner.sh readme-check # Re-run with --require-excerpts, skipping packages that still need diff --git a/packages/animations/CHANGELOG.md b/packages/animations/CHANGELOG.md index 7ed09836b848..a6733e2416c5 100644 --- a/packages/animations/CHANGELOG.md +++ b/packages/animations/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 2.0.7 * Updates screenshots to use webp compressed animations diff --git a/packages/animations/example/lib/container_transition.dart b/packages/animations/example/lib/container_transition.dart index 3fabccbb2390..4e522d8a0d45 100644 --- a/packages/animations/example/lib/container_transition.dart +++ b/packages/animations/example/lib/container_transition.dart @@ -41,7 +41,7 @@ const double _fabDimension = 56.0; /// The demo page for [OpenContainerTransform]. class OpenContainerTransformDemo extends StatefulWidget { /// Creates the demo page for [OpenContainerTransform]. - const OpenContainerTransformDemo({Key? key}) : super(key: key); + const OpenContainerTransformDemo({super.key}); @override State createState() { diff --git a/packages/animations/example/lib/fade_scale_transition.dart b/packages/animations/example/lib/fade_scale_transition.dart index b6ca592d730a..7a633f21e50e 100644 --- a/packages/animations/example/lib/fade_scale_transition.dart +++ b/packages/animations/example/lib/fade_scale_transition.dart @@ -8,7 +8,7 @@ import 'package:flutter/material.dart'; /// The demo page for [FadeScaleTransition]. class FadeScaleTransitionDemo extends StatefulWidget { /// Creates the demo page for [FadeScaleTransition]. - const FadeScaleTransitionDemo({Key? key}) : super(key: key); + const FadeScaleTransitionDemo({super.key}); @override State createState() => diff --git a/packages/animations/example/lib/fade_through_transition.dart b/packages/animations/example/lib/fade_through_transition.dart index 2cc1dde90c8b..6fc368f2b12f 100644 --- a/packages/animations/example/lib/fade_through_transition.dart +++ b/packages/animations/example/lib/fade_through_transition.dart @@ -8,7 +8,7 @@ import 'package:flutter/material.dart'; /// The demo page for [FadeThroughTransition]. class FadeThroughTransitionDemo extends StatefulWidget { /// Creates the demo page for [FadeThroughTransition]. - const FadeThroughTransitionDemo({Key? key}) : super(key: key); + const FadeThroughTransitionDemo({super.key}); @override State createState() => diff --git a/packages/animations/example/lib/shared_axis_transition.dart b/packages/animations/example/lib/shared_axis_transition.dart index eaf0f869b760..ce1710810b68 100644 --- a/packages/animations/example/lib/shared_axis_transition.dart +++ b/packages/animations/example/lib/shared_axis_transition.dart @@ -8,7 +8,7 @@ import 'package:flutter/material.dart'; /// The demo page for [SharedAxisPageTransitionsBuilder]. class SharedAxisTransitionDemo extends StatefulWidget { /// Creates the demo page for [SharedAxisPageTransitionsBuilder]. - const SharedAxisTransitionDemo({Key? key}) : super(key: key); + const SharedAxisTransitionDemo({super.key}); @override State createState() { diff --git a/packages/animations/example/pubspec.yaml b/packages/animations/example/pubspec.yaml index a855bd15ca35..62b0ee0e65f6 100644 --- a/packages/animations/example/pubspec.yaml +++ b/packages/animations/example/pubspec.yaml @@ -6,7 +6,7 @@ publish_to: none version: 0.0.1 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/animations/lib/src/fade_scale_transition.dart b/packages/animations/lib/src/fade_scale_transition.dart index 9b3fe6730833..a9108e03b757 100644 --- a/packages/animations/lib/src/fade_scale_transition.dart +++ b/packages/animations/lib/src/fade_scale_transition.dart @@ -65,18 +65,12 @@ class FadeScaleTransitionConfiguration extends ModalConfiguration { /// a dismissible barrier. [barrierDismissible] cannot be null. If /// [barrierDismissible] is true, the [barrierLabel] cannot be null. const FadeScaleTransitionConfiguration({ - Color barrierColor = Colors.black54, - bool barrierDismissible = true, - Duration transitionDuration = const Duration(milliseconds: 150), - Duration reverseTransitionDuration = const Duration(milliseconds: 75), - String barrierLabel = 'Dismiss', - }) : super( - barrierColor: barrierColor, - barrierDismissible: barrierDismissible, - barrierLabel: barrierLabel, - transitionDuration: transitionDuration, - reverseTransitionDuration: reverseTransitionDuration, - ); + super.barrierColor = Colors.black54, + super.barrierDismissible = true, + super.transitionDuration = const Duration(milliseconds: 150), + super.reverseTransitionDuration = const Duration(milliseconds: 75), + String super.barrierLabel = 'Dismiss', + }); @override Widget transitionBuilder( @@ -115,10 +109,10 @@ class FadeScaleTransition extends StatelessWidget { /// [animation] is typically an [AnimationController] that drives the transition /// animation. [animation] cannot be null. const FadeScaleTransition({ - Key? key, + super.key, required this.animation, this.child, - }) : super(key: key); + }); /// The animation that drives the [child]'s entrance and exit. /// diff --git a/packages/animations/lib/src/fade_through_transition.dart b/packages/animations/lib/src/fade_through_transition.dart index 1b7962893eeb..fbca19d65437 100644 --- a/packages/animations/lib/src/fade_through_transition.dart +++ b/packages/animations/lib/src/fade_through_transition.dart @@ -162,12 +162,12 @@ class FadeThroughTransition extends StatelessWidget { /// The [animation] and [secondaryAnimation] argument are required and must /// not be null. const FadeThroughTransition({ - Key? key, + super.key, required this.animation, required this.secondaryAnimation, this.fillColor, this.child, - }) : super(key: key); + }); /// The animation that drives the [child]'s entrance and exit. /// @@ -213,8 +213,7 @@ class FadeThroughTransition extends StatelessWidget { } class _ZoomedFadeInFadeOut extends StatelessWidget { - const _ZoomedFadeInFadeOut({Key? key, required this.animation, this.child}) - : super(key: key); + const _ZoomedFadeInFadeOut({required this.animation, this.child}); final Animation animation; final Widget? child; diff --git a/packages/animations/lib/src/modal.dart b/packages/animations/lib/src/modal.dart index 73047d56a2b5..c4348a9f0eee 100644 --- a/packages/animations/lib/src/modal.dart +++ b/packages/animations/lib/src/modal.dart @@ -98,10 +98,10 @@ class _ModalRoute extends PopupRoute { required _ModalTransitionBuilder transitionBuilder, required this.builder, RouteSettings? routeSettings, - ui.ImageFilter? filter, + super.filter, }) : assert(!barrierDismissible || barrierLabel != null), _transitionBuilder = transitionBuilder, - super(filter: filter, settings: routeSettings); + super(settings: routeSettings); @override final Color? barrierColor; diff --git a/packages/animations/lib/src/open_container.dart b/packages/animations/lib/src/open_container.dart index e3f3ef684550..fb7bd46e3576 100644 --- a/packages/animations/lib/src/open_container.dart +++ b/packages/animations/lib/src/open_container.dart @@ -80,7 +80,7 @@ class OpenContainer extends StatefulWidget { /// All arguments except for [key] must not be null. The arguments /// [openBuilder] and [closedBuilder] are required. const OpenContainer({ - Key? key, + super.key, this.closedColor = Colors.white, this.openColor = Colors.white, this.middleColor, @@ -99,7 +99,7 @@ class OpenContainer extends StatefulWidget { this.useRootNavigator = false, this.routeSettings, this.clipBehavior = Clip.antiAlias, - }) : super(key: key); + }); /// Background color of the container while it is closed. /// @@ -341,9 +341,9 @@ class _OpenContainerState extends State> { /// `isVisible` is ignored). class _Hideable extends StatefulWidget { const _Hideable({ - Key? key, + super.key, required this.child, - }) : super(key: key); + }); final Widget child; diff --git a/packages/animations/lib/src/page_transition_switcher.dart b/packages/animations/lib/src/page_transition_switcher.dart index 9770b05eee48..78d880bd6975 100644 --- a/packages/animations/lib/src/page_transition_switcher.dart +++ b/packages/animations/lib/src/page_transition_switcher.dart @@ -168,13 +168,13 @@ class PageTransitionSwitcher extends StatefulWidget { /// The [duration], [reverse], and [transitionBuilder] parameters /// must not be null. const PageTransitionSwitcher({ - Key? key, + super.key, this.duration = const Duration(milliseconds: 300), this.reverse = false, required this.transitionBuilder, this.layoutBuilder = defaultLayoutBuilder, this.child, - }) : super(key: key); + }); /// The current child widget to display. /// diff --git a/packages/animations/lib/src/shared_axis_transition.dart b/packages/animations/lib/src/shared_axis_transition.dart index 12314141b722..9868e008cfc8 100644 --- a/packages/animations/lib/src/shared_axis_transition.dart +++ b/packages/animations/lib/src/shared_axis_transition.dart @@ -184,13 +184,13 @@ class SharedAxisTransition extends StatelessWidget { /// The [animation] and [secondaryAnimation] argument are required and must /// not be null. const SharedAxisTransition({ - Key? key, + super.key, required this.animation, required this.secondaryAnimation, required this.transitionType, this.fillColor, this.child, - }) : super(key: key); + }); /// The animation that drives the [child]'s entrance and exit. /// @@ -472,8 +472,8 @@ class _ExitTransition extends StatelessWidget { class _FlippedCurveTween extends CurveTween { /// Creates a vertically flipped [CurveTween]. _FlippedCurveTween({ - required Curve curve, - }) : super(curve: curve); + required super.curve, + }); @override double transform(double t) => 1.0 - super.transform(t); diff --git a/packages/animations/pubspec.yaml b/packages/animations/pubspec.yaml index e59c1c1b6b65..fecaee198241 100644 --- a/packages/animations/pubspec.yaml +++ b/packages/animations/pubspec.yaml @@ -5,7 +5,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 2.0.7 environment: - sdk: '>=2.12.0 <3.0.0' + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/animations/test/dual_transition_builder_test.dart b/packages/animations/test/dual_transition_builder_test.dart index 3284c8cb399a..ecae27fad530 100644 --- a/packages/animations/test/dual_transition_builder_test.dart +++ b/packages/animations/test/dual_transition_builder_test.dart @@ -281,7 +281,7 @@ double _getOpacity(WidgetTester tester) { } class _StatefulTestWidget extends StatefulWidget { - const _StatefulTestWidget({Key? key, required this.name}) : super(key: key); + const _StatefulTestWidget({required this.name}); final String name; diff --git a/packages/animations/test/fade_scale_transition_test.dart b/packages/animations/test/fade_scale_transition_test.dart index c38b30618a05..3af465115333 100644 --- a/packages/animations/test/fade_scale_transition_test.dart +++ b/packages/animations/test/fade_scale_transition_test.dart @@ -466,9 +466,9 @@ double _getScale(GlobalKey key, WidgetTester tester) { class _FlutterLogoModal extends StatefulWidget { const _FlutterLogoModal({ - Key? key, + super.key, this.name, - }) : super(key: key); + }); final String? name; diff --git a/packages/animations/test/fade_through_transition_test.dart b/packages/animations/test/fade_through_transition_test.dart index 7d8a5fa3fd35..3075dd805869 100644 --- a/packages/animations/test/fade_through_transition_test.dart +++ b/packages/animations/test/fade_through_transition_test.dart @@ -487,7 +487,7 @@ class _TestWidget extends StatelessWidget { } class _StatefulTestWidget extends StatefulWidget { - const _StatefulTestWidget({Key? key, this.name}) : super(key: key); + const _StatefulTestWidget({super.key, this.name}); final String? name; diff --git a/packages/animations/test/modal_test.dart b/packages/animations/test/modal_test.dart index 78001aa320a3..28b8a4deb770 100644 --- a/packages/animations/test/modal_test.dart +++ b/packages/animations/test/modal_test.dart @@ -565,9 +565,9 @@ double _getScale(GlobalKey key, WidgetTester tester) { class _FlutterLogoModal extends StatefulWidget { const _FlutterLogoModal({ - Key? key, + super.key, this.name, - }) : super(key: key); + }); final String? name; @@ -593,18 +593,13 @@ class _FlutterLogoModalState extends State<_FlutterLogoModal> { } class _TestModalConfiguration extends ModalConfiguration { - _TestModalConfiguration({ - Color barrierColor = Colors.green, - bool barrierDismissible = true, - String barrierLabel = 'customLabel', - Duration transitionDuration = const Duration(milliseconds: 300), - Duration reverseTransitionDuration = const Duration(milliseconds: 200), - }) : super( - barrierColor: barrierColor, - barrierDismissible: barrierDismissible, - barrierLabel: barrierLabel, - transitionDuration: transitionDuration, - reverseTransitionDuration: reverseTransitionDuration, + _TestModalConfiguration() + : super( + barrierColor: Colors.green, + barrierDismissible: true, + barrierLabel: 'customLabel', + transitionDuration: const Duration(milliseconds: 300), + reverseTransitionDuration: const Duration(milliseconds: 200), ); @override diff --git a/packages/animations/test/open_container_test.dart b/packages/animations/test/open_container_test.dart index d0599554148b..4b7f2f854671 100644 --- a/packages/animations/test/open_container_test.dart +++ b/packages/animations/test/open_container_test.dart @@ -1933,7 +1933,7 @@ class __RemoveOpenContainerExampleState } class DummyStatefulWidget extends StatefulWidget { - const DummyStatefulWidget({Key? key}) : super(key: key); + const DummyStatefulWidget({super.key}); @override State createState() => DummyState(); diff --git a/packages/animations/test/page_transition_switcher_test.dart b/packages/animations/test/page_transition_switcher_test.dart index c40f4ca9c3e7..f7a35fb2dff1 100644 --- a/packages/animations/test/page_transition_switcher_test.dart +++ b/packages/animations/test/page_transition_switcher_test.dart @@ -581,7 +581,7 @@ void main() { } class StatefulTestWidget extends StatefulWidget { - const StatefulTestWidget({Key? key}) : super(key: key); + const StatefulTestWidget({super.key}); @override StatefulTestWidgetState createState() => StatefulTestWidgetState(); diff --git a/packages/animations/test/shared_axis_transition_test.dart b/packages/animations/test/shared_axis_transition_test.dart index 92fd7fcf35c0..67bdf4ea30ef 100644 --- a/packages/animations/test/shared_axis_transition_test.dart +++ b/packages/animations/test/shared_axis_transition_test.dart @@ -1931,7 +1931,7 @@ class _TestWidget extends StatelessWidget { } class _StatefulTestWidget extends StatefulWidget { - const _StatefulTestWidget({Key? key, required this.name}) : super(key: key); + const _StatefulTestWidget({super.key, required this.name}); final String name; diff --git a/packages/camera/camera/CHANGELOG.md b/packages/camera/camera/CHANGELOG.md index 2ca8f00ab4e9..5320774e6a97 100644 --- a/packages/camera/camera/CHANGELOG.md +++ b/packages/camera/camera/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 0.10.3+2 * Updates iOS minimum version in README. diff --git a/packages/camera/camera/README.md b/packages/camera/camera/README.md index 87a25eae127a..db70831aef18 100644 --- a/packages/camera/camera/README.md +++ b/packages/camera/camera/README.md @@ -114,7 +114,7 @@ Future main() async { /// CameraApp is the Main Application. class CameraApp extends StatefulWidget { /// Default Constructor - const CameraApp({Key? key}) : super(key: key); + const CameraApp({super.key}); @override State createState() => _CameraAppState(); diff --git a/packages/camera/camera/example/lib/main.dart b/packages/camera/camera/example/lib/main.dart index b343b6da9d89..2fa2ae6de2d8 100644 --- a/packages/camera/camera/example/lib/main.dart +++ b/packages/camera/camera/example/lib/main.dart @@ -14,7 +14,7 @@ import 'package:video_player/video_player.dart'; /// Camera example home widget. class CameraExampleHome extends StatefulWidget { /// Default Constructor - const CameraExampleHome({Key? key}) : super(key: key); + const CameraExampleHome({super.key}); @override State createState() { @@ -1056,7 +1056,7 @@ class _CameraExampleHomeState extends State /// CameraApp is the Main Application. class CameraApp extends StatelessWidget { /// Default Constructor - const CameraApp({Key? key}) : super(key: key); + const CameraApp({super.key}); @override Widget build(BuildContext context) { diff --git a/packages/camera/camera/example/lib/readme_full_example.dart b/packages/camera/camera/example/lib/readme_full_example.dart index 20bfe78c30fc..0a7c418f4c50 100644 --- a/packages/camera/camera/example/lib/readme_full_example.dart +++ b/packages/camera/camera/example/lib/readme_full_example.dart @@ -18,7 +18,7 @@ Future main() async { /// CameraApp is the Main Application. class CameraApp extends StatefulWidget { /// Default Constructor - const CameraApp({Key? key}) : super(key: key); + const CameraApp({super.key}); @override State createState() => _CameraAppState(); diff --git a/packages/camera/camera/example/pubspec.yaml b/packages/camera/camera/example/pubspec.yaml index e63024076fef..9841d0adfa6f 100644 --- a/packages/camera/camera/example/pubspec.yaml +++ b/packages/camera/camera/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Demonstrates how to use the camera plugin. publish_to: none environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/camera/camera/lib/src/camera_preview.dart b/packages/camera/camera/lib/src/camera_preview.dart index d8eadd8c93ae..53f9034dc858 100644 --- a/packages/camera/camera/lib/src/camera_preview.dart +++ b/packages/camera/camera/lib/src/camera_preview.dart @@ -11,8 +11,7 @@ import '../camera.dart'; /// A widget showing a live camera preview. class CameraPreview extends StatelessWidget { /// Creates a preview widget for the given camera controller. - const CameraPreview(this.controller, {Key? key, this.child}) - : super(key: key); + const CameraPreview(this.controller, {super.key, this.child}); /// The controller for the camera that the preview is shown for. final CameraController controller; diff --git a/packages/camera/camera/pubspec.yaml b/packages/camera/camera/pubspec.yaml index 74ef53c3878f..e084b0c33a25 100644 --- a/packages/camera/camera/pubspec.yaml +++ b/packages/camera/camera/pubspec.yaml @@ -7,7 +7,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 0.10.3+2 environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" flutter: diff --git a/packages/camera/camera_android/CHANGELOG.md b/packages/camera/camera_android/CHANGELOG.md index d608cf1aac79..8fa5a306daec 100644 --- a/packages/camera/camera_android/CHANGELOG.md +++ b/packages/camera/camera_android/CHANGELOG.md @@ -1,5 +1,6 @@ ## NEXT +* Aligns Dart and Flutter SDK constraints. * Updates compileSdkVersion to 33. ## 0.10.4+1 diff --git a/packages/camera/camera_android/example/lib/camera_preview.dart b/packages/camera/camera_android/example/lib/camera_preview.dart index 5e8f64cb2fbd..4fbdb3a2b069 100644 --- a/packages/camera/camera_android/example/lib/camera_preview.dart +++ b/packages/camera/camera_android/example/lib/camera_preview.dart @@ -11,8 +11,7 @@ import 'camera_controller.dart'; /// A widget showing a live camera preview. class CameraPreview extends StatelessWidget { /// Creates a preview widget for the given camera controller. - const CameraPreview(this.controller, {Key? key, this.child}) - : super(key: key); + const CameraPreview(this.controller, {super.key, this.child}); /// The controller for the camera that the preview is shown for. final CameraController controller; diff --git a/packages/camera/camera_android/example/lib/main.dart b/packages/camera/camera_android/example/lib/main.dart index 4d98aed9a4c2..79c213864396 100644 --- a/packages/camera/camera_android/example/lib/main.dart +++ b/packages/camera/camera_android/example/lib/main.dart @@ -18,7 +18,7 @@ import 'camera_preview.dart'; /// Camera example home widget. class CameraExampleHome extends StatefulWidget { /// Default Constructor - const CameraExampleHome({Key? key}) : super(key: key); + const CameraExampleHome({super.key}); @override State createState() { @@ -1064,7 +1064,7 @@ class _CameraExampleHomeState extends State /// CameraApp is the Main Application. class CameraApp extends StatelessWidget { /// Default Constructor - const CameraApp({Key? key}) : super(key: key); + const CameraApp({super.key}); @override Widget build(BuildContext context) { diff --git a/packages/camera/camera_android/example/pubspec.yaml b/packages/camera/camera_android/example/pubspec.yaml index e23e31a886de..aacd47f67730 100644 --- a/packages/camera/camera_android/example/pubspec.yaml +++ b/packages/camera/camera_android/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Demonstrates how to use the camera plugin. publish_to: none environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/camera/camera_android/pubspec.yaml b/packages/camera/camera_android/pubspec.yaml index ec53d698bbb4..e44e72c4d002 100644 --- a/packages/camera/camera_android/pubspec.yaml +++ b/packages/camera/camera_android/pubspec.yaml @@ -5,7 +5,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 0.10.4+1 environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" flutter: diff --git a/packages/camera/camera_avfoundation/CHANGELOG.md b/packages/camera/camera_avfoundation/CHANGELOG.md index b230343cf1c7..fe4d4e7ee687 100644 --- a/packages/camera/camera_avfoundation/CHANGELOG.md +++ b/packages/camera/camera_avfoundation/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 0.9.12 * Updates minimum Flutter version to 3.3 and iOS 11. diff --git a/packages/camera/camera_avfoundation/example/lib/camera_preview.dart b/packages/camera/camera_avfoundation/example/lib/camera_preview.dart index 5e8f64cb2fbd..4fbdb3a2b069 100644 --- a/packages/camera/camera_avfoundation/example/lib/camera_preview.dart +++ b/packages/camera/camera_avfoundation/example/lib/camera_preview.dart @@ -11,8 +11,7 @@ import 'camera_controller.dart'; /// A widget showing a live camera preview. class CameraPreview extends StatelessWidget { /// Creates a preview widget for the given camera controller. - const CameraPreview(this.controller, {Key? key, this.child}) - : super(key: key); + const CameraPreview(this.controller, {super.key, this.child}); /// The controller for the camera that the preview is shown for. final CameraController controller; diff --git a/packages/camera/camera_avfoundation/example/lib/main.dart b/packages/camera/camera_avfoundation/example/lib/main.dart index 4d98aed9a4c2..79c213864396 100644 --- a/packages/camera/camera_avfoundation/example/lib/main.dart +++ b/packages/camera/camera_avfoundation/example/lib/main.dart @@ -18,7 +18,7 @@ import 'camera_preview.dart'; /// Camera example home widget. class CameraExampleHome extends StatefulWidget { /// Default Constructor - const CameraExampleHome({Key? key}) : super(key: key); + const CameraExampleHome({super.key}); @override State createState() { @@ -1064,7 +1064,7 @@ class _CameraExampleHomeState extends State /// CameraApp is the Main Application. class CameraApp extends StatelessWidget { /// Default Constructor - const CameraApp({Key? key}) : super(key: key); + const CameraApp({super.key}); @override Widget build(BuildContext context) { diff --git a/packages/camera/camera_avfoundation/example/pubspec.yaml b/packages/camera/camera_avfoundation/example/pubspec.yaml index 7c85ba807193..1e966b1c584b 100644 --- a/packages/camera/camera_avfoundation/example/pubspec.yaml +++ b/packages/camera/camera_avfoundation/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Demonstrates how to use the camera plugin. publish_to: none environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/camera/camera_platform_interface/CHANGELOG.md b/packages/camera/camera_platform_interface/CHANGELOG.md index 2a7261d35492..2c9f88181fd8 100644 --- a/packages/camera/camera_platform_interface/CHANGELOG.md +++ b/packages/camera/camera_platform_interface/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 2.4.1 * Updates links for the merge of flutter/plugins into flutter/packages. diff --git a/packages/camera/camera_platform_interface/lib/src/events/camera_event.dart b/packages/camera/camera_platform_interface/lib/src/events/camera_event.dart index a6ace8f9ae74..95f61a97a2c8 100644 --- a/packages/camera/camera_platform_interface/lib/src/events/camera_event.dart +++ b/packages/camera/camera_platform_interface/lib/src/events/camera_event.dart @@ -51,14 +51,14 @@ class CameraInitializedEvent extends CameraEvent { /// The `previewWidth` represents the width of the generated preview in pixels. /// The `previewHeight` represents the height of the generated preview in pixels. const CameraInitializedEvent( - int cameraId, + super.cameraId, this.previewWidth, this.previewHeight, this.exposureMode, this.exposurePointSupported, this.focusMode, this.focusPointSupported, - ) : super(cameraId); + ); /// Converts the supplied [Map] to an instance of the [CameraInitializedEvent] /// class. @@ -135,10 +135,10 @@ class CameraResolutionChangedEvent extends CameraEvent { /// The `captureWidth` represents the width of the resulting image in pixels. /// The `captureHeight` represents the height of the resulting image in pixels. const CameraResolutionChangedEvent( - int cameraId, + super.cameraId, this.captureWidth, this.captureHeight, - ) : super(cameraId); + ); /// Converts the supplied [Map] to an instance of the /// [CameraResolutionChangedEvent] class. @@ -178,7 +178,7 @@ class CameraResolutionChangedEvent extends CameraEvent { class CameraClosingEvent extends CameraEvent { /// Build a CameraClosing event triggered from the camera represented by /// `cameraId`. - const CameraClosingEvent(int cameraId) : super(cameraId); + const CameraClosingEvent(super.cameraId); /// Converts the supplied [Map] to an instance of the [CameraClosingEvent] /// class. @@ -211,7 +211,7 @@ class CameraErrorEvent extends CameraEvent { /// `cameraId`. /// /// The `description` represents the error occured on the camera. - const CameraErrorEvent(int cameraId, this.description) : super(cameraId); + const CameraErrorEvent(super.cameraId, this.description); /// Converts the supplied [Map] to an instance of the [CameraErrorEvent] /// class. @@ -248,8 +248,7 @@ class VideoRecordedEvent extends CameraEvent { /// The `file` represents the file of the video. /// The `maxVideoDuration` shows if a maxVideoDuration shows if a maximum /// video duration was set. - const VideoRecordedEvent(int cameraId, this.file, this.maxVideoDuration) - : super(cameraId); + const VideoRecordedEvent(super.cameraId, this.file, this.maxVideoDuration); /// Converts the supplied [Map] to an instance of the [VideoRecordedEvent] /// class. diff --git a/packages/camera/camera_platform_interface/pubspec.yaml b/packages/camera/camera_platform_interface/pubspec.yaml index c3869bf599d1..87ddb004450e 100644 --- a/packages/camera/camera_platform_interface/pubspec.yaml +++ b/packages/camera/camera_platform_interface/pubspec.yaml @@ -7,7 +7,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 2.4.1 environment: - sdk: '>=2.12.0 <3.0.0' + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/camera/camera_web/CHANGELOG.md b/packages/camera/camera_web/CHANGELOG.md index eae1b49186d9..af5c63e24ee5 100644 --- a/packages/camera/camera_web/CHANGELOG.md +++ b/packages/camera/camera_web/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 0.3.1+2 * Updates links for the merge of flutter/plugins into flutter/packages. diff --git a/packages/camera/camera_web/example/lib/main.dart b/packages/camera/camera_web/example/lib/main.dart index 670891fa5009..b62c8dcf8c6b 100644 --- a/packages/camera/camera_web/example/lib/main.dart +++ b/packages/camera/camera_web/example/lib/main.dart @@ -9,7 +9,7 @@ void main() => runApp(const MyApp()); /// App for testing class MyApp extends StatelessWidget { /// Default Constructor - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override Widget build(BuildContext context) { diff --git a/packages/camera/camera_web/example/pubspec.yaml b/packages/camera/camera_web/example/pubspec.yaml index ee66870c051d..82af7734ba60 100644 --- a/packages/camera/camera_web/example/pubspec.yaml +++ b/packages/camera/camera_web/example/pubspec.yaml @@ -2,7 +2,7 @@ name: camera_web_integration_tests publish_to: none environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/camera/camera_web/pubspec.yaml b/packages/camera/camera_web/pubspec.yaml index 1e0ac7fbaa3e..11179fde3717 100644 --- a/packages/camera/camera_web/pubspec.yaml +++ b/packages/camera/camera_web/pubspec.yaml @@ -5,7 +5,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 0.3.1+2 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" flutter: diff --git a/packages/camera/camera_windows/CHANGELOG.md b/packages/camera/camera_windows/CHANGELOG.md index 98f9ceac23bb..2c0c518814e9 100644 --- a/packages/camera/camera_windows/CHANGELOG.md +++ b/packages/camera/camera_windows/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 0.2.1+5 * Updates links for the merge of flutter/plugins into flutter/packages. diff --git a/packages/camera/camera_windows/example/lib/main.dart b/packages/camera/camera_windows/example/lib/main.dart index d27edb860975..e6d903c774bf 100644 --- a/packages/camera/camera_windows/example/lib/main.dart +++ b/packages/camera/camera_windows/example/lib/main.dart @@ -15,7 +15,7 @@ void main() { /// Example app for Camera Windows plugin. class MyApp extends StatefulWidget { /// Default Constructor - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override State createState() => _MyAppState(); diff --git a/packages/camera/camera_windows/example/pubspec.yaml b/packages/camera/camera_windows/example/pubspec.yaml index 69ce1c330156..8eb73b01c72c 100644 --- a/packages/camera/camera_windows/example/pubspec.yaml +++ b/packages/camera/camera_windows/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Demonstrates how to use the camera_windows plugin. publish_to: 'none' environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/camera/camera_windows/pubspec.yaml b/packages/camera/camera_windows/pubspec.yaml index f4f2eb42fcda..04c115a0b1dc 100644 --- a/packages/camera/camera_windows/pubspec.yaml +++ b/packages/camera/camera_windows/pubspec.yaml @@ -5,7 +5,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 0.2.1+5 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" flutter: diff --git a/packages/css_colors/CHANGELOG.md b/packages/css_colors/CHANGELOG.md index abcf041f5232..8d87d6361dec 100644 --- a/packages/css_colors/CHANGELOG.md +++ b/packages/css_colors/CHANGELOG.md @@ -1,5 +1,6 @@ ## NEXT +- Aligns Dart and Flutter SDK constraints. - Updates minimum Flutter version to 3.0. - Updates package description. diff --git a/packages/css_colors/pubspec.yaml b/packages/css_colors/pubspec.yaml index 1021d99e8400..497908102c7e 100644 --- a/packages/css_colors/pubspec.yaml +++ b/packages/css_colors/pubspec.yaml @@ -5,7 +5,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 1.1.1 environment: - sdk: '>=2.12.0 <3.0.0' + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/dynamic_layouts/CHANGELOG.md b/packages/dynamic_layouts/CHANGELOG.md index 03c97442bebf..77830d1bdf2c 100644 --- a/packages/dynamic_layouts/CHANGELOG.md +++ b/packages/dynamic_layouts/CHANGELOG.md @@ -1,5 +1,6 @@ ## NEXT +* Aligns Dart and Flutter SDK constraints. * Updates minimum Flutter version to 3.0. ## 0.0.1 diff --git a/packages/dynamic_layouts/pubspec.yaml b/packages/dynamic_layouts/pubspec.yaml index 707cf70d2bd5..854bfac2e0df 100644 --- a/packages/dynamic_layouts/pubspec.yaml +++ b/packages/dynamic_layouts/pubspec.yaml @@ -8,7 +8,7 @@ publish_to: none environment: sdk: '>=2.17.6 <3.0.0' - flutter: ">=3.0.0" + flutter: ">=3.0.5" dependencies: flutter: diff --git a/packages/espresso/CHANGELOG.md b/packages/espresso/CHANGELOG.md index 27bd09a24c8f..5fb6e300f0f9 100644 --- a/packages/espresso/CHANGELOG.md +++ b/packages/espresso/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 0.2.1 * Updates the version of com.google.truth:truth to 1.1.3. diff --git a/packages/espresso/example/lib/main.dart b/packages/espresso/example/lib/main.dart index 741cd9cf9fa2..c62c26c2dfc0 100644 --- a/packages/espresso/example/lib/main.dart +++ b/packages/espresso/example/lib/main.dart @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// ignore_for_file: public_member_api_docs + import 'package:flutter/material.dart'; void main() => runApp(const MyApp()); @@ -9,7 +11,7 @@ void main() => runApp(const MyApp()); /// Example app for Espresso plugin. class MyApp extends StatelessWidget { /// Default Constructor - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); // This widget is the root of your application. @override @@ -28,13 +30,13 @@ class MyApp extends StatelessWidget { // is not restarted. primarySwatch: Colors.blue, ), - home: const _MyHomePage(title: 'Flutter Demo Home Page'), + home: const MyHomePage(title: 'Flutter Demo Home Page'), ); } } -class _MyHomePage extends StatefulWidget { - const _MyHomePage({Key? key, required this.title}) : super(key: key); +class MyHomePage extends StatefulWidget { + const MyHomePage({super.key, required this.title}); // This widget is the home page of your application. It is stateful, meaning // that it has a State object (defined below) that contains fields that affect @@ -48,10 +50,10 @@ class _MyHomePage extends StatefulWidget { final String title; @override - State<_MyHomePage> createState() => _MyHomePageState(); + State createState() => MyHomePageState(); } -class _MyHomePageState extends State<_MyHomePage> { +class MyHomePageState extends State { int _counter = 0; void _incrementCounter() { diff --git a/packages/espresso/example/pubspec.yaml b/packages/espresso/example/pubspec.yaml index 0adf623b728a..4a21bbc7e061 100644 --- a/packages/espresso/example/pubspec.yaml +++ b/packages/espresso/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Demonstrates how to use the espresso plugin. publish_to: none environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/espresso/pubspec.yaml b/packages/espresso/pubspec.yaml index ea1fa923f4d8..fb2cbfcd6488 100644 --- a/packages/espresso/pubspec.yaml +++ b/packages/espresso/pubspec.yaml @@ -6,7 +6,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 0.2.1 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" flutter: diff --git a/packages/extension_google_sign_in_as_googleapis_auth/CHANGELOG.md b/packages/extension_google_sign_in_as_googleapis_auth/CHANGELOG.md index 980fb525cf81..a28cc66839e7 100644 --- a/packages/extension_google_sign_in_as_googleapis_auth/CHANGELOG.md +++ b/packages/extension_google_sign_in_as_googleapis_auth/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 2.0.9 * Makes the extension compatible with `google_sign_in` version `^5.0.0` and `^6.0.0`. diff --git a/packages/extension_google_sign_in_as_googleapis_auth/example/lib/main.dart b/packages/extension_google_sign_in_as_googleapis_auth/example/lib/main.dart index 10ca2236058d..8e982ace225f 100644 --- a/packages/extension_google_sign_in_as_googleapis_auth/example/lib/main.dart +++ b/packages/extension_google_sign_in_as_googleapis_auth/example/lib/main.dart @@ -28,7 +28,7 @@ void main() { /// The main widget of this demo. class SignInDemo extends StatefulWidget { /// Creates the main widget of this demo. - const SignInDemo({Key? key}) : super(key: key); + const SignInDemo({super.key}); @override State createState() => SignInDemoState(); diff --git a/packages/extension_google_sign_in_as_googleapis_auth/example/pubspec.yaml b/packages/extension_google_sign_in_as_googleapis_auth/example/pubspec.yaml index dddba8698a59..466bec8338a8 100644 --- a/packages/extension_google_sign_in_as_googleapis_auth/example/pubspec.yaml +++ b/packages/extension_google_sign_in_as_googleapis_auth/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Example of Google Sign-In plugin and googleapis. publish_to: none environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/extension_google_sign_in_as_googleapis_auth/pubspec.yaml b/packages/extension_google_sign_in_as_googleapis_auth/pubspec.yaml index 78440cd612d7..b56c81403b17 100644 --- a/packages/extension_google_sign_in_as_googleapis_auth/pubspec.yaml +++ b/packages/extension_google_sign_in_as_googleapis_auth/pubspec.yaml @@ -11,7 +11,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 2.0.9 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/file_selector/file_selector/CHANGELOG.md b/packages/file_selector/file_selector/CHANGELOG.md index 74b051572712..febebfdcdca7 100644 --- a/packages/file_selector/file_selector/CHANGELOG.md +++ b/packages/file_selector/file_selector/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 0.9.2+4 * Updates iOS minimum version in README. diff --git a/packages/file_selector/file_selector/example/lib/get_directory_page.dart b/packages/file_selector/file_selector/example/lib/get_directory_page.dart index dfe166db96c4..9236a330d04e 100644 --- a/packages/file_selector/file_selector/example/lib/get_directory_page.dart +++ b/packages/file_selector/file_selector/example/lib/get_directory_page.dart @@ -9,7 +9,7 @@ import 'package:flutter/material.dart'; /// Screen that shows an example of getDirectoryPath class GetDirectoryPage extends StatelessWidget { /// Default Constructor - GetDirectoryPage({Key? key}) : super(key: key); + GetDirectoryPage({super.key}); final bool _isIOS = !kIsWeb && defaultTargetPlatform == TargetPlatform.iOS; @@ -63,7 +63,7 @@ class GetDirectoryPage extends StatelessWidget { /// Widget that displays a text file in a dialog class TextDisplay extends StatelessWidget { /// Default Constructor - const TextDisplay(this.directoryPath, {Key? key}) : super(key: key); + const TextDisplay(this.directoryPath, {super.key}); /// Directory path final String directoryPath; diff --git a/packages/file_selector/file_selector/example/lib/home_page.dart b/packages/file_selector/file_selector/example/lib/home_page.dart index 7b4582c5f5e3..a532dc84aab5 100644 --- a/packages/file_selector/file_selector/example/lib/home_page.dart +++ b/packages/file_selector/file_selector/example/lib/home_page.dart @@ -7,7 +7,7 @@ import 'package:flutter/material.dart'; /// Home Page of the application class HomePage extends StatelessWidget { /// Default Constructor - const HomePage({Key? key}) : super(key: key); + const HomePage({super.key}); @override Widget build(BuildContext context) { diff --git a/packages/file_selector/file_selector/example/lib/main.dart b/packages/file_selector/file_selector/example/lib/main.dart index a15842a1191c..27b34e86fe16 100644 --- a/packages/file_selector/file_selector/example/lib/main.dart +++ b/packages/file_selector/file_selector/example/lib/main.dart @@ -18,7 +18,7 @@ void main() { /// MyApp is the Main Application class MyApp extends StatelessWidget { /// Default Constructor - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override Widget build(BuildContext context) { diff --git a/packages/file_selector/file_selector/example/lib/open_image_page.dart b/packages/file_selector/file_selector/example/lib/open_image_page.dart index 7717f28c39fe..cf979875e595 100644 --- a/packages/file_selector/file_selector/example/lib/open_image_page.dart +++ b/packages/file_selector/file_selector/example/lib/open_image_page.dart @@ -11,7 +11,7 @@ import 'package:flutter/material.dart'; /// Screen that shows an example of openFiles class OpenImagePage extends StatelessWidget { /// Default Constructor - const OpenImagePage({Key? key}) : super(key: key); + const OpenImagePage({super.key}); Future _openImageFile(BuildContext context) async { // #docregion SingleOpen @@ -68,8 +68,7 @@ class OpenImagePage extends StatelessWidget { /// Widget that displays a text file in a dialog class ImageDisplay extends StatelessWidget { /// Default Constructor - const ImageDisplay(this.fileName, this.filePath, {Key? key}) - : super(key: key); + const ImageDisplay(this.fileName, this.filePath, {super.key}); /// Image's name final String fileName; diff --git a/packages/file_selector/file_selector/example/lib/open_multiple_images_page.dart b/packages/file_selector/file_selector/example/lib/open_multiple_images_page.dart index a09a6db9d7a7..2a5a819f35d8 100644 --- a/packages/file_selector/file_selector/example/lib/open_multiple_images_page.dart +++ b/packages/file_selector/file_selector/example/lib/open_multiple_images_page.dart @@ -11,7 +11,7 @@ import 'package:flutter/material.dart'; /// Screen that shows an example of openFiles class OpenMultipleImagesPage extends StatelessWidget { /// Default Constructor - const OpenMultipleImagesPage({Key? key}) : super(key: key); + const OpenMultipleImagesPage({super.key}); Future _openImageFile(BuildContext context) async { // #docregion MultiOpen @@ -71,7 +71,7 @@ class OpenMultipleImagesPage extends StatelessWidget { /// Widget that displays a text file in a dialog class MultipleImagesDisplay extends StatelessWidget { /// Default Constructor - const MultipleImagesDisplay(this.files, {Key? key}) : super(key: key); + const MultipleImagesDisplay(this.files, {super.key}); /// The files containing the images final List files; diff --git a/packages/file_selector/file_selector/example/lib/open_text_page.dart b/packages/file_selector/file_selector/example/lib/open_text_page.dart index e28a67a02ddf..5121e9d55a43 100644 --- a/packages/file_selector/file_selector/example/lib/open_text_page.dart +++ b/packages/file_selector/file_selector/example/lib/open_text_page.dart @@ -9,7 +9,7 @@ import 'package:path_provider/path_provider.dart'; /// Screen that shows an example of openFile class OpenTextPage extends StatelessWidget { /// Default Constructor - const OpenTextPage({Key? key}) : super(key: key); + const OpenTextPage({super.key}); Future _openTextFile(BuildContext context) async { const XTypeGroup typeGroup = XTypeGroup( @@ -71,8 +71,7 @@ class OpenTextPage extends StatelessWidget { /// Widget that displays a text file in a dialog class TextDisplay extends StatelessWidget { /// Default Constructor - const TextDisplay(this.fileName, this.fileContent, {Key? key}) - : super(key: key); + const TextDisplay(this.fileName, this.fileContent, {super.key}); /// File's name final String fileName; diff --git a/packages/file_selector/file_selector/example/lib/readme_standalone_excerpts.dart b/packages/file_selector/file_selector/example/lib/readme_standalone_excerpts.dart index f8126045019a..434bb90264ea 100644 --- a/packages/file_selector/file_selector/example/lib/readme_standalone_excerpts.dart +++ b/packages/file_selector/file_selector/example/lib/readme_standalone_excerpts.dart @@ -19,7 +19,7 @@ void main() { } class MyApp extends StatefulWidget { - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override State createState() => _MyAppState(); diff --git a/packages/file_selector/file_selector/example/lib/save_text_page.dart b/packages/file_selector/file_selector/example/lib/save_text_page.dart index 0a49e6f0382c..a159352570f6 100644 --- a/packages/file_selector/file_selector/example/lib/save_text_page.dart +++ b/packages/file_selector/file_selector/example/lib/save_text_page.dart @@ -14,7 +14,7 @@ import 'package:path_provider/path_provider.dart'; /// Page for showing an example of saving with file_selector class SaveTextPage extends StatelessWidget { /// Default Constructor - SaveTextPage({Key? key}) : super(key: key); + SaveTextPage({super.key}); final bool _isIOS = !kIsWeb && defaultTargetPlatform == TargetPlatform.iOS; diff --git a/packages/file_selector/file_selector/example/pubspec.yaml b/packages/file_selector/file_selector/example/pubspec.yaml index ff9d6d0d2e17..d0c1c200a747 100644 --- a/packages/file_selector/file_selector/example/pubspec.yaml +++ b/packages/file_selector/file_selector/example/pubspec.yaml @@ -5,7 +5,7 @@ publish_to: none version: 1.0.0+1 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/file_selector/file_selector/pubspec.yaml b/packages/file_selector/file_selector/pubspec.yaml index 540635f76afe..0bdd468ab822 100644 --- a/packages/file_selector/file_selector/pubspec.yaml +++ b/packages/file_selector/file_selector/pubspec.yaml @@ -6,7 +6,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 0.9.2+4 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" flutter: diff --git a/packages/file_selector/file_selector_ios/CHANGELOG.md b/packages/file_selector/file_selector_ios/CHANGELOG.md index 83ee72a20ce6..a92dec100738 100644 --- a/packages/file_selector/file_selector_ios/CHANGELOG.md +++ b/packages/file_selector/file_selector_ios/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 0.5.1 * Updates minimum Flutter version to 3.3 and iOS 11. diff --git a/packages/file_selector/file_selector_ios/example/lib/home_page.dart b/packages/file_selector/file_selector_ios/example/lib/home_page.dart index 7486977556af..9b27c223abfc 100644 --- a/packages/file_selector/file_selector_ios/example/lib/home_page.dart +++ b/packages/file_selector/file_selector_ios/example/lib/home_page.dart @@ -7,7 +7,7 @@ import 'package:flutter/material.dart'; /// Home Page of the application. class HomePage extends StatelessWidget { /// Default Constructor - const HomePage({Key? key}) : super(key: key); + const HomePage({super.key}); @override Widget build(BuildContext context) { diff --git a/packages/file_selector/file_selector_ios/example/lib/main.dart b/packages/file_selector/file_selector_ios/example/lib/main.dart index 929c48fb9037..00641de1671d 100644 --- a/packages/file_selector/file_selector_ios/example/lib/main.dart +++ b/packages/file_selector/file_selector_ios/example/lib/main.dart @@ -16,7 +16,7 @@ void main() { /// MyApp is the Main Application. class MyApp extends StatelessWidget { /// Default Constructor - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override Widget build(BuildContext context) { diff --git a/packages/file_selector/file_selector_ios/example/lib/open_image_page.dart b/packages/file_selector/file_selector_ios/example/lib/open_image_page.dart index 6fcbcbfbafd6..a89c1bf1c082 100644 --- a/packages/file_selector/file_selector_ios/example/lib/open_image_page.dart +++ b/packages/file_selector/file_selector_ios/example/lib/open_image_page.dart @@ -12,7 +12,7 @@ import 'package:flutter/material.dart'; /// `openFiles`, then displays the selected images in a gallery dialog. class OpenImagePage extends StatelessWidget { /// Default Constructor - const OpenImagePage({Key? key}) : super(key: key); + const OpenImagePage({super.key}); Future _openImageFile(BuildContext context) async { const XTypeGroup typeGroup = XTypeGroup( @@ -68,8 +68,7 @@ class OpenImagePage extends StatelessWidget { /// Widget that displays an image in a dialog. class ImageDisplay extends StatelessWidget { /// Default Constructor. - const ImageDisplay(this.fileName, this.filePath, {Key? key}) - : super(key: key); + const ImageDisplay(this.fileName, this.filePath, {super.key}); /// The name of the selected file. final String fileName; diff --git a/packages/file_selector/file_selector_ios/example/lib/open_multiple_images_page.dart b/packages/file_selector/file_selector_ios/example/lib/open_multiple_images_page.dart index 30cc5159b060..a101a45ddfc3 100644 --- a/packages/file_selector/file_selector_ios/example/lib/open_multiple_images_page.dart +++ b/packages/file_selector/file_selector_ios/example/lib/open_multiple_images_page.dart @@ -12,7 +12,7 @@ import 'package:flutter/material.dart'; /// `openFiles`, then displays the selected images in a gallery dialog. class OpenMultipleImagesPage extends StatelessWidget { /// Default Constructor - const OpenMultipleImagesPage({Key? key}) : super(key: key); + const OpenMultipleImagesPage({super.key}); Future _openImageFile(BuildContext context) async { const XTypeGroup jpgsTypeGroup = XTypeGroup( @@ -73,7 +73,7 @@ class OpenMultipleImagesPage extends StatelessWidget { /// Widget that displays a text file in a dialog. class MultipleImagesDisplay extends StatelessWidget { /// Default Constructor. - const MultipleImagesDisplay(this.files, {Key? key}) : super(key: key); + const MultipleImagesDisplay(this.files, {super.key}); /// The files containing the images. final List files; diff --git a/packages/file_selector/file_selector_ios/example/lib/open_text_page.dart b/packages/file_selector/file_selector_ios/example/lib/open_text_page.dart index f21daf9a96bf..14ec0ea9b890 100644 --- a/packages/file_selector/file_selector_ios/example/lib/open_text_page.dart +++ b/packages/file_selector/file_selector_ios/example/lib/open_text_page.dart @@ -9,7 +9,7 @@ import 'package:flutter/material.dart'; /// displays its contents in a dialog. class OpenTextPage extends StatelessWidget { /// Default Constructor - const OpenTextPage({Key? key}) : super(key: key); + const OpenTextPage({super.key}); Future _openTextFile(BuildContext context) async { const XTypeGroup typeGroup = XTypeGroup( @@ -65,8 +65,7 @@ class OpenTextPage extends StatelessWidget { /// Widget that displays a text file in a dialog. class TextDisplay extends StatelessWidget { /// Default Constructor. - const TextDisplay(this.fileName, this.fileContent, {Key? key}) - : super(key: key); + const TextDisplay(this.fileName, this.fileContent, {super.key}); /// The name of the selected file. final String fileName; diff --git a/packages/file_selector/file_selector_ios/example/pubspec.yaml b/packages/file_selector/file_selector_ios/example/pubspec.yaml index 175ec6c6e7d0..47b4509238cd 100644 --- a/packages/file_selector/file_selector_ios/example/pubspec.yaml +++ b/packages/file_selector/file_selector_ios/example/pubspec.yaml @@ -4,7 +4,7 @@ publish_to: 'none' version: 1.0.0 environment: - sdk: ">=2.14.4 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/file_selector/file_selector_linux/CHANGELOG.md b/packages/file_selector/file_selector_linux/CHANGELOG.md index 82d0cdd58b81..3bf7edd148ea 100644 --- a/packages/file_selector/file_selector_linux/CHANGELOG.md +++ b/packages/file_selector/file_selector_linux/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 0.9.1+1 * Updates links for the merge of flutter/plugins into flutter/packages. diff --git a/packages/file_selector/file_selector_linux/example/lib/get_directory_page.dart b/packages/file_selector/file_selector_linux/example/lib/get_directory_page.dart index f6390ccef20d..2fa862bb49b6 100644 --- a/packages/file_selector/file_selector_linux/example/lib/get_directory_page.dart +++ b/packages/file_selector/file_selector_linux/example/lib/get_directory_page.dart @@ -9,7 +9,7 @@ import 'package:flutter/material.dart'; /// then displays the selected directory in a dialog. class GetDirectoryPage extends StatelessWidget { /// Default Constructor - const GetDirectoryPage({Key? key}) : super(key: key); + const GetDirectoryPage({super.key}); Future _getDirectoryPath(BuildContext context) async { const String confirmButtonText = 'Choose'; @@ -60,7 +60,7 @@ class GetDirectoryPage extends StatelessWidget { /// Widget that displays a text file in a dialog. class TextDisplay extends StatelessWidget { /// Creates a `TextDisplay`. - const TextDisplay(this.directoryPath, {Key? key}) : super(key: key); + const TextDisplay(this.directoryPath, {super.key}); /// The path selected in the dialog. final String directoryPath; diff --git a/packages/file_selector/file_selector_linux/example/lib/get_multiple_directories_page.dart b/packages/file_selector/file_selector_linux/example/lib/get_multiple_directories_page.dart index 087240be765e..a312f886ac34 100644 --- a/packages/file_selector/file_selector_linux/example/lib/get_multiple_directories_page.dart +++ b/packages/file_selector/file_selector_linux/example/lib/get_multiple_directories_page.dart @@ -9,7 +9,7 @@ import 'package:flutter/material.dart'; /// then displays the selected directories in a dialog. class GetMultipleDirectoriesPage extends StatelessWidget { /// Default Constructor - const GetMultipleDirectoriesPage({Key? key}) : super(key: key); + const GetMultipleDirectoriesPage({super.key}); Future _getDirectoryPaths(BuildContext context) async { const String confirmButtonText = 'Choose'; @@ -62,7 +62,7 @@ class GetMultipleDirectoriesPage extends StatelessWidget { /// Widget that displays a text file in a dialog. class TextDisplay extends StatelessWidget { /// Creates a `TextDisplay`. - const TextDisplay(this.directoriesPaths, {Key? key}) : super(key: key); + const TextDisplay(this.directoriesPaths, {super.key}); /// The path selected in the dialog. final String directoriesPaths; diff --git a/packages/file_selector/file_selector_linux/example/lib/home_page.dart b/packages/file_selector/file_selector_linux/example/lib/home_page.dart index 80e16332a017..3c80f4405785 100644 --- a/packages/file_selector/file_selector_linux/example/lib/home_page.dart +++ b/packages/file_selector/file_selector_linux/example/lib/home_page.dart @@ -7,7 +7,7 @@ import 'package:flutter/material.dart'; /// Home Page of the application. class HomePage extends StatelessWidget { /// Default Constructor - const HomePage({Key? key}) : super(key: key); + const HomePage({super.key}); @override Widget build(BuildContext context) { diff --git a/packages/file_selector/file_selector_linux/example/lib/main.dart b/packages/file_selector/file_selector_linux/example/lib/main.dart index b8f047645a1d..a88f850f5d6d 100644 --- a/packages/file_selector/file_selector_linux/example/lib/main.dart +++ b/packages/file_selector/file_selector_linux/example/lib/main.dart @@ -19,7 +19,7 @@ void main() { /// MyApp is the Main Application. class MyApp extends StatelessWidget { /// Default Constructor - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override Widget build(BuildContext context) { diff --git a/packages/file_selector/file_selector_linux/example/lib/open_image_page.dart b/packages/file_selector/file_selector_linux/example/lib/open_image_page.dart index 9252d25f113c..7b3da083fccb 100644 --- a/packages/file_selector/file_selector_linux/example/lib/open_image_page.dart +++ b/packages/file_selector/file_selector_linux/example/lib/open_image_page.dart @@ -12,7 +12,7 @@ import 'package:flutter/material.dart'; /// `openFiles`, then displays the selected images in a gallery dialog. class OpenImagePage extends StatelessWidget { /// Default Constructor - const OpenImagePage({Key? key}) : super(key: key); + const OpenImagePage({super.key}); Future _openImageFile(BuildContext context) async { const XTypeGroup typeGroup = XTypeGroup( @@ -67,8 +67,7 @@ class OpenImagePage extends StatelessWidget { /// Widget that displays an image in a dialog. class ImageDisplay extends StatelessWidget { /// Default Constructor. - const ImageDisplay(this.fileName, this.filePath, {Key? key}) - : super(key: key); + const ImageDisplay(this.fileName, this.filePath, {super.key}); /// The name of the selected file. final String fileName; diff --git a/packages/file_selector/file_selector_linux/example/lib/open_multiple_images_page.dart b/packages/file_selector/file_selector_linux/example/lib/open_multiple_images_page.dart index 787717cdea13..693ace927506 100644 --- a/packages/file_selector/file_selector_linux/example/lib/open_multiple_images_page.dart +++ b/packages/file_selector/file_selector_linux/example/lib/open_multiple_images_page.dart @@ -12,7 +12,7 @@ import 'package:flutter/material.dart'; /// `openFiles`, then displays the selected images in a gallery dialog. class OpenMultipleImagesPage extends StatelessWidget { /// Default Constructor - const OpenMultipleImagesPage({Key? key}) : super(key: key); + const OpenMultipleImagesPage({super.key}); Future _openImageFile(BuildContext context) async { const XTypeGroup jpgsTypeGroup = XTypeGroup( @@ -71,7 +71,7 @@ class OpenMultipleImagesPage extends StatelessWidget { /// Widget that displays a text file in a dialog. class MultipleImagesDisplay extends StatelessWidget { /// Default Constructor. - const MultipleImagesDisplay(this.files, {Key? key}) : super(key: key); + const MultipleImagesDisplay(this.files, {super.key}); /// The files containing the images. final List files; diff --git a/packages/file_selector/file_selector_linux/example/lib/open_text_page.dart b/packages/file_selector/file_selector_linux/example/lib/open_text_page.dart index 97812f2b3505..dd8b7c762abf 100644 --- a/packages/file_selector/file_selector_linux/example/lib/open_text_page.dart +++ b/packages/file_selector/file_selector_linux/example/lib/open_text_page.dart @@ -9,7 +9,7 @@ import 'package:flutter/material.dart'; /// displays its contents in a dialog. class OpenTextPage extends StatelessWidget { /// Default Constructor - const OpenTextPage({Key? key}) : super(key: key); + const OpenTextPage({super.key}); Future _openTextFile(BuildContext context) async { const XTypeGroup typeGroup = XTypeGroup( @@ -64,8 +64,7 @@ class OpenTextPage extends StatelessWidget { /// Widget that displays a text file in a dialog. class TextDisplay extends StatelessWidget { /// Default Constructor. - const TextDisplay(this.fileName, this.fileContent, {Key? key}) - : super(key: key); + const TextDisplay(this.fileName, this.fileContent, {super.key}); /// The name of the selected file. final String fileName; diff --git a/packages/file_selector/file_selector_linux/example/lib/save_text_page.dart b/packages/file_selector/file_selector_linux/example/lib/save_text_page.dart index aca041f474c7..174c490c5fc7 100644 --- a/packages/file_selector/file_selector_linux/example/lib/save_text_page.dart +++ b/packages/file_selector/file_selector_linux/example/lib/save_text_page.dart @@ -10,7 +10,7 @@ import 'package:flutter/material.dart'; /// then writes text to a file at that location. class SaveTextPage extends StatelessWidget { /// Default Constructor - SaveTextPage({Key? key}) : super(key: key); + SaveTextPage({super.key}); final TextEditingController _nameController = TextEditingController(); final TextEditingController _contentController = TextEditingController(); diff --git a/packages/file_selector/file_selector_linux/example/pubspec.yaml b/packages/file_selector/file_selector_linux/example/pubspec.yaml index f90d1c88ef97..b3bfbbaeb20e 100644 --- a/packages/file_selector/file_selector_linux/example/pubspec.yaml +++ b/packages/file_selector/file_selector_linux/example/pubspec.yaml @@ -4,7 +4,7 @@ publish_to: 'none' version: 1.0.0+1 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/file_selector/file_selector_linux/pubspec.yaml b/packages/file_selector/file_selector_linux/pubspec.yaml index fe63e84f7122..70ff3bcec80e 100644 --- a/packages/file_selector/file_selector_linux/pubspec.yaml +++ b/packages/file_selector/file_selector_linux/pubspec.yaml @@ -5,7 +5,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 0.9.1+1 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" flutter: diff --git a/packages/file_selector/file_selector_macos/CHANGELOG.md b/packages/file_selector/file_selector_macos/CHANGELOG.md index aa8ee735dbee..5597f6123948 100644 --- a/packages/file_selector/file_selector_macos/CHANGELOG.md +++ b/packages/file_selector/file_selector_macos/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 0.9.0+5 * Updates links for the merge of flutter/plugins into flutter/packages. diff --git a/packages/file_selector/file_selector_macos/example/lib/get_directory_page.dart b/packages/file_selector/file_selector_macos/example/lib/get_directory_page.dart index a3f6f6ab8798..7739f6731880 100644 --- a/packages/file_selector/file_selector_macos/example/lib/get_directory_page.dart +++ b/packages/file_selector/file_selector_macos/example/lib/get_directory_page.dart @@ -9,7 +9,7 @@ import 'package:flutter/material.dart'; /// then displays the selected directory in a dialog. class GetDirectoryPage extends StatelessWidget { /// Default Constructor - const GetDirectoryPage({Key? key}) : super(key: key); + const GetDirectoryPage({super.key}); Future _getDirectoryPath(BuildContext context) async { const String confirmButtonText = 'Choose'; @@ -60,7 +60,7 @@ class GetDirectoryPage extends StatelessWidget { /// Widget that displays a text file in a dialog. class TextDisplay extends StatelessWidget { /// Creates a `TextDisplay`. - const TextDisplay(this.directoryPath, {Key? key}) : super(key: key); + const TextDisplay(this.directoryPath, {super.key}); /// The path selected in the dialog. final String directoryPath; diff --git a/packages/file_selector/file_selector_macos/example/lib/home_page.dart b/packages/file_selector/file_selector_macos/example/lib/home_page.dart index a4b2ae1f63ea..366ff5144245 100644 --- a/packages/file_selector/file_selector_macos/example/lib/home_page.dart +++ b/packages/file_selector/file_selector_macos/example/lib/home_page.dart @@ -7,7 +7,7 @@ import 'package:flutter/material.dart'; /// Home Page of the application. class HomePage extends StatelessWidget { /// Default Constructor - const HomePage({Key? key}) : super(key: key); + const HomePage({super.key}); @override Widget build(BuildContext context) { diff --git a/packages/file_selector/file_selector_macos/example/lib/main.dart b/packages/file_selector/file_selector_macos/example/lib/main.dart index 3e447104ef9f..bfd2c2fdbfc1 100644 --- a/packages/file_selector/file_selector_macos/example/lib/main.dart +++ b/packages/file_selector/file_selector_macos/example/lib/main.dart @@ -18,7 +18,7 @@ void main() { /// MyApp is the Main Application. class MyApp extends StatelessWidget { /// Default Constructor - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override Widget build(BuildContext context) { diff --git a/packages/file_selector/file_selector_macos/example/lib/open_image_page.dart b/packages/file_selector/file_selector_macos/example/lib/open_image_page.dart index 9252d25f113c..7b3da083fccb 100644 --- a/packages/file_selector/file_selector_macos/example/lib/open_image_page.dart +++ b/packages/file_selector/file_selector_macos/example/lib/open_image_page.dart @@ -12,7 +12,7 @@ import 'package:flutter/material.dart'; /// `openFiles`, then displays the selected images in a gallery dialog. class OpenImagePage extends StatelessWidget { /// Default Constructor - const OpenImagePage({Key? key}) : super(key: key); + const OpenImagePage({super.key}); Future _openImageFile(BuildContext context) async { const XTypeGroup typeGroup = XTypeGroup( @@ -67,8 +67,7 @@ class OpenImagePage extends StatelessWidget { /// Widget that displays an image in a dialog. class ImageDisplay extends StatelessWidget { /// Default Constructor. - const ImageDisplay(this.fileName, this.filePath, {Key? key}) - : super(key: key); + const ImageDisplay(this.fileName, this.filePath, {super.key}); /// The name of the selected file. final String fileName; diff --git a/packages/file_selector/file_selector_macos/example/lib/open_multiple_images_page.dart b/packages/file_selector/file_selector_macos/example/lib/open_multiple_images_page.dart index 787717cdea13..693ace927506 100644 --- a/packages/file_selector/file_selector_macos/example/lib/open_multiple_images_page.dart +++ b/packages/file_selector/file_selector_macos/example/lib/open_multiple_images_page.dart @@ -12,7 +12,7 @@ import 'package:flutter/material.dart'; /// `openFiles`, then displays the selected images in a gallery dialog. class OpenMultipleImagesPage extends StatelessWidget { /// Default Constructor - const OpenMultipleImagesPage({Key? key}) : super(key: key); + const OpenMultipleImagesPage({super.key}); Future _openImageFile(BuildContext context) async { const XTypeGroup jpgsTypeGroup = XTypeGroup( @@ -71,7 +71,7 @@ class OpenMultipleImagesPage extends StatelessWidget { /// Widget that displays a text file in a dialog. class MultipleImagesDisplay extends StatelessWidget { /// Default Constructor. - const MultipleImagesDisplay(this.files, {Key? key}) : super(key: key); + const MultipleImagesDisplay(this.files, {super.key}); /// The files containing the images. final List files; diff --git a/packages/file_selector/file_selector_macos/example/lib/open_text_page.dart b/packages/file_selector/file_selector_macos/example/lib/open_text_page.dart index 97812f2b3505..dd8b7c762abf 100644 --- a/packages/file_selector/file_selector_macos/example/lib/open_text_page.dart +++ b/packages/file_selector/file_selector_macos/example/lib/open_text_page.dart @@ -9,7 +9,7 @@ import 'package:flutter/material.dart'; /// displays its contents in a dialog. class OpenTextPage extends StatelessWidget { /// Default Constructor - const OpenTextPage({Key? key}) : super(key: key); + const OpenTextPage({super.key}); Future _openTextFile(BuildContext context) async { const XTypeGroup typeGroup = XTypeGroup( @@ -64,8 +64,7 @@ class OpenTextPage extends StatelessWidget { /// Widget that displays a text file in a dialog. class TextDisplay extends StatelessWidget { /// Default Constructor. - const TextDisplay(this.fileName, this.fileContent, {Key? key}) - : super(key: key); + const TextDisplay(this.fileName, this.fileContent, {super.key}); /// The name of the selected file. final String fileName; diff --git a/packages/file_selector/file_selector_macos/example/lib/save_text_page.dart b/packages/file_selector/file_selector_macos/example/lib/save_text_page.dart index f80aeadbed09..79d9c83c8315 100644 --- a/packages/file_selector/file_selector_macos/example/lib/save_text_page.dart +++ b/packages/file_selector/file_selector_macos/example/lib/save_text_page.dart @@ -10,7 +10,7 @@ import 'package:flutter/material.dart'; /// then writes text to a file at that location. class SaveTextPage extends StatelessWidget { /// Default Constructor - SaveTextPage({Key? key}) : super(key: key); + SaveTextPage({super.key}); final TextEditingController _nameController = TextEditingController(); final TextEditingController _contentController = TextEditingController(); diff --git a/packages/file_selector/file_selector_macos/example/pubspec.yaml b/packages/file_selector/file_selector_macos/example/pubspec.yaml index a2122b2858b7..c5d48ddc2380 100644 --- a/packages/file_selector/file_selector_macos/example/pubspec.yaml +++ b/packages/file_selector/file_selector_macos/example/pubspec.yaml @@ -4,7 +4,7 @@ publish_to: 'none' version: 1.0.0 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/file_selector/file_selector_macos/pubspec.yaml b/packages/file_selector/file_selector_macos/pubspec.yaml index d290dc1173ca..494c0ebd5d36 100644 --- a/packages/file_selector/file_selector_macos/pubspec.yaml +++ b/packages/file_selector/file_selector_macos/pubspec.yaml @@ -5,7 +5,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 0.9.0+5 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" flutter: diff --git a/packages/file_selector/file_selector_platform_interface/CHANGELOG.md b/packages/file_selector/file_selector_platform_interface/CHANGELOG.md index f5ccca4d82c8..b66fa72df03d 100644 --- a/packages/file_selector/file_selector_platform_interface/CHANGELOG.md +++ b/packages/file_selector/file_selector_platform_interface/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 2.4.1 * Updates links for the merge of flutter/plugins into flutter/packages. diff --git a/packages/file_selector/file_selector_platform_interface/pubspec.yaml b/packages/file_selector/file_selector_platform_interface/pubspec.yaml index 37fb504cf99f..e9ab2180fbc0 100644 --- a/packages/file_selector/file_selector_platform_interface/pubspec.yaml +++ b/packages/file_selector/file_selector_platform_interface/pubspec.yaml @@ -7,7 +7,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 2.4.1 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/file_selector/file_selector_web/CHANGELOG.md b/packages/file_selector/file_selector_web/CHANGELOG.md index ff9b17727c4f..81f5f45581b3 100644 --- a/packages/file_selector/file_selector_web/CHANGELOG.md +++ b/packages/file_selector/file_selector_web/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 0.9.0+3 * Updates links for the merge of flutter/plugins into flutter/packages. diff --git a/packages/file_selector/file_selector_web/example/lib/main.dart b/packages/file_selector/file_selector_web/example/lib/main.dart index 87422953de6a..b5cc8b7102d8 100644 --- a/packages/file_selector/file_selector_web/example/lib/main.dart +++ b/packages/file_selector/file_selector_web/example/lib/main.dart @@ -11,7 +11,7 @@ void main() { /// App for testing class MyApp extends StatefulWidget { /// Default Constructor - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override State createState() => _MyAppState(); diff --git a/packages/file_selector/file_selector_web/example/pubspec.yaml b/packages/file_selector/file_selector_web/example/pubspec.yaml index 985ce35f69a8..4e120d8f5a0e 100644 --- a/packages/file_selector/file_selector_web/example/pubspec.yaml +++ b/packages/file_selector/file_selector_web/example/pubspec.yaml @@ -2,7 +2,7 @@ name: file_selector_web_integration_tests publish_to: none environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/file_selector/file_selector_web/pubspec.yaml b/packages/file_selector/file_selector_web/pubspec.yaml index 9629f476094e..838c4a8cadac 100644 --- a/packages/file_selector/file_selector_web/pubspec.yaml +++ b/packages/file_selector/file_selector_web/pubspec.yaml @@ -5,7 +5,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 0.9.0+3 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" flutter: diff --git a/packages/file_selector/file_selector_windows/CHANGELOG.md b/packages/file_selector/file_selector_windows/CHANGELOG.md index 55a260aadf37..741b6f6b9e83 100644 --- a/packages/file_selector/file_selector_windows/CHANGELOG.md +++ b/packages/file_selector/file_selector_windows/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 0.9.1+5 * Updates links for the merge of flutter/plugins into flutter/packages. diff --git a/packages/file_selector/file_selector_windows/example/lib/get_directory_page.dart b/packages/file_selector/file_selector_windows/example/lib/get_directory_page.dart index f6390ccef20d..2fa862bb49b6 100644 --- a/packages/file_selector/file_selector_windows/example/lib/get_directory_page.dart +++ b/packages/file_selector/file_selector_windows/example/lib/get_directory_page.dart @@ -9,7 +9,7 @@ import 'package:flutter/material.dart'; /// then displays the selected directory in a dialog. class GetDirectoryPage extends StatelessWidget { /// Default Constructor - const GetDirectoryPage({Key? key}) : super(key: key); + const GetDirectoryPage({super.key}); Future _getDirectoryPath(BuildContext context) async { const String confirmButtonText = 'Choose'; @@ -60,7 +60,7 @@ class GetDirectoryPage extends StatelessWidget { /// Widget that displays a text file in a dialog. class TextDisplay extends StatelessWidget { /// Creates a `TextDisplay`. - const TextDisplay(this.directoryPath, {Key? key}) : super(key: key); + const TextDisplay(this.directoryPath, {super.key}); /// The path selected in the dialog. final String directoryPath; diff --git a/packages/file_selector/file_selector_windows/example/lib/home_page.dart b/packages/file_selector/file_selector_windows/example/lib/home_page.dart index a4b2ae1f63ea..366ff5144245 100644 --- a/packages/file_selector/file_selector_windows/example/lib/home_page.dart +++ b/packages/file_selector/file_selector_windows/example/lib/home_page.dart @@ -7,7 +7,7 @@ import 'package:flutter/material.dart'; /// Home Page of the application. class HomePage extends StatelessWidget { /// Default Constructor - const HomePage({Key? key}) : super(key: key); + const HomePage({super.key}); @override Widget build(BuildContext context) { diff --git a/packages/file_selector/file_selector_windows/example/lib/main.dart b/packages/file_selector/file_selector_windows/example/lib/main.dart index 3e447104ef9f..bfd2c2fdbfc1 100644 --- a/packages/file_selector/file_selector_windows/example/lib/main.dart +++ b/packages/file_selector/file_selector_windows/example/lib/main.dart @@ -18,7 +18,7 @@ void main() { /// MyApp is the Main Application. class MyApp extends StatelessWidget { /// Default Constructor - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override Widget build(BuildContext context) { diff --git a/packages/file_selector/file_selector_windows/example/lib/open_image_page.dart b/packages/file_selector/file_selector_windows/example/lib/open_image_page.dart index 9252d25f113c..7b3da083fccb 100644 --- a/packages/file_selector/file_selector_windows/example/lib/open_image_page.dart +++ b/packages/file_selector/file_selector_windows/example/lib/open_image_page.dart @@ -12,7 +12,7 @@ import 'package:flutter/material.dart'; /// `openFiles`, then displays the selected images in a gallery dialog. class OpenImagePage extends StatelessWidget { /// Default Constructor - const OpenImagePage({Key? key}) : super(key: key); + const OpenImagePage({super.key}); Future _openImageFile(BuildContext context) async { const XTypeGroup typeGroup = XTypeGroup( @@ -67,8 +67,7 @@ class OpenImagePage extends StatelessWidget { /// Widget that displays an image in a dialog. class ImageDisplay extends StatelessWidget { /// Default Constructor. - const ImageDisplay(this.fileName, this.filePath, {Key? key}) - : super(key: key); + const ImageDisplay(this.fileName, this.filePath, {super.key}); /// The name of the selected file. final String fileName; diff --git a/packages/file_selector/file_selector_windows/example/lib/open_multiple_images_page.dart b/packages/file_selector/file_selector_windows/example/lib/open_multiple_images_page.dart index 787717cdea13..693ace927506 100644 --- a/packages/file_selector/file_selector_windows/example/lib/open_multiple_images_page.dart +++ b/packages/file_selector/file_selector_windows/example/lib/open_multiple_images_page.dart @@ -12,7 +12,7 @@ import 'package:flutter/material.dart'; /// `openFiles`, then displays the selected images in a gallery dialog. class OpenMultipleImagesPage extends StatelessWidget { /// Default Constructor - const OpenMultipleImagesPage({Key? key}) : super(key: key); + const OpenMultipleImagesPage({super.key}); Future _openImageFile(BuildContext context) async { const XTypeGroup jpgsTypeGroup = XTypeGroup( @@ -71,7 +71,7 @@ class OpenMultipleImagesPage extends StatelessWidget { /// Widget that displays a text file in a dialog. class MultipleImagesDisplay extends StatelessWidget { /// Default Constructor. - const MultipleImagesDisplay(this.files, {Key? key}) : super(key: key); + const MultipleImagesDisplay(this.files, {super.key}); /// The files containing the images. final List files; diff --git a/packages/file_selector/file_selector_windows/example/lib/open_text_page.dart b/packages/file_selector/file_selector_windows/example/lib/open_text_page.dart index 97812f2b3505..dd8b7c762abf 100644 --- a/packages/file_selector/file_selector_windows/example/lib/open_text_page.dart +++ b/packages/file_selector/file_selector_windows/example/lib/open_text_page.dart @@ -9,7 +9,7 @@ import 'package:flutter/material.dart'; /// displays its contents in a dialog. class OpenTextPage extends StatelessWidget { /// Default Constructor - const OpenTextPage({Key? key}) : super(key: key); + const OpenTextPage({super.key}); Future _openTextFile(BuildContext context) async { const XTypeGroup typeGroup = XTypeGroup( @@ -64,8 +64,7 @@ class OpenTextPage extends StatelessWidget { /// Widget that displays a text file in a dialog. class TextDisplay extends StatelessWidget { /// Default Constructor. - const TextDisplay(this.fileName, this.fileContent, {Key? key}) - : super(key: key); + const TextDisplay(this.fileName, this.fileContent, {super.key}); /// The name of the selected file. final String fileName; diff --git a/packages/file_selector/file_selector_windows/example/lib/save_text_page.dart b/packages/file_selector/file_selector_windows/example/lib/save_text_page.dart index aca041f474c7..174c490c5fc7 100644 --- a/packages/file_selector/file_selector_windows/example/lib/save_text_page.dart +++ b/packages/file_selector/file_selector_windows/example/lib/save_text_page.dart @@ -10,7 +10,7 @@ import 'package:flutter/material.dart'; /// then writes text to a file at that location. class SaveTextPage extends StatelessWidget { /// Default Constructor - SaveTextPage({Key? key}) : super(key: key); + SaveTextPage({super.key}); final TextEditingController _nameController = TextEditingController(); final TextEditingController _contentController = TextEditingController(); diff --git a/packages/file_selector/file_selector_windows/example/pubspec.yaml b/packages/file_selector/file_selector_windows/example/pubspec.yaml index d270c3067325..5c48de546661 100644 --- a/packages/file_selector/file_selector_windows/example/pubspec.yaml +++ b/packages/file_selector/file_selector_windows/example/pubspec.yaml @@ -4,7 +4,7 @@ publish_to: 'none' version: 1.0.0 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/file_selector/file_selector_windows/pubspec.yaml b/packages/file_selector/file_selector_windows/pubspec.yaml index 4ec93065b0a3..a957c157ffd6 100644 --- a/packages/file_selector/file_selector_windows/pubspec.yaml +++ b/packages/file_selector/file_selector_windows/pubspec.yaml @@ -5,7 +5,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 0.9.1+5 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" flutter: diff --git a/packages/flutter_adaptive_scaffold/CHANGELOG.md b/packages/flutter_adaptive_scaffold/CHANGELOG.md index 65d360cc07ee..cfa2ef5ba9a1 100644 --- a/packages/flutter_adaptive_scaffold/CHANGELOG.md +++ b/packages/flutter_adaptive_scaffold/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 0.1.0 * Change the `selectedIndex` parameter on `standardNavigationRail` to allow null values to indicate "no destination". diff --git a/packages/flutter_adaptive_scaffold/example/pubspec.yaml b/packages/flutter_adaptive_scaffold/example/pubspec.yaml index cc27a3adabcc..d52a89baa32e 100644 --- a/packages/flutter_adaptive_scaffold/example/pubspec.yaml +++ b/packages/flutter_adaptive_scaffold/example/pubspec.yaml @@ -5,7 +5,7 @@ version: 0.0.1 environment: sdk: ">=2.18.0 <3.0.0" - flutter: ">=3.0.0" + flutter: ">=3.3.0" dependencies: flutter: @@ -28,4 +28,4 @@ flutter: - images/strawberry.png - images/plum.png - images/mushroom.png - - images/avocado.png \ No newline at end of file + - images/avocado.png diff --git a/packages/flutter_adaptive_scaffold/pubspec.yaml b/packages/flutter_adaptive_scaffold/pubspec.yaml index e3fcb67d3e1b..b67fd5ee6d04 100644 --- a/packages/flutter_adaptive_scaffold/pubspec.yaml +++ b/packages/flutter_adaptive_scaffold/pubspec.yaml @@ -6,7 +6,7 @@ repository: https://github.com/flutter/packages/tree/main/packages/flutter_adapt environment: sdk: '>=2.18.0 <3.0.0' - flutter: ">=3.0.0" + flutter: ">=3.3.0" dependencies: flutter: diff --git a/packages/flutter_image/CHANGELOG.md b/packages/flutter_image/CHANGELOG.md index 1a2b63eb0f9c..8db895a71bd3 100644 --- a/packages/flutter_image/CHANGELOG.md +++ b/packages/flutter_image/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 4.1.5 * Removes use of `runtimeType.toString()`. diff --git a/packages/flutter_image/pubspec.yaml b/packages/flutter_image/pubspec.yaml index 340d655f3c18..f2057f687fc0 100644 --- a/packages/flutter_image/pubspec.yaml +++ b/packages/flutter_image/pubspec.yaml @@ -6,7 +6,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 4.1.5 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/flutter_markdown/CHANGELOG.md b/packages/flutter_markdown/CHANGELOG.md index 29e9a363d8c3..1ec37e27fcf5 100644 --- a/packages/flutter_markdown/CHANGELOG.md +++ b/packages/flutter_markdown/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 0.6.14 * Require `markdown: ^7.0.0` diff --git a/packages/flutter_markdown/example/lib/demos/basic_markdown_demo.dart b/packages/flutter_markdown/example/lib/demos/basic_markdown_demo.dart index 49fce54c854a..8c25984bed93 100644 --- a/packages/flutter_markdown/example/lib/demos/basic_markdown_demo.dart +++ b/packages/flutter_markdown/example/lib/demos/basic_markdown_demo.dart @@ -46,7 +46,7 @@ for the formatted Markdown view in the demo. // TODO(goderbauer): Restructure the examples to avoid this ignore, https://github.com/flutter/flutter/issues/110208. // ignore: avoid_implementing_value_types class BasicMarkdownDemo extends StatefulWidget implements MarkdownDemoWidget { - const BasicMarkdownDemo({Key? key}) : super(key: key); + const BasicMarkdownDemo({super.key}); static const String _title = 'Basic Markdown Demo'; diff --git a/packages/flutter_markdown/example/lib/demos/centered_header_demo.dart b/packages/flutter_markdown/example/lib/demos/centered_header_demo.dart index 3b344c4f64cf..ea591d76fc64 100644 --- a/packages/flutter_markdown/example/lib/demos/centered_header_demo.dart +++ b/packages/flutter_markdown/example/lib/demos/centered_header_demo.dart @@ -28,7 +28,7 @@ This example demonstrates how to implement a centered headline using a custom bu // TODO(goderbauer): Restructure the examples to avoid this ignore, https://github.com/flutter/flutter/issues/110208. // ignore: avoid_implementing_value_types class CenteredHeaderDemo extends StatelessWidget implements MarkdownDemoWidget { - const CenteredHeaderDemo({Key? key}) : super(key: key); + const CenteredHeaderDemo({super.key}); static const String _title = 'Centered Header Demo'; diff --git a/packages/flutter_markdown/example/lib/demos/extended_emoji_demo.dart b/packages/flutter_markdown/example/lib/demos/extended_emoji_demo.dart index 4b55c58c5c15..ee09932aedcc 100644 --- a/packages/flutter_markdown/example/lib/demos/extended_emoji_demo.dart +++ b/packages/flutter_markdown/example/lib/demos/extended_emoji_demo.dart @@ -49,7 +49,7 @@ class ExtendedEmojiSyntax extends md.EmojiSyntax { // TODO(goderbauer): Restructure the examples to avoid this ignore, https://github.com/flutter/flutter/issues/110208. // ignore: avoid_implementing_value_types class ExtendedEmojiDemo extends StatelessWidget implements MarkdownDemoWidget { - const ExtendedEmojiDemo({Key? key}) : super(key: key); + const ExtendedEmojiDemo({super.key}); static const String _title = 'Extended Emoji Demo'; diff --git a/packages/flutter_markdown/example/lib/demos/markdown_body_shrink_wrap_demo.dart b/packages/flutter_markdown/example/lib/demos/markdown_body_shrink_wrap_demo.dart index a058da2c11cc..f48d6106cb33 100644 --- a/packages/flutter_markdown/example/lib/demos/markdown_body_shrink_wrap_demo.dart +++ b/packages/flutter_markdown/example/lib/demos/markdown_body_shrink_wrap_demo.dart @@ -32,7 +32,7 @@ This example demonstrates how `MarkdownBody`'s `shrinkWrap` property works. class MarkdownBodyShrinkWrapDemo extends StatefulWidget implements MarkdownDemoWidget { - const MarkdownBodyShrinkWrapDemo({Key? key}) : super(key: key); + const MarkdownBodyShrinkWrapDemo({super.key}); static const String _title = 'Shrink wrap demo'; diff --git a/packages/flutter_markdown/example/lib/demos/minimal_markdown_demo.dart b/packages/flutter_markdown/example/lib/demos/minimal_markdown_demo.dart index cd97424fd0d3..de18dc7845c0 100644 --- a/packages/flutter_markdown/example/lib/demos/minimal_markdown_demo.dart +++ b/packages/flutter_markdown/example/lib/demos/minimal_markdown_demo.dart @@ -93,7 +93,7 @@ void main() { class MinimalMarkdownDemo extends StatelessWidget implements MarkdownDemoWidget { - const MinimalMarkdownDemo({Key? key}) : super(key: key); + const MinimalMarkdownDemo({super.key}); static const String _title = 'Minimal Markdown Demo'; diff --git a/packages/flutter_markdown/example/lib/demos/original_demo.dart b/packages/flutter_markdown/example/lib/demos/original_demo.dart index e623b97890b9..8114ffffcbe8 100644 --- a/packages/flutter_markdown/example/lib/demos/original_demo.dart +++ b/packages/flutter_markdown/example/lib/demos/original_demo.dart @@ -146,7 +146,7 @@ This demo example is being preserved for reference purposes. class OriginalMarkdownDemo extends StatelessWidget implements MarkdownDemoWidget { - OriginalMarkdownDemo({Key? key}) : super(key: key); + OriginalMarkdownDemo({super.key}); static const String _title = 'Original Markdown Demo'; diff --git a/packages/flutter_markdown/example/lib/demos/subscript_syntax_demo.dart b/packages/flutter_markdown/example/lib/demos/subscript_syntax_demo.dart index 5a6e539a7a38..ba7190348505 100644 --- a/packages/flutter_markdown/example/lib/demos/subscript_syntax_demo.dart +++ b/packages/flutter_markdown/example/lib/demos/subscript_syntax_demo.dart @@ -93,7 +93,7 @@ class SubscriptBuilder extends MarkdownElementBuilder { /// accompanying Markdown element builder object to handle subscript tags. class SubscriptSyntaxDemo extends StatelessWidget implements MarkdownDemoWidget { - const SubscriptSyntaxDemo({Key? key}) : super(key: key); + const SubscriptSyntaxDemo({super.key}); static const String _title = 'Subscript Syntax Demo'; diff --git a/packages/flutter_markdown/example/lib/demos/wrap_alignment_demo.dart b/packages/flutter_markdown/example/lib/demos/wrap_alignment_demo.dart index b86f8257b83f..510e29b18279 100644 --- a/packages/flutter_markdown/example/lib/demos/wrap_alignment_demo.dart +++ b/packages/flutter_markdown/example/lib/demos/wrap_alignment_demo.dart @@ -31,7 +31,7 @@ spacing parameter sets the height of the **SizedBox**. // TODO(goderbauer): Restructure the examples to avoid this ignore, https://github.com/flutter/flutter/issues/110208. // ignore: avoid_implementing_value_types class WrapAlignmentDemo extends StatefulWidget implements MarkdownDemoWidget { - const WrapAlignmentDemo({Key? key}) : super(key: key); + const WrapAlignmentDemo({super.key}); static const String _title = 'Wrap Alignment Demo'; diff --git a/packages/flutter_markdown/example/lib/screens/demo_card.dart b/packages/flutter_markdown/example/lib/screens/demo_card.dart index 284226efde97..8d89cf38f1fa 100644 --- a/packages/flutter_markdown/example/lib/screens/demo_card.dart +++ b/packages/flutter_markdown/example/lib/screens/demo_card.dart @@ -9,7 +9,7 @@ import '../shared/markdown_demo_widget.dart'; // ignore_for_file: public_member_api_docs class DemoCard extends StatelessWidget { - const DemoCard({Key? key, required this.widget}) : super(key: key); + const DemoCard({super.key, required this.widget}); final MarkdownDemoWidget widget; diff --git a/packages/flutter_markdown/example/lib/screens/demo_screen.dart b/packages/flutter_markdown/example/lib/screens/demo_screen.dart index 041d2d84c4fe..1acd8c16ae29 100644 --- a/packages/flutter_markdown/example/lib/screens/demo_screen.dart +++ b/packages/flutter_markdown/example/lib/screens/demo_screen.dart @@ -11,7 +11,7 @@ import '../shared/markdown_extensions.dart'; // ignore_for_file: public_member_api_docs class DemoScreen extends StatelessWidget { - const DemoScreen({Key? key, required this.child}) : super(key: key); + const DemoScreen({super.key, required this.child}); static const String routeName = '/demoScreen'; @@ -47,7 +47,7 @@ class DemoScreen extends StatelessWidget { } class DemoFormattedView extends StatelessWidget { - const DemoFormattedView({Key? key, required this.child}) : super(key: key); + const DemoFormattedView({super.key, required this.child}); final Widget? child; @@ -64,7 +64,7 @@ class DemoFormattedView extends StatelessWidget { } class DemoRawDataView extends StatelessWidget { - const DemoRawDataView({Key? key, required this.data}) : super(key: key); + const DemoRawDataView({super.key, required this.data}); final Future data; @@ -96,7 +96,7 @@ class DemoRawDataView extends StatelessWidget { } class DemoNotesView extends StatelessWidget { - const DemoNotesView({Key? key, required this.notes}) : super(key: key); + const DemoNotesView({super.key, required this.notes}); final Future notes; diff --git a/packages/flutter_markdown/example/lib/screens/home_screen.dart b/packages/flutter_markdown/example/lib/screens/home_screen.dart index df17ab0de964..6b15a642d84d 100644 --- a/packages/flutter_markdown/example/lib/screens/home_screen.dart +++ b/packages/flutter_markdown/example/lib/screens/home_screen.dart @@ -17,7 +17,7 @@ import '../shared/markdown_demo_widget.dart'; // ignore_for_file: public_member_api_docs class HomeScreen extends StatelessWidget { - HomeScreen({Key? key}) : super(key: key); + HomeScreen({super.key}); static const String routeName = '/homeScreen'; diff --git a/packages/flutter_markdown/example/lib/shared/dropdown_menu.dart b/packages/flutter_markdown/example/lib/shared/dropdown_menu.dart index 48388efd1d0e..4a29e4e604c7 100644 --- a/packages/flutter_markdown/example/lib/shared/dropdown_menu.dart +++ b/packages/flutter_markdown/example/lib/shared/dropdown_menu.dart @@ -8,7 +8,7 @@ import 'package:flutter/material.dart'; class DropdownMenu extends StatelessWidget { DropdownMenu({ - Key? key, + super.key, required this.items, required this.initialValue, required this.label, @@ -24,8 +24,7 @@ class DropdownMenu extends StatelessWidget { padding = padding ?? const EdgeInsets.symmetric(horizontal: 12, vertical: 8), menuItemBackground = menuItemBackground ?? Colors.white, - menuItemMargin = menuItemMargin ?? const EdgeInsets.only(left: 4), - super(key: key); + menuItemMargin = menuItemMargin ?? const EdgeInsets.only(left: 4); final Map items; diff --git a/packages/flutter_markdown/example/lib/shared/markdown_demo_widget.dart b/packages/flutter_markdown/example/lib/shared/markdown_demo_widget.dart index e8fed4fcc7a9..f843a15be186 100644 --- a/packages/flutter_markdown/example/lib/shared/markdown_demo_widget.dart +++ b/packages/flutter_markdown/example/lib/shared/markdown_demo_widget.dart @@ -7,7 +7,7 @@ import 'package:flutter/widgets.dart'; // ignore_for_file: public_member_api_docs abstract class MarkdownDemoWidget extends Widget { - const MarkdownDemoWidget({Key? key}) : super(key: key); + const MarkdownDemoWidget({super.key}); // The title property should be a short name to uniquely identify the example // demo. The title will be displayed at the top of the card in the home screen diff --git a/packages/flutter_markdown/example/pubspec.yaml b/packages/flutter_markdown/example/pubspec.yaml index 32450137a31b..3d554e6732f0 100644 --- a/packages/flutter_markdown/example/pubspec.yaml +++ b/packages/flutter_markdown/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Demonstrates how to use the flutter_markdown package. publish_to: none environment: - sdk: '>=2.12.0 <3.0.0' + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/flutter_markdown/lib/src/widget.dart b/packages/flutter_markdown/lib/src/widget.dart index bfdce3139d1e..690f5b89572a 100644 --- a/packages/flutter_markdown/lib/src/widget.dart +++ b/packages/flutter_markdown/lib/src/widget.dart @@ -147,7 +147,7 @@ abstract class MarkdownWidget extends StatefulWidget { /// /// The [data] argument must not be null. const MarkdownWidget({ - Key? key, + super.key, required this.data, this.selectable = false, this.styleSheet, @@ -168,7 +168,7 @@ abstract class MarkdownWidget extends StatefulWidget { this.listItemCrossAxisAlignment = MarkdownListItemCrossAxisAlignment.baseline, this.softLineBreak = false, - }) : super(key: key); + }); /// The Markdown to display. final String data; @@ -389,52 +389,31 @@ class _MarkdownWidgetState extends State class MarkdownBody extends MarkdownWidget { /// Creates a non-scrolling widget that parses and displays Markdown. const MarkdownBody({ - Key? key, - required String data, - bool selectable = false, - MarkdownStyleSheet? styleSheet, - MarkdownStyleSheetBaseTheme? styleSheetTheme, - SyntaxHighlighter? syntaxHighlighter, - MarkdownTapLinkCallback? onTapLink, - VoidCallback? onTapText, - String? imageDirectory, - List? blockSyntaxes, - List? inlineSyntaxes, - md.ExtensionSet? extensionSet, - MarkdownImageBuilder? imageBuilder, - MarkdownCheckboxBuilder? checkboxBuilder, - MarkdownBulletBuilder? bulletBuilder, - Map builders = - const {}, - Map paddingBuilders = - const {}, - MarkdownListItemCrossAxisAlignment listItemCrossAxisAlignment = - MarkdownListItemCrossAxisAlignment.baseline, + super.key, + required super.data, + super.selectable, + super.styleSheet, + // TODO(stuartmorgan): Remove this once 3.0 is no longer part of the + // legacy analysis matrix; it's a false positive there. + // ignore: avoid_init_to_null + super.styleSheetTheme = null, + super.syntaxHighlighter, + super.onTapLink, + super.onTapText, + super.imageDirectory, + super.blockSyntaxes, + super.inlineSyntaxes, + super.extensionSet, + super.imageBuilder, + super.checkboxBuilder, + super.bulletBuilder, + super.builders, + super.paddingBuilders, + super.listItemCrossAxisAlignment, this.shrinkWrap = true, - bool fitContent = true, - bool softLineBreak = false, - }) : super( - key: key, - data: data, - selectable: selectable, - styleSheet: styleSheet, - styleSheetTheme: styleSheetTheme, - syntaxHighlighter: syntaxHighlighter, - onTapLink: onTapLink, - onTapText: onTapText, - imageDirectory: imageDirectory, - blockSyntaxes: blockSyntaxes, - inlineSyntaxes: inlineSyntaxes, - extensionSet: extensionSet, - imageBuilder: imageBuilder, - checkboxBuilder: checkboxBuilder, - builders: builders, - paddingBuilders: paddingBuilders, - listItemCrossAxisAlignment: listItemCrossAxisAlignment, - bulletBuilder: bulletBuilder, - fitContent: fitContent, - softLineBreak: softLineBreak, - ); + super.fitContent = true, + super.softLineBreak, + }); /// If [shrinkWrap] is `true`, [MarkdownBody] will take the minimum height /// that wraps its content. Otherwise, [MarkdownBody] will expand to the @@ -467,53 +446,33 @@ class MarkdownBody extends MarkdownWidget { class Markdown extends MarkdownWidget { /// Creates a scrolling widget that parses and displays Markdown. const Markdown({ - Key? key, - required String data, - bool selectable = false, - MarkdownStyleSheet? styleSheet, - MarkdownStyleSheetBaseTheme? styleSheetTheme, - SyntaxHighlighter? syntaxHighlighter, - MarkdownTapLinkCallback? onTapLink, - VoidCallback? onTapText, - String? imageDirectory, - List? blockSyntaxes, - List? inlineSyntaxes, - md.ExtensionSet? extensionSet, - MarkdownImageBuilder? imageBuilder, - MarkdownCheckboxBuilder? checkboxBuilder, - MarkdownBulletBuilder? bulletBuilder, - Map builders = - const {}, - Map paddingBuilders = - const {}, - MarkdownListItemCrossAxisAlignment listItemCrossAxisAlignment = - MarkdownListItemCrossAxisAlignment.baseline, + super.key, + required super.data, + super.selectable, + super.styleSheet, + // TODO(stuartmorgan): Remove this once 3.0 is no longer part of the + // legacy analysis matrix; it's a false positive there. + // ignore: avoid_init_to_null + super.styleSheetTheme = null, + super.syntaxHighlighter, + super.onTapLink, + super.onTapText, + super.imageDirectory, + super.blockSyntaxes, + super.inlineSyntaxes, + super.extensionSet, + super.imageBuilder, + super.checkboxBuilder, + super.bulletBuilder, + super.builders, + super.paddingBuilders, + super.listItemCrossAxisAlignment, this.padding = const EdgeInsets.all(16.0), this.controller, this.physics, this.shrinkWrap = false, - bool softLineBreak = false, - }) : super( - key: key, - data: data, - selectable: selectable, - styleSheet: styleSheet, - styleSheetTheme: styleSheetTheme, - syntaxHighlighter: syntaxHighlighter, - onTapLink: onTapLink, - onTapText: onTapText, - imageDirectory: imageDirectory, - blockSyntaxes: blockSyntaxes, - inlineSyntaxes: inlineSyntaxes, - extensionSet: extensionSet, - imageBuilder: imageBuilder, - checkboxBuilder: checkboxBuilder, - builders: builders, - paddingBuilders: paddingBuilders, - listItemCrossAxisAlignment: listItemCrossAxisAlignment, - bulletBuilder: bulletBuilder, - softLineBreak: softLineBreak, - ); + super.softLineBreak, + }); /// The amount of space by which to inset the children. final EdgeInsets padding; diff --git a/packages/flutter_markdown/pubspec.yaml b/packages/flutter_markdown/pubspec.yaml index e554c40a58e6..e2a1c2e0564b 100644 --- a/packages/flutter_markdown/pubspec.yaml +++ b/packages/flutter_markdown/pubspec.yaml @@ -7,7 +7,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 0.6.14 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/flutter_plugin_android_lifecycle/CHANGELOG.md b/packages/flutter_plugin_android_lifecycle/CHANGELOG.md index bb96cc5459e9..0ab8296d8e30 100644 --- a/packages/flutter_plugin_android_lifecycle/CHANGELOG.md +++ b/packages/flutter_plugin_android_lifecycle/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 2.0.9 * Updates annotation and espresso dependencies. diff --git a/packages/flutter_plugin_android_lifecycle/example/lib/main.dart b/packages/flutter_plugin_android_lifecycle/example/lib/main.dart index c465b3b687f2..0ec602550d55 100644 --- a/packages/flutter_plugin_android_lifecycle/example/lib/main.dart +++ b/packages/flutter_plugin_android_lifecycle/example/lib/main.dart @@ -9,7 +9,7 @@ void main() => runApp(const MyApp()); /// MyApp is the Main Application. class MyApp extends StatelessWidget { /// Default Constructor - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override Widget build(BuildContext context) { diff --git a/packages/flutter_plugin_android_lifecycle/example/pubspec.yaml b/packages/flutter_plugin_android_lifecycle/example/pubspec.yaml index 4c97e6c44cd1..a9511063a76e 100644 --- a/packages/flutter_plugin_android_lifecycle/example/pubspec.yaml +++ b/packages/flutter_plugin_android_lifecycle/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Demonstrates how to use the flutter_plugin_android_lifecycle plugin publish_to: none environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/flutter_plugin_android_lifecycle/pubspec.yaml b/packages/flutter_plugin_android_lifecycle/pubspec.yaml index 64622b3f93f2..e9c9fa6144d4 100644 --- a/packages/flutter_plugin_android_lifecycle/pubspec.yaml +++ b/packages/flutter_plugin_android_lifecycle/pubspec.yaml @@ -5,7 +5,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 2.0.9 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" flutter: diff --git a/packages/go_router/CHANGELOG.md b/packages/go_router/CHANGELOG.md index 31958fe101cb..170609a64829 100644 --- a/packages/go_router/CHANGELOG.md +++ b/packages/go_router/CHANGELOG.md @@ -1,5 +1,6 @@ ## NEXT +- Aligns Dart and Flutter SDK constraints. - Updates compileSdkVersion to 33. - Updates example app to iOS 11. diff --git a/packages/go_router/example/lib/async_redirection.dart b/packages/go_router/example/lib/async_redirection.dart index b7a1545996c7..d91db6ed2dd7 100644 --- a/packages/go_router/example/lib/async_redirection.dart +++ b/packages/go_router/example/lib/async_redirection.dart @@ -22,7 +22,7 @@ void main() => runApp(StreamAuthScope(child: App())); /// The main app. class App extends StatelessWidget { /// Creates an [App]. - App({Key? key}) : super(key: key); + App({super.key}); /// The title of the app. static const String title = 'GoRouter Example: Redirection'; @@ -75,7 +75,7 @@ class App extends StatelessWidget { /// The login screen. class LoginScreen extends StatefulWidget { /// Creates a [LoginScreen]. - const LoginScreen({Key? key}) : super(key: key); + const LoginScreen({super.key}); @override State createState() => _LoginScreenState(); @@ -131,7 +131,7 @@ class _LoginScreenState extends State /// The home screen. class HomeScreen extends StatelessWidget { /// Creates a [HomeScreen]. - const HomeScreen({Key? key}) : super(key: key); + const HomeScreen({super.key}); @override Widget build(BuildContext context) { @@ -159,12 +159,10 @@ class HomeScreen extends StatelessWidget { class StreamAuthScope extends InheritedNotifier { /// Creates a [StreamAuthScope] sign in scope. StreamAuthScope({ - Key? key, - required Widget child, + super.key, + required super.child, }) : super( - key: key, notifier: StreamAuthNotifier(), - child: child, ); /// Gets the [StreamAuth]. diff --git a/packages/go_router/example/lib/books/main.dart b/packages/go_router/example/lib/books/main.dart index 16068d6668a5..73cb6f35cbb4 100644 --- a/packages/go_router/example/lib/books/main.dart +++ b/packages/go_router/example/lib/books/main.dart @@ -23,7 +23,7 @@ void main() => runApp(Bookstore()); /// The book store view. class Bookstore extends StatelessWidget { /// Creates a [Bookstore]. - Bookstore({Key? key}) : super(key: key); + Bookstore({super.key}); final ValueKey _scaffoldKey = const ValueKey('App scaffold'); @@ -155,10 +155,9 @@ class Bookstore extends StatelessWidget { class FadeTransitionPage extends CustomTransitionPage { /// Creates a [FadeTransitionPage]. FadeTransitionPage({ - required LocalKey key, - required Widget child, + required LocalKey super.key, + required super.child, }) : super( - key: key, transitionsBuilder: (BuildContext context, Animation animation, Animation secondaryAnimation, @@ -166,8 +165,7 @@ class FadeTransitionPage extends CustomTransitionPage { FadeTransition( opacity: animation.drive(_curveTween), child: child, - ), - child: child); + )); static final CurveTween _curveTween = CurveTween(curve: Curves.easeIn); } diff --git a/packages/go_router/example/lib/books/src/auth.dart b/packages/go_router/example/lib/books/src/auth.dart index 2f5d8ce4e800..b9c353c15735 100644 --- a/packages/go_router/example/lib/books/src/auth.dart +++ b/packages/go_router/example/lib/books/src/auth.dart @@ -34,10 +34,10 @@ class BookstoreAuth extends ChangeNotifier { class BookstoreAuthScope extends InheritedNotifier { /// Creates a [BookstoreAuthScope]. const BookstoreAuthScope({ - required BookstoreAuth notifier, - required Widget child, - Key? key, - }) : super(key: key, notifier: notifier, child: child); + required BookstoreAuth super.notifier, + required super.child, + super.key, + }); /// Gets the [BookstoreAuth] above the context. static BookstoreAuth of(BuildContext context) => context diff --git a/packages/go_router/example/lib/books/src/screens/author_details.dart b/packages/go_router/example/lib/books/src/screens/author_details.dart index d03ae630c528..3aff898cff9f 100644 --- a/packages/go_router/example/lib/books/src/screens/author_details.dart +++ b/packages/go_router/example/lib/books/src/screens/author_details.dart @@ -13,8 +13,8 @@ class AuthorDetailsScreen extends StatelessWidget { /// Creates an author detail screen. const AuthorDetailsScreen({ required this.author, - Key? key, - }) : super(key: key); + super.key, + }); /// The author to be displayed. final Author? author; diff --git a/packages/go_router/example/lib/books/src/screens/authors.dart b/packages/go_router/example/lib/books/src/screens/authors.dart index 893a3c00bb67..0eeb1c338b43 100644 --- a/packages/go_router/example/lib/books/src/screens/authors.dart +++ b/packages/go_router/example/lib/books/src/screens/authors.dart @@ -11,7 +11,7 @@ import '../widgets/author_list.dart'; /// A screen that displays a list of authors. class AuthorsScreen extends StatelessWidget { /// Creates an [AuthorsScreen]. - const AuthorsScreen({Key? key}) : super(key: key); + const AuthorsScreen({super.key}); /// The title of the screen. static const String title = 'Authors'; diff --git a/packages/go_router/example/lib/books/src/screens/book_details.dart b/packages/go_router/example/lib/books/src/screens/book_details.dart index 0bc724e0d86f..9a51a8342ad8 100644 --- a/packages/go_router/example/lib/books/src/screens/book_details.dart +++ b/packages/go_router/example/lib/books/src/screens/book_details.dart @@ -13,9 +13,9 @@ import 'author_details.dart'; class BookDetailsScreen extends StatelessWidget { /// Creates a [BookDetailsScreen]. const BookDetailsScreen({ - Key? key, + super.key, this.book, - }) : super(key: key); + }); /// The book to be displayed. final Book? book; diff --git a/packages/go_router/example/lib/books/src/screens/books.dart b/packages/go_router/example/lib/books/src/screens/books.dart index ea8684885198..b0e7ca2872e4 100644 --- a/packages/go_router/example/lib/books/src/screens/books.dart +++ b/packages/go_router/example/lib/books/src/screens/books.dart @@ -11,7 +11,7 @@ import '../widgets/book_list.dart'; /// A screen that displays a list of books. class BooksScreen extends StatefulWidget { /// Creates a [BooksScreen]. - const BooksScreen(this.kind, {Key? key}) : super(key: key); + const BooksScreen(this.kind, {super.key}); /// Which tab to display. final String kind; diff --git a/packages/go_router/example/lib/books/src/screens/scaffold.dart b/packages/go_router/example/lib/books/src/screens/scaffold.dart index a5ff831eef32..2ffaf9a4584a 100644 --- a/packages/go_router/example/lib/books/src/screens/scaffold.dart +++ b/packages/go_router/example/lib/books/src/screens/scaffold.dart @@ -25,8 +25,8 @@ class BookstoreScaffold extends StatelessWidget { const BookstoreScaffold({ required this.selectedTab, required this.child, - Key? key, - }) : super(key: key); + super.key, + }); /// Which tab of the scaffold to display. final ScaffoldTab selectedTab; diff --git a/packages/go_router/example/lib/books/src/screens/settings.dart b/packages/go_router/example/lib/books/src/screens/settings.dart index 71bd0f8513b5..a098e3046d15 100644 --- a/packages/go_router/example/lib/books/src/screens/settings.dart +++ b/packages/go_router/example/lib/books/src/screens/settings.dart @@ -11,7 +11,7 @@ import '../auth.dart'; /// The settings screen. class SettingsScreen extends StatefulWidget { /// Creates a [SettingsScreen]. - const SettingsScreen({Key? key}) : super(key: key); + const SettingsScreen({super.key}); @override State createState() => _SettingsScreenState(); @@ -43,8 +43,8 @@ class _SettingsScreenState extends State { class SettingsContent extends StatelessWidget { /// Creates a [SettingsContent]. const SettingsContent({ - Key? key, - }) : super(key: key); + super.key, + }); @override Widget build(BuildContext context) => Column( diff --git a/packages/go_router/example/lib/books/src/screens/sign_in.dart b/packages/go_router/example/lib/books/src/screens/sign_in.dart index 533322bd5527..e02c870ba7c9 100644 --- a/packages/go_router/example/lib/books/src/screens/sign_in.dart +++ b/packages/go_router/example/lib/books/src/screens/sign_in.dart @@ -21,8 +21,8 @@ class SignInScreen extends StatefulWidget { /// Creates a sign-in screen. const SignInScreen({ required this.onSignIn, - Key? key, - }) : super(key: key); + super.key, + }); /// Called when users sign in with [Credentials]. final ValueChanged onSignIn; diff --git a/packages/go_router/example/lib/books/src/widgets/author_list.dart b/packages/go_router/example/lib/books/src/widgets/author_list.dart index d7496315113a..371e30a10cd5 100644 --- a/packages/go_router/example/lib/books/src/widgets/author_list.dart +++ b/packages/go_router/example/lib/books/src/widgets/author_list.dart @@ -12,8 +12,8 @@ class AuthorList extends StatelessWidget { const AuthorList({ required this.authors, this.onTap, - Key? key, - }) : super(key: key); + super.key, + }); /// The list of authors to be shown. final List authors; diff --git a/packages/go_router/example/lib/books/src/widgets/book_list.dart b/packages/go_router/example/lib/books/src/widgets/book_list.dart index af37e15e368b..3e2761fcb2c7 100644 --- a/packages/go_router/example/lib/books/src/widgets/book_list.dart +++ b/packages/go_router/example/lib/books/src/widgets/book_list.dart @@ -12,8 +12,8 @@ class BookList extends StatelessWidget { const BookList({ required this.books, this.onTap, - Key? key, - }) : super(key: key); + super.key, + }); /// The list of books to be displayed. final List books; diff --git a/packages/go_router/example/lib/main.dart b/packages/go_router/example/lib/main.dart index 3b513dfdfe7a..e4524711b628 100644 --- a/packages/go_router/example/lib/main.dart +++ b/packages/go_router/example/lib/main.dart @@ -38,7 +38,7 @@ final GoRouter _router = GoRouter( /// The main app. class MyApp extends StatelessWidget { /// Constructs a [MyApp] - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override Widget build(BuildContext context) { @@ -51,7 +51,7 @@ class MyApp extends StatelessWidget { /// The home screen class HomeScreen extends StatelessWidget { /// Constructs a [HomeScreen] - const HomeScreen({Key? key}) : super(key: key); + const HomeScreen({super.key}); @override Widget build(BuildContext context) { @@ -75,7 +75,7 @@ class HomeScreen extends StatelessWidget { /// The details screen class DetailsScreen extends StatelessWidget { /// Constructs a [DetailsScreen] - const DetailsScreen({Key? key}) : super(key: key); + const DetailsScreen({super.key}); @override Widget build(BuildContext context) { diff --git a/packages/go_router/example/lib/named_routes.dart b/packages/go_router/example/lib/named_routes.dart index f32960283b0e..a9d4604dddf0 100644 --- a/packages/go_router/example/lib/named_routes.dart +++ b/packages/go_router/example/lib/named_routes.dart @@ -59,7 +59,7 @@ void main() => runApp(App()); /// The main app. class App extends StatelessWidget { /// Creates an [App]. - App({Key? key}) : super(key: key); + App({super.key}); /// The title of the app. static const String title = 'GoRouter Example: Named Routes'; @@ -105,7 +105,7 @@ class App extends StatelessWidget { /// The home screen that shows a list of families. class HomeScreen extends StatelessWidget { /// Creates a [HomeScreen]. - const HomeScreen({Key? key}) : super(key: key); + const HomeScreen({super.key}); @override Widget build(BuildContext context) { @@ -130,7 +130,7 @@ class HomeScreen extends StatelessWidget { /// The screen that shows a list of persons in a family. class FamilyScreen extends StatelessWidget { /// Creates a [FamilyScreen]. - const FamilyScreen({required this.fid, Key? key}) : super(key: key); + const FamilyScreen({required this.fid, super.key}); /// The id family to display. final String fid; @@ -160,8 +160,7 @@ class FamilyScreen extends StatelessWidget { /// The person screen. class PersonScreen extends StatelessWidget { /// Creates a [PersonScreen]. - const PersonScreen({required this.fid, required this.pid, Key? key}) - : super(key: key); + const PersonScreen({required this.fid, required this.pid, super.key}); /// The id of family this person belong to. final String fid; diff --git a/packages/go_router/example/lib/others/error_screen.dart b/packages/go_router/example/lib/others/error_screen.dart index f7edca033ada..5c071fc03e40 100644 --- a/packages/go_router/example/lib/others/error_screen.dart +++ b/packages/go_router/example/lib/others/error_screen.dart @@ -10,7 +10,7 @@ void main() => runApp(App()); /// The main app. class App extends StatelessWidget { /// Creates an [App]. - App({Key? key}) : super(key: key); + App({super.key}); /// The title of the app. static const String title = 'GoRouter Example: Custom Error Screen'; @@ -42,7 +42,7 @@ class App extends StatelessWidget { /// The screen of the first page. class Page1Screen extends StatelessWidget { /// Creates a [Page1Screen]. - const Page1Screen({Key? key}) : super(key: key); + const Page1Screen({super.key}); @override Widget build(BuildContext context) => Scaffold( @@ -64,7 +64,7 @@ class Page1Screen extends StatelessWidget { /// The screen of the second page. class Page2Screen extends StatelessWidget { /// Creates a [Page2Screen]. - const Page2Screen({Key? key}) : super(key: key); + const Page2Screen({super.key}); @override Widget build(BuildContext context) => Scaffold( @@ -86,7 +86,7 @@ class Page2Screen extends StatelessWidget { /// The screen of the error page. class ErrorScreen extends StatelessWidget { /// Creates an [ErrorScreen]. - const ErrorScreen(this.error, {Key? key}) : super(key: key); + const ErrorScreen(this.error, {super.key}); /// The error to display. final Exception error; diff --git a/packages/go_router/example/lib/others/extra_param.dart b/packages/go_router/example/lib/others/extra_param.dart index 2562b89a7866..eaef755cafcd 100644 --- a/packages/go_router/example/lib/others/extra_param.dart +++ b/packages/go_router/example/lib/others/extra_param.dart @@ -51,7 +51,7 @@ void main() => runApp(App()); /// The main app. class App extends StatelessWidget { /// Creates an [App]. - App({Key? key}) : super(key: key); + App({super.key}); /// The title of the app. static const String title = 'GoRouter Example: Extra Parameter'; @@ -89,7 +89,7 @@ class App extends StatelessWidget { /// The home screen that shows a list of families. class HomeScreen extends StatelessWidget { /// Creates a [HomeScreen]. - const HomeScreen({Key? key}) : super(key: key); + const HomeScreen({super.key}); @override Widget build(BuildContext context) => Scaffold( @@ -110,7 +110,7 @@ class HomeScreen extends StatelessWidget { /// The screen that shows a list of persons in a family. class FamilyScreen extends StatelessWidget { /// Creates a [FamilyScreen]. - const FamilyScreen({required this.fid, Key? key}) : super(key: key); + const FamilyScreen({required this.fid, super.key}); /// The family to display. final String fid; diff --git a/packages/go_router/example/lib/others/init_loc.dart b/packages/go_router/example/lib/others/init_loc.dart index 31ca59474205..4f61b006f6e8 100644 --- a/packages/go_router/example/lib/others/init_loc.dart +++ b/packages/go_router/example/lib/others/init_loc.dart @@ -10,7 +10,7 @@ void main() => runApp(App()); /// The main app. class App extends StatelessWidget { /// Creates an [App]. - App({Key? key}) : super(key: key); + App({super.key}); /// The title of the app. static const String title = 'GoRouter Example: Initial Location'; @@ -46,7 +46,7 @@ class App extends StatelessWidget { /// The screen of the first page. class Page1Screen extends StatelessWidget { /// Creates a [Page1Screen]. - const Page1Screen({Key? key}) : super(key: key); + const Page1Screen({super.key}); @override Widget build(BuildContext context) => Scaffold( @@ -68,7 +68,7 @@ class Page1Screen extends StatelessWidget { /// The screen of the second page. class Page2Screen extends StatelessWidget { /// Creates a [Page2Screen]. - const Page2Screen({Key? key}) : super(key: key); + const Page2Screen({super.key}); @override Widget build(BuildContext context) => Scaffold( @@ -90,7 +90,7 @@ class Page2Screen extends StatelessWidget { /// The screen of the third page. class Page3Screen extends StatelessWidget { /// Creates a [Page3Screen]. - const Page3Screen({Key? key}) : super(key: key); + const Page3Screen({super.key}); @override Widget build(BuildContext context) => Scaffold( diff --git a/packages/go_router/example/lib/others/nav_observer.dart b/packages/go_router/example/lib/others/nav_observer.dart index a63023d99a99..2b8bfcb97c98 100644 --- a/packages/go_router/example/lib/others/nav_observer.dart +++ b/packages/go_router/example/lib/others/nav_observer.dart @@ -11,7 +11,7 @@ void main() => runApp(App()); /// The main app. class App extends StatelessWidget { /// Creates an [App]. - App({Key? key}) : super(key: key); + App({super.key}); /// The title of the app. static const String title = 'GoRouter Example: Navigator Observer'; @@ -96,7 +96,7 @@ extension on Route { /// The screen of the first page. class Page1Screen extends StatelessWidget { /// Creates a [Page1Screen]. - const Page1Screen({Key? key}) : super(key: key); + const Page1Screen({super.key}); @override Widget build(BuildContext context) => Scaffold( @@ -122,7 +122,7 @@ class Page1Screen extends StatelessWidget { /// The screen of the second page. class Page2Screen extends StatelessWidget { /// Creates a [Page2Screen]. - const Page2Screen({Key? key}) : super(key: key); + const Page2Screen({super.key}); @override Widget build(BuildContext context) => Scaffold( @@ -147,7 +147,7 @@ class Page2Screen extends StatelessWidget { /// The screen of the third page. class Page3Screen extends StatelessWidget { /// Creates a [Page3Screen]. - const Page3Screen({Key? key}) : super(key: key); + const Page3Screen({super.key}); @override Widget build(BuildContext context) => Scaffold( diff --git a/packages/go_router/example/lib/others/push.dart b/packages/go_router/example/lib/others/push.dart index 5d54ec2cde8c..53567b6de28a 100644 --- a/packages/go_router/example/lib/others/push.dart +++ b/packages/go_router/example/lib/others/push.dart @@ -10,7 +10,7 @@ void main() => runApp(App()); /// The main app. class App extends StatelessWidget { /// Creates an [App]. - App({Key? key}) : super(key: key); + App({super.key}); /// The title of the app. static const String title = 'GoRouter Example: Push'; @@ -42,7 +42,7 @@ class App extends StatelessWidget { /// The screen of the first page. class Page1ScreenWithPush extends StatelessWidget { /// Creates a [Page1ScreenWithPush]. - const Page1ScreenWithPush({Key? key}) : super(key: key); + const Page1ScreenWithPush({super.key}); @override Widget build(BuildContext context) => Scaffold( @@ -64,7 +64,7 @@ class Page1ScreenWithPush extends StatelessWidget { /// The screen of the second page. class Page2ScreenWithPush extends StatelessWidget { /// Creates a [Page2ScreenWithPush]. - const Page2ScreenWithPush(this.pushCount, {Key? key}) : super(key: key); + const Page2ScreenWithPush(this.pushCount, {super.key}); /// The push count. final int pushCount; diff --git a/packages/go_router/example/lib/others/router_neglect.dart b/packages/go_router/example/lib/others/router_neglect.dart index d5c228029926..75686a1df594 100644 --- a/packages/go_router/example/lib/others/router_neglect.dart +++ b/packages/go_router/example/lib/others/router_neglect.dart @@ -10,7 +10,7 @@ void main() => runApp(App()); /// The main app. class App extends StatelessWidget { /// Creates an [App]. - App({Key? key}) : super(key: key); + App({super.key}); /// The title of the app. static const String title = 'GoRouter Example: Router neglect'; @@ -42,7 +42,7 @@ class App extends StatelessWidget { /// The screen of the first page. class Page1Screen extends StatelessWidget { /// Creates a [Page1Screen]. - const Page1Screen({Key? key}) : super(key: key); + const Page1Screen({super.key}); @override Widget build(BuildContext context) => Scaffold( @@ -75,7 +75,7 @@ class Page1Screen extends StatelessWidget { /// The screen of the second page. class Page2Screen extends StatelessWidget { /// Creates a [Page2Screen]. - const Page2Screen({Key? key}) : super(key: key); + const Page2Screen({super.key}); @override Widget build(BuildContext context) => Scaffold( diff --git a/packages/go_router/example/lib/others/state_restoration.dart b/packages/go_router/example/lib/others/state_restoration.dart index 03bfd8860511..93e8aca12ad4 100644 --- a/packages/go_router/example/lib/others/state_restoration.dart +++ b/packages/go_router/example/lib/others/state_restoration.dart @@ -12,7 +12,7 @@ void main() => runApp( /// The main app. class App extends StatefulWidget { /// Creates an [App]. - const App({Key? key}) : super(key: key); + const App({super.key}); /// The title of the app. static const String title = 'GoRouter Example: State Restoration'; @@ -60,7 +60,7 @@ class _AppState extends State with RestorationMixin { /// The screen of the first page. class Page1Screen extends StatelessWidget { /// Creates a [Page1Screen]. - const Page1Screen({Key? key}) : super(key: key); + const Page1Screen({super.key}); @override Widget build(BuildContext context) => Scaffold( @@ -82,7 +82,7 @@ class Page1Screen extends StatelessWidget { /// The screen of the second page. class Page2Screen extends StatelessWidget { /// Creates a [Page2Screen]. - const Page2Screen({Key? key}) : super(key: key); + const Page2Screen({super.key}); @override Widget build(BuildContext context) => Scaffold( diff --git a/packages/go_router/example/lib/others/transitions.dart b/packages/go_router/example/lib/others/transitions.dart index 51c2a246c60d..e4b9a3e67b33 100644 --- a/packages/go_router/example/lib/others/transitions.dart +++ b/packages/go_router/example/lib/others/transitions.dart @@ -10,7 +10,7 @@ void main() => runApp(App()); /// The main app. class App extends StatelessWidget { /// Creates an [App]. - App({Key? key}) : super(key: key); + App({super.key}); /// The title of the app. static const String title = 'GoRouter Example: Custom Transitions'; @@ -120,8 +120,8 @@ class ExampleTransitionsScreen extends StatelessWidget { const ExampleTransitionsScreen({ required this.color, required this.kind, - Key? key, - }) : super(key: key); + super.key, + }); /// The available transition kinds. static final List kinds = [ diff --git a/packages/go_router/example/lib/path_and_query_parameters.dart b/packages/go_router/example/lib/path_and_query_parameters.dart index 5b075875a445..83d7b631f3e8 100755 --- a/packages/go_router/example/lib/path_and_query_parameters.dart +++ b/packages/go_router/example/lib/path_and_query_parameters.dart @@ -59,7 +59,7 @@ void main() => runApp(App()); /// The main app. class App extends StatelessWidget { /// Creates an [App]. - App({Key? key}) : super(key: key); + App({super.key}); /// The title of the app. static const String title = 'GoRouter Example: Query Parameters'; @@ -97,7 +97,7 @@ class App extends StatelessWidget { /// The home screen that shows a list of families. class HomeScreen extends StatelessWidget { /// Creates a [HomeScreen]. - const HomeScreen({Key? key}) : super(key: key); + const HomeScreen({super.key}); @override Widget build(BuildContext context) { @@ -121,8 +121,7 @@ class HomeScreen extends StatelessWidget { /// The screen that shows a list of persons in a family. class FamilyScreen extends StatelessWidget { /// Creates a [FamilyScreen]. - const FamilyScreen({required this.fid, required this.asc, Key? key}) - : super(key: key); + const FamilyScreen({required this.fid, required this.asc, super.key}); /// The family to display. final String fid; diff --git a/packages/go_router/example/lib/redirection.dart b/packages/go_router/example/lib/redirection.dart index 4ce8253dd265..4e97f6660847 100644 --- a/packages/go_router/example/lib/redirection.dart +++ b/packages/go_router/example/lib/redirection.dart @@ -39,7 +39,7 @@ void main() => runApp(App()); /// The main app. class App extends StatelessWidget { /// Creates an [App]. - App({Key? key}) : super(key: key); + App({super.key}); final LoginInfo _loginInfo = LoginInfo(); @@ -98,7 +98,7 @@ class App extends StatelessWidget { /// The login screen. class LoginScreen extends StatelessWidget { /// Creates a [LoginScreen]. - const LoginScreen({Key? key}) : super(key: key); + const LoginScreen({super.key}); @override Widget build(BuildContext context) => Scaffold( @@ -126,7 +126,7 @@ class LoginScreen extends StatelessWidget { /// The home screen. class HomeScreen extends StatelessWidget { /// Creates a [HomeScreen]. - const HomeScreen({Key? key}) : super(key: key); + const HomeScreen({super.key}); @override Widget build(BuildContext context) { diff --git a/packages/go_router/example/lib/shell_route.dart b/packages/go_router/example/lib/shell_route.dart index 3076b3d84342..cf1179c88335 100644 --- a/packages/go_router/example/lib/shell_route.dart +++ b/packages/go_router/example/lib/shell_route.dart @@ -26,7 +26,7 @@ void main() { /// An example demonstrating how to use [ShellRoute] class ShellRouteExampleApp extends StatelessWidget { /// Creates a [ShellRouteExampleApp] - ShellRouteExampleApp({Key? key}) : super(key: key); + ShellRouteExampleApp({super.key}); final GoRouter _router = GoRouter( navigatorKey: _rootNavigatorKey, @@ -118,8 +118,8 @@ class ScaffoldWithNavBar extends StatelessWidget { /// Constructs an [ScaffoldWithNavBar]. const ScaffoldWithNavBar({ required this.child, - Key? key, - }) : super(key: key); + super.key, + }); /// The widget to display in the body of the Scaffold. /// In this sample, it is a Navigator. @@ -182,7 +182,7 @@ class ScaffoldWithNavBar extends StatelessWidget { /// The first screen in the bottom navigation bar. class ScreenA extends StatelessWidget { /// Constructs a [ScreenA] widget. - const ScreenA({Key? key}) : super(key: key); + const ScreenA({super.key}); @override Widget build(BuildContext context) { @@ -209,7 +209,7 @@ class ScreenA extends StatelessWidget { /// The second screen in the bottom navigation bar. class ScreenB extends StatelessWidget { /// Constructs a [ScreenB] widget. - const ScreenB({Key? key}) : super(key: key); + const ScreenB({super.key}); @override Widget build(BuildContext context) { @@ -236,7 +236,7 @@ class ScreenB extends StatelessWidget { /// The third screen in the bottom navigation bar. class ScreenC extends StatelessWidget { /// Constructs a [ScreenC] widget. - const ScreenC({Key? key}) : super(key: key); + const ScreenC({super.key}); @override Widget build(BuildContext context) { @@ -265,8 +265,8 @@ class DetailsScreen extends StatelessWidget { /// Constructs a [DetailsScreen]. const DetailsScreen({ required this.label, - Key? key, - }) : super(key: key); + super.key, + }); /// The label to display in the center of the screen. final String label; diff --git a/packages/go_router/example/lib/transition_animations.dart b/packages/go_router/example/lib/transition_animations.dart index 5c13fef9ca0b..f245719d5e11 100644 --- a/packages/go_router/example/lib/transition_animations.dart +++ b/packages/go_router/example/lib/transition_animations.dart @@ -89,7 +89,7 @@ final GoRouter _router = GoRouter( /// The main app. class MyApp extends StatelessWidget { /// Constructs a [MyApp] - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override Widget build(BuildContext context) { @@ -102,7 +102,7 @@ class MyApp extends StatelessWidget { /// The home screen class HomeScreen extends StatelessWidget { /// Constructs a [HomeScreen] - const HomeScreen({Key? key}) : super(key: key); + const HomeScreen({super.key}); @override Widget build(BuildContext context) { @@ -139,7 +139,7 @@ class HomeScreen extends StatelessWidget { /// The details screen class DetailsScreen extends StatelessWidget { /// Constructs a [DetailsScreen] - const DetailsScreen({Key? key}) : super(key: key); + const DetailsScreen({super.key}); @override Widget build(BuildContext context) { @@ -163,7 +163,7 @@ class DetailsScreen extends StatelessWidget { /// The dismissible details screen class DismissibleDetails extends StatelessWidget { /// Constructs a [DismissibleDetails] - const DismissibleDetails({Key? key}) : super(key: key); + const DismissibleDetails({super.key}); @override Widget build(BuildContext context) { diff --git a/packages/go_router/example/pubspec.yaml b/packages/go_router/example/pubspec.yaml index c5b85197f83b..de806d48969e 100644 --- a/packages/go_router/example/pubspec.yaml +++ b/packages/go_router/example/pubspec.yaml @@ -4,7 +4,7 @@ version: 3.0.1 publish_to: none environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.18.0 <3.0.0" flutter: ">=3.3.0" dependencies: diff --git a/packages/go_router/pubspec.yaml b/packages/go_router/pubspec.yaml index 8e833aea8f5b..98221bae3032 100644 --- a/packages/go_router/pubspec.yaml +++ b/packages/go_router/pubspec.yaml @@ -6,7 +6,7 @@ repository: https://github.com/flutter/packages/tree/main/packages/go_router issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+go_router%22 environment: - sdk: ">=2.17.0 <3.0.0" + sdk: ">=2.18.0 <3.0.0" flutter: ">=3.3.0" dependencies: diff --git a/packages/go_router_builder/CHANGELOG.md b/packages/go_router_builder/CHANGELOG.md index 98aa6b70808e..5f36062d994d 100644 --- a/packages/go_router_builder/CHANGELOG.md +++ b/packages/go_router_builder/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 1.1.4 * Fixes the example for the default values in the README. diff --git a/packages/go_router_builder/pubspec.yaml b/packages/go_router_builder/pubspec.yaml index 777f6c62a20b..96c5c17d11bf 100644 --- a/packages/go_router_builder/pubspec.yaml +++ b/packages/go_router_builder/pubspec.yaml @@ -7,7 +7,7 @@ repository: https://github.com/flutter/packages/tree/main/packages/go_router_bui issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+go_router_builder%22 environment: - sdk: ">=2.17.0 <3.0.0" + sdk: ">=2.18.0 <3.0.0" flutter: ">=3.3.0" dependencies: diff --git a/packages/google_maps_flutter/google_maps_flutter/CHANGELOG.md b/packages/google_maps_flutter/google_maps_flutter/CHANGELOG.md index 3eebef3b8d52..cf1cdd9a3df0 100644 --- a/packages/google_maps_flutter/google_maps_flutter/CHANGELOG.md +++ b/packages/google_maps_flutter/google_maps_flutter/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 2.2.5 * Updates iOS minimum version in README. diff --git a/packages/google_maps_flutter/google_maps_flutter/README.md b/packages/google_maps_flutter/google_maps_flutter/README.md index d48445a73583..820e0de42aa1 100644 --- a/packages/google_maps_flutter/google_maps_flutter/README.md +++ b/packages/google_maps_flutter/google_maps_flutter/README.md @@ -110,7 +110,7 @@ the `GoogleMap`'s `onMapCreated` callback. ```dart class MapSample extends StatefulWidget { - const MapSample({Key? key}) : super(key: key); + const MapSample({super.key}); @override State createState() => MapSampleState(); diff --git a/packages/google_maps_flutter/google_maps_flutter/example/lib/animate_camera.dart b/packages/google_maps_flutter/google_maps_flutter/example/lib/animate_camera.dart index 3975d64449b8..593c533125c3 100644 --- a/packages/google_maps_flutter/google_maps_flutter/example/lib/animate_camera.dart +++ b/packages/google_maps_flutter/google_maps_flutter/example/lib/animate_camera.dart @@ -20,7 +20,7 @@ class AnimateCameraPage extends GoogleMapExampleAppPage { } class AnimateCamera extends StatefulWidget { - const AnimateCamera({Key? key}) : super(key: key); + const AnimateCamera({super.key}); @override State createState() => AnimateCameraState(); } diff --git a/packages/google_maps_flutter/google_maps_flutter/example/lib/main.dart b/packages/google_maps_flutter/google_maps_flutter/example/lib/main.dart index 60d4fdd95dcf..96479e38e710 100644 --- a/packages/google_maps_flutter/google_maps_flutter/example/lib/main.dart +++ b/packages/google_maps_flutter/google_maps_flutter/example/lib/main.dart @@ -44,7 +44,7 @@ final List _allPages = [ /// MapsDemo is the Main Application. class MapsDemo extends StatelessWidget { /// Default Constructor - const MapsDemo({Key? key}) : super(key: key); + const MapsDemo({super.key}); void _pushPage(BuildContext context, GoogleMapExampleAppPage page) { Navigator.of(context).push(MaterialPageRoute( diff --git a/packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart b/packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart index 0a3146cfaf40..5348c1001af7 100644 --- a/packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart +++ b/packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart @@ -26,7 +26,7 @@ class MapUiPage extends GoogleMapExampleAppPage { } class MapUiBody extends StatefulWidget { - const MapUiBody({Key? key}) : super(key: key); + const MapUiBody({super.key}); @override State createState() => MapUiBodyState(); diff --git a/packages/google_maps_flutter/google_maps_flutter/example/lib/marker_icons.dart b/packages/google_maps_flutter/google_maps_flutter/example/lib/marker_icons.dart index 58d266c95d1d..847e5ae3678b 100644 --- a/packages/google_maps_flutter/google_maps_flutter/example/lib/marker_icons.dart +++ b/packages/google_maps_flutter/google_maps_flutter/example/lib/marker_icons.dart @@ -21,7 +21,7 @@ class MarkerIconsPage extends GoogleMapExampleAppPage { } class MarkerIconsBody extends StatefulWidget { - const MarkerIconsBody({Key? key}) : super(key: key); + const MarkerIconsBody({super.key}); @override State createState() => MarkerIconsBodyState(); diff --git a/packages/google_maps_flutter/google_maps_flutter/example/lib/move_camera.dart b/packages/google_maps_flutter/google_maps_flutter/example/lib/move_camera.dart index 7fa8a0354eb2..4314522f647a 100644 --- a/packages/google_maps_flutter/google_maps_flutter/example/lib/move_camera.dart +++ b/packages/google_maps_flutter/google_maps_flutter/example/lib/move_camera.dart @@ -20,7 +20,7 @@ class MoveCameraPage extends GoogleMapExampleAppPage { } class MoveCamera extends StatefulWidget { - const MoveCamera({Key? key}) : super(key: key); + const MoveCamera({super.key}); @override State createState() => MoveCameraState(); } diff --git a/packages/google_maps_flutter/google_maps_flutter/example/lib/padding.dart b/packages/google_maps_flutter/google_maps_flutter/example/lib/padding.dart index d5d396fa69c1..a3103c5ee91f 100644 --- a/packages/google_maps_flutter/google_maps_flutter/example/lib/padding.dart +++ b/packages/google_maps_flutter/google_maps_flutter/example/lib/padding.dart @@ -19,7 +19,7 @@ class PaddingPage extends GoogleMapExampleAppPage { } class MarkerIconsBody extends StatefulWidget { - const MarkerIconsBody({Key? key}) : super(key: key); + const MarkerIconsBody({super.key}); @override State createState() => MarkerIconsBodyState(); diff --git a/packages/google_maps_flutter/google_maps_flutter/example/lib/page.dart b/packages/google_maps_flutter/google_maps_flutter/example/lib/page.dart index eb01ab07a6f3..cb8ef54d3745 100644 --- a/packages/google_maps_flutter/google_maps_flutter/example/lib/page.dart +++ b/packages/google_maps_flutter/google_maps_flutter/example/lib/page.dart @@ -7,8 +7,7 @@ import 'package:flutter/material.dart'; abstract class GoogleMapExampleAppPage extends StatelessWidget { - const GoogleMapExampleAppPage(this.leading, this.title, {Key? key}) - : super(key: key); + const GoogleMapExampleAppPage(this.leading, this.title, {super.key}); final Widget leading; final String title; diff --git a/packages/google_maps_flutter/google_maps_flutter/example/lib/place_circle.dart b/packages/google_maps_flutter/google_maps_flutter/example/lib/place_circle.dart index 7cbb63ac4e99..7e3c11771663 100644 --- a/packages/google_maps_flutter/google_maps_flutter/example/lib/place_circle.dart +++ b/packages/google_maps_flutter/google_maps_flutter/example/lib/place_circle.dart @@ -20,7 +20,7 @@ class PlaceCirclePage extends GoogleMapExampleAppPage { } class PlaceCircleBody extends StatefulWidget { - const PlaceCircleBody({Key? key}) : super(key: key); + const PlaceCircleBody({super.key}); @override State createState() => PlaceCircleBodyState(); diff --git a/packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart b/packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart index 8fde95016f51..dc3a087058ce 100644 --- a/packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart +++ b/packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart @@ -25,7 +25,7 @@ class PlaceMarkerPage extends GoogleMapExampleAppPage { } class PlaceMarkerBody extends StatefulWidget { - const PlaceMarkerBody({Key? key}) : super(key: key); + const PlaceMarkerBody({super.key}); @override State createState() => PlaceMarkerBodyState(); diff --git a/packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart b/packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart index cb0cc56d4754..e18d088ed313 100644 --- a/packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart +++ b/packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart @@ -20,7 +20,7 @@ class PlacePolygonPage extends GoogleMapExampleAppPage { } class PlacePolygonBody extends StatefulWidget { - const PlacePolygonBody({Key? key}) : super(key: key); + const PlacePolygonBody({super.key}); @override State createState() => PlacePolygonBodyState(); diff --git a/packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart b/packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart index 7a7c5d2f4a16..e7997fa44451 100644 --- a/packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart +++ b/packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart @@ -21,7 +21,7 @@ class PlacePolylinePage extends GoogleMapExampleAppPage { } class PlacePolylineBody extends StatefulWidget { - const PlacePolylineBody({Key? key}) : super(key: key); + const PlacePolylineBody({super.key}); @override State createState() => PlacePolylineBodyState(); diff --git a/packages/google_maps_flutter/google_maps_flutter/example/lib/readme_sample.dart b/packages/google_maps_flutter/google_maps_flutter/example/lib/readme_sample.dart index 7352945fb2d5..528ce6401f14 100644 --- a/packages/google_maps_flutter/google_maps_flutter/example/lib/readme_sample.dart +++ b/packages/google_maps_flutter/google_maps_flutter/example/lib/readme_sample.dart @@ -12,7 +12,7 @@ import 'package:google_maps_flutter/google_maps_flutter.dart'; void main() => runApp(const MyApp()); class MyApp extends StatelessWidget { - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override Widget build(BuildContext context) { @@ -25,7 +25,7 @@ class MyApp extends StatelessWidget { // #docregion MapSample class MapSample extends StatefulWidget { - const MapSample({Key? key}) : super(key: key); + const MapSample({super.key}); @override State createState() => MapSampleState(); diff --git a/packages/google_maps_flutter/google_maps_flutter/example/lib/scrolling_map.dart b/packages/google_maps_flutter/google_maps_flutter/example/lib/scrolling_map.dart index 3d676e0713fd..c4b5642d1826 100644 --- a/packages/google_maps_flutter/google_maps_flutter/example/lib/scrolling_map.dart +++ b/packages/google_maps_flutter/google_maps_flutter/example/lib/scrolling_map.dart @@ -24,7 +24,7 @@ class ScrollingMapPage extends GoogleMapExampleAppPage { } class ScrollingMapBody extends StatelessWidget { - const ScrollingMapBody({Key? key}) : super(key: key); + const ScrollingMapBody({super.key}); @override Widget build(BuildContext context) { diff --git a/packages/google_maps_flutter/google_maps_flutter/example/lib/tile_overlay.dart b/packages/google_maps_flutter/google_maps_flutter/example/lib/tile_overlay.dart index 31f470dd9c25..21ae075d3570 100644 --- a/packages/google_maps_flutter/google_maps_flutter/example/lib/tile_overlay.dart +++ b/packages/google_maps_flutter/google_maps_flutter/example/lib/tile_overlay.dart @@ -23,7 +23,7 @@ class TileOverlayPage extends GoogleMapExampleAppPage { } class TileOverlayBody extends StatefulWidget { - const TileOverlayBody({Key? key}) : super(key: key); + const TileOverlayBody({super.key}); @override State createState() => TileOverlayBodyState(); diff --git a/packages/google_maps_flutter/google_maps_flutter/example/pubspec.yaml b/packages/google_maps_flutter/google_maps_flutter/example/pubspec.yaml index 5813d42e617e..c98a7e311217 100644 --- a/packages/google_maps_flutter/google_maps_flutter/example/pubspec.yaml +++ b/packages/google_maps_flutter/google_maps_flutter/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Demonstrates how to use the google_maps_flutter plugin. publish_to: none environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/google_maps_flutter/google_maps_flutter/lib/src/google_map.dart b/packages/google_maps_flutter/google_maps_flutter/lib/src/google_map.dart index 1f7871068cab..15ea6182d7b2 100644 --- a/packages/google_maps_flutter/google_maps_flutter/lib/src/google_map.dart +++ b/packages/google_maps_flutter/google_maps_flutter/lib/src/google_map.dart @@ -89,7 +89,7 @@ class GoogleMap extends StatefulWidget { /// /// [AssertionError] will be thrown if [initialCameraPosition] is null; const GoogleMap({ - Key? key, + super.key, required this.initialCameraPosition, this.onMapCreated, this.gestureRecognizers = const >{}, @@ -123,8 +123,7 @@ class GoogleMap extends StatefulWidget { this.onCameraIdle, this.onTap, this.onLongPress, - }) : assert(initialCameraPosition != null), - super(key: key); + }) : assert(initialCameraPosition != null); /// Callback method for when the map is ready to be used. /// diff --git a/packages/google_maps_flutter/google_maps_flutter/pubspec.yaml b/packages/google_maps_flutter/google_maps_flutter/pubspec.yaml index 2f4b441fa1d1..961e51674886 100644 --- a/packages/google_maps_flutter/google_maps_flutter/pubspec.yaml +++ b/packages/google_maps_flutter/google_maps_flutter/pubspec.yaml @@ -5,7 +5,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 2.2.5 environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" flutter: diff --git a/packages/google_maps_flutter/google_maps_flutter_android/CHANGELOG.md b/packages/google_maps_flutter/google_maps_flutter_android/CHANGELOG.md index 0607df422e83..535b9a51d1b9 100644 --- a/packages/google_maps_flutter/google_maps_flutter_android/CHANGELOG.md +++ b/packages/google_maps_flutter/google_maps_flutter_android/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 2.4.8 * Fixes compilation warnings. diff --git a/packages/google_maps_flutter/google_maps_flutter_android/example/lib/animate_camera.dart b/packages/google_maps_flutter/google_maps_flutter_android/example/lib/animate_camera.dart index c34a3ba4b2fe..c77f9ededac1 100644 --- a/packages/google_maps_flutter/google_maps_flutter_android/example/lib/animate_camera.dart +++ b/packages/google_maps_flutter/google_maps_flutter_android/example/lib/animate_camera.dart @@ -21,7 +21,7 @@ class AnimateCameraPage extends GoogleMapExampleAppPage { } class AnimateCamera extends StatefulWidget { - const AnimateCamera({Key? key}) : super(key: key); + const AnimateCamera({super.key}); @override State createState() => AnimateCameraState(); } diff --git a/packages/google_maps_flutter/google_maps_flutter_android/example/lib/example_google_map.dart b/packages/google_maps_flutter/google_maps_flutter_android/example/lib/example_google_map.dart index 1c1261cb5b82..e0817a55f283 100644 --- a/packages/google_maps_flutter/google_maps_flutter_android/example/lib/example_google_map.dart +++ b/packages/google_maps_flutter/google_maps_flutter_android/example/lib/example_google_map.dart @@ -213,7 +213,7 @@ class ExampleGoogleMap extends StatefulWidget { /// /// [AssertionError] will be thrown if [initialCameraPosition] is null; const ExampleGoogleMap({ - Key? key, + super.key, required this.initialCameraPosition, this.onMapCreated, this.gestureRecognizers = const >{}, @@ -247,7 +247,7 @@ class ExampleGoogleMap extends StatefulWidget { this.onCameraIdle, this.onTap, this.onLongPress, - }) : super(key: key); + }); /// Callback method for when the map is ready to be used. /// diff --git a/packages/google_maps_flutter/google_maps_flutter_android/example/lib/main.dart b/packages/google_maps_flutter/google_maps_flutter_android/example/lib/main.dart index 4adec524f87b..cc9ef7e29acc 100644 --- a/packages/google_maps_flutter/google_maps_flutter_android/example/lib/main.dart +++ b/packages/google_maps_flutter/google_maps_flutter_android/example/lib/main.dart @@ -44,7 +44,7 @@ final List _allPages = [ /// MapsDemo is the Main Application. class MapsDemo extends StatelessWidget { /// Default Constructor - const MapsDemo({Key? key}) : super(key: key); + const MapsDemo({super.key}); void _pushPage(BuildContext context, GoogleMapExampleAppPage page) { Navigator.of(context).push(MaterialPageRoute( diff --git a/packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_ui.dart b/packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_ui.dart index 546cf1d08ff8..311e2267aa0c 100644 --- a/packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_ui.dart +++ b/packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_ui.dart @@ -27,7 +27,7 @@ class MapUiPage extends GoogleMapExampleAppPage { } class MapUiBody extends StatefulWidget { - const MapUiBody({Key? key}) : super(key: key); + const MapUiBody({super.key}); @override State createState() => MapUiBodyState(); diff --git a/packages/google_maps_flutter/google_maps_flutter_android/example/lib/marker_icons.dart b/packages/google_maps_flutter/google_maps_flutter_android/example/lib/marker_icons.dart index fe28eb680596..174055613a9e 100644 --- a/packages/google_maps_flutter/google_maps_flutter_android/example/lib/marker_icons.dart +++ b/packages/google_maps_flutter/google_maps_flutter_android/example/lib/marker_icons.dart @@ -22,7 +22,7 @@ class MarkerIconsPage extends GoogleMapExampleAppPage { } class MarkerIconsBody extends StatefulWidget { - const MarkerIconsBody({Key? key}) : super(key: key); + const MarkerIconsBody({super.key}); @override State createState() => MarkerIconsBodyState(); diff --git a/packages/google_maps_flutter/google_maps_flutter_android/example/lib/move_camera.dart b/packages/google_maps_flutter/google_maps_flutter_android/example/lib/move_camera.dart index 7f44d89518dc..b1fb55cad542 100644 --- a/packages/google_maps_flutter/google_maps_flutter_android/example/lib/move_camera.dart +++ b/packages/google_maps_flutter/google_maps_flutter_android/example/lib/move_camera.dart @@ -21,7 +21,7 @@ class MoveCameraPage extends GoogleMapExampleAppPage { } class MoveCamera extends StatefulWidget { - const MoveCamera({Key? key}) : super(key: key); + const MoveCamera({super.key}); @override State createState() => MoveCameraState(); } diff --git a/packages/google_maps_flutter/google_maps_flutter_android/example/lib/padding.dart b/packages/google_maps_flutter/google_maps_flutter_android/example/lib/padding.dart index 98be700a2af2..bfddb167d435 100644 --- a/packages/google_maps_flutter/google_maps_flutter_android/example/lib/padding.dart +++ b/packages/google_maps_flutter/google_maps_flutter_android/example/lib/padding.dart @@ -21,7 +21,7 @@ class PaddingPage extends GoogleMapExampleAppPage { } class MarkerIconsBody extends StatefulWidget { - const MarkerIconsBody({Key? key}) : super(key: key); + const MarkerIconsBody({super.key}); @override State createState() => MarkerIconsBodyState(); diff --git a/packages/google_maps_flutter/google_maps_flutter_android/example/lib/page.dart b/packages/google_maps_flutter/google_maps_flutter_android/example/lib/page.dart index eb01ab07a6f3..cb8ef54d3745 100644 --- a/packages/google_maps_flutter/google_maps_flutter_android/example/lib/page.dart +++ b/packages/google_maps_flutter/google_maps_flutter_android/example/lib/page.dart @@ -7,8 +7,7 @@ import 'package:flutter/material.dart'; abstract class GoogleMapExampleAppPage extends StatelessWidget { - const GoogleMapExampleAppPage(this.leading, this.title, {Key? key}) - : super(key: key); + const GoogleMapExampleAppPage(this.leading, this.title, {super.key}); final Widget leading; final String title; diff --git a/packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_circle.dart b/packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_circle.dart index 9dc5760afa1f..29be7442965c 100644 --- a/packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_circle.dart +++ b/packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_circle.dart @@ -21,7 +21,7 @@ class PlaceCirclePage extends GoogleMapExampleAppPage { } class PlaceCircleBody extends StatefulWidget { - const PlaceCircleBody({Key? key}) : super(key: key); + const PlaceCircleBody({super.key}); @override State createState() => PlaceCircleBodyState(); diff --git a/packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_marker.dart b/packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_marker.dart index 2c6c725a4fa5..9cba4975d40f 100644 --- a/packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_marker.dart +++ b/packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_marker.dart @@ -26,7 +26,7 @@ class PlaceMarkerPage extends GoogleMapExampleAppPage { } class PlaceMarkerBody extends StatefulWidget { - const PlaceMarkerBody({Key? key}) : super(key: key); + const PlaceMarkerBody({super.key}); @override State createState() => PlaceMarkerBodyState(); diff --git a/packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polygon.dart b/packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polygon.dart index b41cb5d3ccb1..889c38d6376b 100644 --- a/packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polygon.dart +++ b/packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polygon.dart @@ -21,7 +21,7 @@ class PlacePolygonPage extends GoogleMapExampleAppPage { } class PlacePolygonBody extends StatefulWidget { - const PlacePolygonBody({Key? key}) : super(key: key); + const PlacePolygonBody({super.key}); @override State createState() => PlacePolygonBodyState(); diff --git a/packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polyline.dart b/packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polyline.dart index 004206b9f6cc..659ef87e87f8 100644 --- a/packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polyline.dart +++ b/packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polyline.dart @@ -22,7 +22,7 @@ class PlacePolylinePage extends GoogleMapExampleAppPage { } class PlacePolylineBody extends StatefulWidget { - const PlacePolylineBody({Key? key}) : super(key: key); + const PlacePolylineBody({super.key}); @override State createState() => PlacePolylineBodyState(); diff --git a/packages/google_maps_flutter/google_maps_flutter_android/example/lib/readme_excerpts.dart b/packages/google_maps_flutter/google_maps_flutter_android/example/lib/readme_excerpts.dart index 0f6b26de00b6..e2864eb3351b 100644 --- a/packages/google_maps_flutter/google_maps_flutter_android/example/lib/readme_excerpts.dart +++ b/packages/google_maps_flutter/google_maps_flutter_android/example/lib/readme_excerpts.dart @@ -23,7 +23,7 @@ void main() { // #enddocregion DisplayMode class MyApp extends StatefulWidget { - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override State createState() => _MyAppState(); diff --git a/packages/google_maps_flutter/google_maps_flutter_android/example/lib/scrolling_map.dart b/packages/google_maps_flutter/google_maps_flutter_android/example/lib/scrolling_map.dart index 7a9b75cd1224..53619992acd9 100644 --- a/packages/google_maps_flutter/google_maps_flutter_android/example/lib/scrolling_map.dart +++ b/packages/google_maps_flutter/google_maps_flutter_android/example/lib/scrolling_map.dart @@ -25,7 +25,7 @@ class ScrollingMapPage extends GoogleMapExampleAppPage { } class ScrollingMapBody extends StatelessWidget { - const ScrollingMapBody({Key? key}) : super(key: key); + const ScrollingMapBody({super.key}); @override Widget build(BuildContext context) { diff --git a/packages/google_maps_flutter/google_maps_flutter_android/example/lib/tile_overlay.dart b/packages/google_maps_flutter/google_maps_flutter_android/example/lib/tile_overlay.dart index e25ab916d8de..9122fda76ce2 100644 --- a/packages/google_maps_flutter/google_maps_flutter_android/example/lib/tile_overlay.dart +++ b/packages/google_maps_flutter/google_maps_flutter_android/example/lib/tile_overlay.dart @@ -24,7 +24,7 @@ class TileOverlayPage extends GoogleMapExampleAppPage { } class TileOverlayBody extends StatefulWidget { - const TileOverlayBody({Key? key}) : super(key: key); + const TileOverlayBody({super.key}); @override State createState() => TileOverlayBodyState(); diff --git a/packages/google_maps_flutter/google_maps_flutter_android/example/pubspec.yaml b/packages/google_maps_flutter/google_maps_flutter_android/example/pubspec.yaml index aa29fa99a97b..74eef48836b9 100644 --- a/packages/google_maps_flutter/google_maps_flutter_android/example/pubspec.yaml +++ b/packages/google_maps_flutter/google_maps_flutter_android/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Demonstrates how to use the google_maps_flutter plugin. publish_to: none environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart b/packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart index 0461b4cf71bc..e072952c3673 100644 --- a/packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart +++ b/packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart @@ -759,8 +759,8 @@ Map _jsonForMapConfiguration(MapConfiguration config) { // interface, and remove this copy. class _TileOverlayUpdates extends MapsObjectUpdates { /// Computes [TileOverlayUpdates] given previous and current [TileOverlay]s. - _TileOverlayUpdates.from(Set previous, Set current) - : super.from(previous, current, objectName: 'tileOverlay'); + _TileOverlayUpdates.from(super.previous, super.current) + : super.from(objectName: 'tileOverlay'); /// Set of TileOverlays to be added in this update. Set get tileOverlaysToAdd => objectsToAdd; diff --git a/packages/google_maps_flutter/google_maps_flutter_android/pubspec.yaml b/packages/google_maps_flutter/google_maps_flutter_android/pubspec.yaml index 2e02e0253b72..92efcb9b92c1 100644 --- a/packages/google_maps_flutter/google_maps_flutter_android/pubspec.yaml +++ b/packages/google_maps_flutter/google_maps_flutter_android/pubspec.yaml @@ -5,7 +5,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 2.4.8 environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" flutter: diff --git a/packages/google_maps_flutter/google_maps_flutter_ios/CHANGELOG.md b/packages/google_maps_flutter/google_maps_flutter_ios/CHANGELOG.md index f896b59fe475..a3f093e68db8 100644 --- a/packages/google_maps_flutter/google_maps_flutter_ios/CHANGELOG.md +++ b/packages/google_maps_flutter/google_maps_flutter_ios/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 2.2.0 * Updates minimum Flutter version to 3.3 and iOS 11. diff --git a/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/animate_camera.dart b/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/animate_camera.dart index c34a3ba4b2fe..c77f9ededac1 100644 --- a/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/animate_camera.dart +++ b/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/animate_camera.dart @@ -21,7 +21,7 @@ class AnimateCameraPage extends GoogleMapExampleAppPage { } class AnimateCamera extends StatefulWidget { - const AnimateCamera({Key? key}) : super(key: key); + const AnimateCamera({super.key}); @override State createState() => AnimateCameraState(); } diff --git a/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/example_google_map.dart b/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/example_google_map.dart index 1c1261cb5b82..e0817a55f283 100644 --- a/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/example_google_map.dart +++ b/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/example_google_map.dart @@ -213,7 +213,7 @@ class ExampleGoogleMap extends StatefulWidget { /// /// [AssertionError] will be thrown if [initialCameraPosition] is null; const ExampleGoogleMap({ - Key? key, + super.key, required this.initialCameraPosition, this.onMapCreated, this.gestureRecognizers = const >{}, @@ -247,7 +247,7 @@ class ExampleGoogleMap extends StatefulWidget { this.onCameraIdle, this.onTap, this.onLongPress, - }) : super(key: key); + }); /// Callback method for when the map is ready to be used. /// diff --git a/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/main.dart b/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/main.dart index de75162b09dd..3b1e6361b960 100644 --- a/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/main.dart +++ b/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/main.dart @@ -42,7 +42,7 @@ final List _allPages = [ /// MapsDemo is the Main Application. class MapsDemo extends StatelessWidget { /// Default Constructor - const MapsDemo({Key? key}) : super(key: key); + const MapsDemo({super.key}); void _pushPage(BuildContext context, GoogleMapExampleAppPage page) { Navigator.of(context).push(MaterialPageRoute( diff --git a/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/map_ui.dart b/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/map_ui.dart index 546cf1d08ff8..311e2267aa0c 100644 --- a/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/map_ui.dart +++ b/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/map_ui.dart @@ -27,7 +27,7 @@ class MapUiPage extends GoogleMapExampleAppPage { } class MapUiBody extends StatefulWidget { - const MapUiBody({Key? key}) : super(key: key); + const MapUiBody({super.key}); @override State createState() => MapUiBodyState(); diff --git a/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/marker_icons.dart b/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/marker_icons.dart index fe28eb680596..174055613a9e 100644 --- a/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/marker_icons.dart +++ b/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/marker_icons.dart @@ -22,7 +22,7 @@ class MarkerIconsPage extends GoogleMapExampleAppPage { } class MarkerIconsBody extends StatefulWidget { - const MarkerIconsBody({Key? key}) : super(key: key); + const MarkerIconsBody({super.key}); @override State createState() => MarkerIconsBodyState(); diff --git a/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/move_camera.dart b/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/move_camera.dart index 7f44d89518dc..b1fb55cad542 100644 --- a/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/move_camera.dart +++ b/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/move_camera.dart @@ -21,7 +21,7 @@ class MoveCameraPage extends GoogleMapExampleAppPage { } class MoveCamera extends StatefulWidget { - const MoveCamera({Key? key}) : super(key: key); + const MoveCamera({super.key}); @override State createState() => MoveCameraState(); } diff --git a/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/padding.dart b/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/padding.dart index 98be700a2af2..bfddb167d435 100644 --- a/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/padding.dart +++ b/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/padding.dart @@ -21,7 +21,7 @@ class PaddingPage extends GoogleMapExampleAppPage { } class MarkerIconsBody extends StatefulWidget { - const MarkerIconsBody({Key? key}) : super(key: key); + const MarkerIconsBody({super.key}); @override State createState() => MarkerIconsBodyState(); diff --git a/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/page.dart b/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/page.dart index eb01ab07a6f3..cb8ef54d3745 100644 --- a/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/page.dart +++ b/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/page.dart @@ -7,8 +7,7 @@ import 'package:flutter/material.dart'; abstract class GoogleMapExampleAppPage extends StatelessWidget { - const GoogleMapExampleAppPage(this.leading, this.title, {Key? key}) - : super(key: key); + const GoogleMapExampleAppPage(this.leading, this.title, {super.key}); final Widget leading; final String title; diff --git a/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_circle.dart b/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_circle.dart index 9dc5760afa1f..29be7442965c 100644 --- a/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_circle.dart +++ b/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_circle.dart @@ -21,7 +21,7 @@ class PlaceCirclePage extends GoogleMapExampleAppPage { } class PlaceCircleBody extends StatefulWidget { - const PlaceCircleBody({Key? key}) : super(key: key); + const PlaceCircleBody({super.key}); @override State createState() => PlaceCircleBodyState(); diff --git a/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_marker.dart b/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_marker.dart index 2c6c725a4fa5..9cba4975d40f 100644 --- a/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_marker.dart +++ b/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_marker.dart @@ -26,7 +26,7 @@ class PlaceMarkerPage extends GoogleMapExampleAppPage { } class PlaceMarkerBody extends StatefulWidget { - const PlaceMarkerBody({Key? key}) : super(key: key); + const PlaceMarkerBody({super.key}); @override State createState() => PlaceMarkerBodyState(); diff --git a/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_polygon.dart b/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_polygon.dart index b41cb5d3ccb1..889c38d6376b 100644 --- a/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_polygon.dart +++ b/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_polygon.dart @@ -21,7 +21,7 @@ class PlacePolygonPage extends GoogleMapExampleAppPage { } class PlacePolygonBody extends StatefulWidget { - const PlacePolygonBody({Key? key}) : super(key: key); + const PlacePolygonBody({super.key}); @override State createState() => PlacePolygonBodyState(); diff --git a/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_polyline.dart b/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_polyline.dart index 004206b9f6cc..659ef87e87f8 100644 --- a/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_polyline.dart +++ b/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_polyline.dart @@ -22,7 +22,7 @@ class PlacePolylinePage extends GoogleMapExampleAppPage { } class PlacePolylineBody extends StatefulWidget { - const PlacePolylineBody({Key? key}) : super(key: key); + const PlacePolylineBody({super.key}); @override State createState() => PlacePolylineBodyState(); diff --git a/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/scrolling_map.dart b/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/scrolling_map.dart index 7a9b75cd1224..53619992acd9 100644 --- a/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/scrolling_map.dart +++ b/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/scrolling_map.dart @@ -25,7 +25,7 @@ class ScrollingMapPage extends GoogleMapExampleAppPage { } class ScrollingMapBody extends StatelessWidget { - const ScrollingMapBody({Key? key}) : super(key: key); + const ScrollingMapBody({super.key}); @override Widget build(BuildContext context) { diff --git a/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/tile_overlay.dart b/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/tile_overlay.dart index e25ab916d8de..9122fda76ce2 100644 --- a/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/tile_overlay.dart +++ b/packages/google_maps_flutter/google_maps_flutter_ios/example/lib/tile_overlay.dart @@ -24,7 +24,7 @@ class TileOverlayPage extends GoogleMapExampleAppPage { } class TileOverlayBody extends StatefulWidget { - const TileOverlayBody({Key? key}) : super(key: key); + const TileOverlayBody({super.key}); @override State createState() => TileOverlayBodyState(); diff --git a/packages/google_maps_flutter/google_maps_flutter_ios/example/pubspec.yaml b/packages/google_maps_flutter/google_maps_flutter_ios/example/pubspec.yaml index ac27996fbc25..cc5c9ed7b16c 100644 --- a/packages/google_maps_flutter/google_maps_flutter_ios/example/pubspec.yaml +++ b/packages/google_maps_flutter/google_maps_flutter_ios/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Demonstrates how to use the google_maps_flutter plugin. publish_to: none environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/google_maps_flutter/google_maps_flutter_platform_interface/CHANGELOG.md b/packages/google_maps_flutter/google_maps_flutter_platform_interface/CHANGELOG.md index 36d02be6842b..b31d7f2d541e 100644 --- a/packages/google_maps_flutter/google_maps_flutter_platform_interface/CHANGELOG.md +++ b/packages/google_maps_flutter/google_maps_flutter_platform_interface/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 2.2.6 * Updates links for the merge of flutter/plugins into flutter/packages. diff --git a/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/events/map_event.dart b/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/events/map_event.dart index 5961406c155c..0034633b8066 100644 --- a/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/events/map_event.dart +++ b/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/events/map_event.dart @@ -76,7 +76,7 @@ class CameraMoveEvent extends MapEvent { /// Build a CameraMove Event triggered from the map represented by `mapId`. /// /// The `value` of this event is a [CameraPosition] object with the current position of the Camera. - CameraMoveEvent(int mapId, CameraPosition position) : super(mapId, position); + CameraMoveEvent(super.mapId, super.position); } /// An event fired when the Camera of a [mapId] becomes idle. @@ -90,7 +90,7 @@ class MarkerTapEvent extends MapEvent { /// Build a MarkerTap Event triggered from the map represented by `mapId`. /// /// The `value` of this event is a [MarkerId] object that represents the tapped Marker. - MarkerTapEvent(int mapId, MarkerId markerId) : super(mapId, markerId); + MarkerTapEvent(super.mapId, super.markerId); } /// An event fired when an [InfoWindow] is tapped. @@ -98,7 +98,7 @@ class InfoWindowTapEvent extends MapEvent { /// Build an InfoWindowTap Event triggered from the map represented by `mapId`. /// /// The `value` of this event is a [MarkerId] object that represents the tapped InfoWindow. - InfoWindowTapEvent(int mapId, MarkerId markerId) : super(mapId, markerId); + InfoWindowTapEvent(super.mapId, super.markerId); } /// An event fired when a [Marker] is starting to be dragged to a new [LatLng]. @@ -107,8 +107,7 @@ class MarkerDragStartEvent extends _PositionedMapEvent { /// /// The `position` on this event is the [LatLng] on which the Marker was picked up from. /// The `value` of this event is a [MarkerId] object that represents the Marker. - MarkerDragStartEvent(int mapId, LatLng position, MarkerId markerId) - : super(mapId, position, markerId); + MarkerDragStartEvent(super.mapId, super.position, super.markerId); } /// An event fired when a [Marker] is being dragged to a new [LatLng]. @@ -117,8 +116,7 @@ class MarkerDragEvent extends _PositionedMapEvent { /// /// The `position` on this event is the [LatLng] on which the Marker was dragged to. /// The `value` of this event is a [MarkerId] object that represents the Marker. - MarkerDragEvent(int mapId, LatLng position, MarkerId markerId) - : super(mapId, position, markerId); + MarkerDragEvent(super.mapId, super.position, super.markerId); } /// An event fired when a [Marker] is dragged to a new [LatLng]. @@ -127,8 +125,7 @@ class MarkerDragEndEvent extends _PositionedMapEvent { /// /// The `position` on this event is the [LatLng] on which the Marker was dropped. /// The `value` of this event is a [MarkerId] object that represents the moved Marker. - MarkerDragEndEvent(int mapId, LatLng position, MarkerId markerId) - : super(mapId, position, markerId); + MarkerDragEndEvent(super.mapId, super.position, super.markerId); } /// An event fired when a [Polyline] is tapped. @@ -136,7 +133,7 @@ class PolylineTapEvent extends MapEvent { /// Build an PolylineTap Event triggered from the map represented by `mapId`. /// /// The `value` of this event is a [PolylineId] object that represents the tapped Polyline. - PolylineTapEvent(int mapId, PolylineId polylineId) : super(mapId, polylineId); + PolylineTapEvent(super.mapId, super.polylineId); } /// An event fired when a [Polygon] is tapped. @@ -144,7 +141,7 @@ class PolygonTapEvent extends MapEvent { /// Build an PolygonTap Event triggered from the map represented by `mapId`. /// /// The `value` of this event is a [PolygonId] object that represents the tapped Polygon. - PolygonTapEvent(int mapId, PolygonId polygonId) : super(mapId, polygonId); + PolygonTapEvent(super.mapId, super.polygonId); } /// An event fired when a [Circle] is tapped. @@ -152,7 +149,7 @@ class CircleTapEvent extends MapEvent { /// Build an CircleTap Event triggered from the map represented by `mapId`. /// /// The `value` of this event is a [CircleId] object that represents the tapped Circle. - CircleTapEvent(int mapId, CircleId circleId) : super(mapId, circleId); + CircleTapEvent(super.mapId, super.circleId); } /// An event fired when a Map is tapped. diff --git a/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/circle.dart b/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/circle.dart index d9e4b2d705c9..c48a97f8c102 100644 --- a/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/circle.dart +++ b/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/circle.dart @@ -14,7 +14,7 @@ import 'types.dart'; @immutable class CircleId extends MapsObjectId { /// Creates an immutable identifier for a [Circle]. - const CircleId(String value) : super(value); + const CircleId(super.value); } /// Draws a circle on the map. diff --git a/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/circle_updates.dart b/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/circle_updates.dart index f3fdbb447c94..f8fc725c14d6 100644 --- a/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/circle_updates.dart +++ b/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/circle_updates.dart @@ -10,8 +10,8 @@ import 'types.dart'; // (Do not re-export) class CircleUpdates extends MapsObjectUpdates { /// Computes [CircleUpdates] given previous and current [Circle]s. - CircleUpdates.from(Set previous, Set current) - : super.from(previous, current, objectName: 'circle'); + CircleUpdates.from(super.previous, super.current) + : super.from(objectName: 'circle'); /// Set of Circles to be added in this update. Set get circlesToAdd => objectsToAdd; diff --git a/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/marker.dart b/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/marker.dart index 914e77a64c9f..da3f89df9f71 100644 --- a/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/marker.dart +++ b/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/marker.dart @@ -109,7 +109,7 @@ class InfoWindow { @immutable class MarkerId extends MapsObjectId { /// Creates an immutable identifier for a [Marker]. - const MarkerId(String value) : super(value); + const MarkerId(super.value); } /// Marks a geographical location on the map. diff --git a/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/marker_updates.dart b/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/marker_updates.dart index 27257c628033..4a9ca8df823a 100644 --- a/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/marker_updates.dart +++ b/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/marker_updates.dart @@ -10,8 +10,8 @@ import 'types.dart'; // (Do not re-export) class MarkerUpdates extends MapsObjectUpdates { /// Computes [MarkerUpdates] given previous and current [Marker]s. - MarkerUpdates.from(Set previous, Set current) - : super.from(previous, current, objectName: 'marker'); + MarkerUpdates.from(super.previous, super.current) + : super.from(objectName: 'marker'); /// Set of Markers to be added in this update. Set get markersToAdd => objectsToAdd; diff --git a/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/polygon.dart b/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/polygon.dart index 8653ba0ed0f6..ce78d3307155 100644 --- a/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/polygon.dart +++ b/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/polygon.dart @@ -15,7 +15,7 @@ import 'types.dart'; @immutable class PolygonId extends MapsObjectId { /// Creates an immutable identifier for a [Polygon]. - const PolygonId(String value) : super(value); + const PolygonId(super.value); } /// Draws a polygon through geographical locations on the map. diff --git a/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/polygon_updates.dart b/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/polygon_updates.dart index 8b62141ce03c..ce73e6d95238 100644 --- a/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/polygon_updates.dart +++ b/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/polygon_updates.dart @@ -10,8 +10,8 @@ import 'types.dart'; // (Do not re-export) class PolygonUpdates extends MapsObjectUpdates { /// Computes [PolygonUpdates] given previous and current [Polygon]s. - PolygonUpdates.from(Set previous, Set current) - : super.from(previous, current, objectName: 'polygon'); + PolygonUpdates.from(super.previous, super.current) + : super.from(objectName: 'polygon'); /// Set of Polygons to be added in this update. Set get polygonsToAdd => objectsToAdd; diff --git a/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/polyline.dart b/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/polyline.dart index 39e62e3c0160..cd0a64ee7b82 100644 --- a/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/polyline.dart +++ b/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/polyline.dart @@ -16,7 +16,7 @@ class PolylineId extends MapsObjectId { /// Creates an immutable object representing a [PolylineId] among [GoogleMap] polylines. /// /// An [AssertionError] will be thrown if [value] is null. - const PolylineId(String value) : super(value); + const PolylineId(super.value); } /// Draws a line through geographical locations on the map. diff --git a/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/polyline_updates.dart b/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/polyline_updates.dart index 30cd99f73229..9e2e4bb2872b 100644 --- a/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/polyline_updates.dart +++ b/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/polyline_updates.dart @@ -10,8 +10,8 @@ import 'types.dart'; // (Do not re-export) class PolylineUpdates extends MapsObjectUpdates { /// Computes [PolylineUpdates] given previous and current [Polyline]s. - PolylineUpdates.from(Set previous, Set current) - : super.from(previous, current, objectName: 'polyline'); + PolylineUpdates.from(super.previous, super.current) + : super.from(objectName: 'polyline'); /// Set of Polylines to be added in this update. Set get polylinesToAdd => objectsToAdd; diff --git a/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/tile_overlay.dart b/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/tile_overlay.dart index aaf0f800f47f..4df0fe97e42b 100644 --- a/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/tile_overlay.dart +++ b/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/tile_overlay.dart @@ -10,7 +10,7 @@ import 'types.dart'; @immutable class TileOverlayId extends MapsObjectId { /// Creates an immutable identifier for a [TileOverlay]. - const TileOverlayId(String value) : super(value); + const TileOverlayId(super.value); } /// A set of images which are displayed on top of the base map tiles. diff --git a/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/tile_overlay_updates.dart b/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/tile_overlay_updates.dart index e40db7da10fe..c6155c2442b1 100644 --- a/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/tile_overlay_updates.dart +++ b/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/tile_overlay_updates.dart @@ -7,8 +7,8 @@ import 'types.dart'; /// Update specification for a set of [TileOverlay]s. class TileOverlayUpdates extends MapsObjectUpdates { /// Computes [TileOverlayUpdates] given previous and current [TileOverlay]s. - TileOverlayUpdates.from(Set previous, Set current) - : super.from(previous, current, objectName: 'tileOverlay'); + TileOverlayUpdates.from(super.previous, super.current) + : super.from(objectName: 'tileOverlay'); /// Set of TileOverlays to be added in this update. Set get tileOverlaysToAdd => objectsToAdd; diff --git a/packages/google_maps_flutter/google_maps_flutter_platform_interface/pubspec.yaml b/packages/google_maps_flutter/google_maps_flutter_platform_interface/pubspec.yaml index 2d7f7ef899c4..12db9b17acba 100644 --- a/packages/google_maps_flutter/google_maps_flutter_platform_interface/pubspec.yaml +++ b/packages/google_maps_flutter/google_maps_flutter_platform_interface/pubspec.yaml @@ -7,7 +7,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 2.2.6 environment: - sdk: '>=2.12.0 <3.0.0' + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/google_maps_flutter/google_maps_flutter_platform_interface/test/types/maps_object_updates_test.dart b/packages/google_maps_flutter/google_maps_flutter_platform_interface/test/types/maps_object_updates_test.dart index 414196b8333c..8608873b25b8 100644 --- a/packages/google_maps_flutter/google_maps_flutter_platform_interface/test/types/maps_object_updates_test.dart +++ b/packages/google_maps_flutter/google_maps_flutter_platform_interface/test/types/maps_object_updates_test.dart @@ -10,9 +10,8 @@ import 'package:google_maps_flutter_platform_interface/src/types/utils/maps_obje import 'test_maps_object.dart'; class TestMapsObjectUpdate extends MapsObjectUpdates { - TestMapsObjectUpdate.from( - Set previous, Set current) - : super.from(previous, current, objectName: 'testObject'); + TestMapsObjectUpdate.from(super.previous, super.current) + : super.from(objectName: 'testObject'); } void main() { diff --git a/packages/google_maps_flutter/google_maps_flutter_platform_interface/test/types/test_maps_object.dart b/packages/google_maps_flutter/google_maps_flutter_platform_interface/test/types/test_maps_object.dart index 0da077dbc300..17676a259b28 100644 --- a/packages/google_maps_flutter/google_maps_flutter_platform_interface/test/types/test_maps_object.dart +++ b/packages/google_maps_flutter/google_maps_flutter_platform_interface/test/types/test_maps_object.dart @@ -41,7 +41,6 @@ class TestMapsObject implements MapsObject { } class TestMapsObjectUpdate extends MapsObjectUpdates { - TestMapsObjectUpdate.from( - Set previous, Set current) - : super.from(previous, current, objectName: 'testObject'); + TestMapsObjectUpdate.from(super.previous, super.current) + : super.from(objectName: 'testObject'); } diff --git a/packages/google_maps_flutter/google_maps_flutter_web/CHANGELOG.md b/packages/google_maps_flutter/google_maps_flutter_web/CHANGELOG.md index 9dbf42c10ad1..e85d2687ec98 100644 --- a/packages/google_maps_flutter/google_maps_flutter_web/CHANGELOG.md +++ b/packages/google_maps_flutter/google_maps_flutter_web/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 0.4.0+6 * Updates links for the merge of flutter/plugins into flutter/packages. diff --git a/packages/google_maps_flutter/google_maps_flutter_web/example/integration_test/projection_test.dart b/packages/google_maps_flutter/google_maps_flutter_web/example/integration_test/projection_test.dart index 481caa72ccdd..57763d47f934 100644 --- a/packages/google_maps_flutter/google_maps_flutter_web/example/integration_test/projection_test.dart +++ b/packages/google_maps_flutter/google_maps_flutter_web/example/integration_test/projection_test.dart @@ -262,8 +262,8 @@ class CenteredMap extends StatelessWidget { required this.initialCamera, required this.size, required this.onMapCreated, - Key? key, - }) : super(key: key); + super.key, + }); /// A function that receives the [GoogleMapController] of the Map widget once initialized. final void Function(GoogleMapController)? onMapCreated; diff --git a/packages/google_maps_flutter/google_maps_flutter_web/example/lib/main.dart b/packages/google_maps_flutter/google_maps_flutter_web/example/lib/main.dart index e93a60e19906..6bd536109f7a 100644 --- a/packages/google_maps_flutter/google_maps_flutter_web/example/lib/main.dart +++ b/packages/google_maps_flutter/google_maps_flutter_web/example/lib/main.dart @@ -11,7 +11,7 @@ void main() { /// App for testing class MyApp extends StatefulWidget { /// Constructor with key - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override State createState() => _MyAppState(); diff --git a/packages/google_maps_flutter/google_maps_flutter_web/example/pubspec.yaml b/packages/google_maps_flutter/google_maps_flutter_web/example/pubspec.yaml index 43f67946464a..0bbda961352a 100644 --- a/packages/google_maps_flutter/google_maps_flutter_web/example/pubspec.yaml +++ b/packages/google_maps_flutter/google_maps_flutter_web/example/pubspec.yaml @@ -3,7 +3,7 @@ publish_to: none # Tests require flutter beta or greater to run. environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/google_maps_flutter/google_maps_flutter_web/pubspec.yaml b/packages/google_maps_flutter/google_maps_flutter_web/pubspec.yaml index acc7e8b160c6..93a796fe0c2f 100644 --- a/packages/google_maps_flutter/google_maps_flutter_web/pubspec.yaml +++ b/packages/google_maps_flutter/google_maps_flutter_web/pubspec.yaml @@ -5,7 +5,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 0.4.0+6 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" flutter: diff --git a/packages/google_sign_in/google_sign_in/CHANGELOG.md b/packages/google_sign_in/google_sign_in/CHANGELOG.md index a587e7a50432..0723487fd90a 100644 --- a/packages/google_sign_in/google_sign_in/CHANGELOG.md +++ b/packages/google_sign_in/google_sign_in/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 6.0.2 * Updates iOS minimum version in README. diff --git a/packages/google_sign_in/google_sign_in/example/lib/main.dart b/packages/google_sign_in/google_sign_in/example/lib/main.dart index 271069e6e96b..523ead71262a 100644 --- a/packages/google_sign_in/google_sign_in/example/lib/main.dart +++ b/packages/google_sign_in/google_sign_in/example/lib/main.dart @@ -30,7 +30,7 @@ void main() { } class SignInDemo extends StatefulWidget { - const SignInDemo({Key? key}) : super(key: key); + const SignInDemo({super.key}); @override State createState() => SignInDemoState(); diff --git a/packages/google_sign_in/google_sign_in/example/pubspec.yaml b/packages/google_sign_in/google_sign_in/example/pubspec.yaml index f1cd3828bd87..4e444bd2fc70 100644 --- a/packages/google_sign_in/google_sign_in/example/pubspec.yaml +++ b/packages/google_sign_in/google_sign_in/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Example of Google Sign-In plugin. publish_to: none environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/google_sign_in/google_sign_in/lib/widgets.dart b/packages/google_sign_in/google_sign_in/lib/widgets.dart index f7ae5f9a6e5f..8d67e60739b3 100644 --- a/packages/google_sign_in/google_sign_in/lib/widgets.dart +++ b/packages/google_sign_in/google_sign_in/lib/widgets.dart @@ -22,13 +22,12 @@ class GoogleUserCircleAvatar extends StatelessWidget { /// in place of a profile photo, or a default profile photo if the user's /// identity does not specify a `displayName`. const GoogleUserCircleAvatar({ - Key? key, + super.key, required this.identity, this.placeholderPhotoUrl, this.foregroundColor, this.backgroundColor, - }) : assert(identity != null), - super(key: key); + }) : assert(identity != null); /// A regular expression that matches against the "size directive" path /// segment of Google profile image URLs. diff --git a/packages/google_sign_in/google_sign_in/pubspec.yaml b/packages/google_sign_in/google_sign_in/pubspec.yaml index f65a9e3b891c..8fc4d1e3ff83 100644 --- a/packages/google_sign_in/google_sign_in/pubspec.yaml +++ b/packages/google_sign_in/google_sign_in/pubspec.yaml @@ -6,7 +6,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 6.0.2 environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" flutter: diff --git a/packages/google_sign_in/google_sign_in_android/CHANGELOG.md b/packages/google_sign_in/google_sign_in_android/CHANGELOG.md index 1ba0c96974ca..f5875d3ae9c8 100644 --- a/packages/google_sign_in/google_sign_in_android/CHANGELOG.md +++ b/packages/google_sign_in/google_sign_in_android/CHANGELOG.md @@ -1,5 +1,6 @@ ## NEXT +* Aligns Dart and Flutter SDK constraints. * Updates compileSdkVersion to 33. ## 6.1.7 diff --git a/packages/google_sign_in/google_sign_in_android/example/lib/main.dart b/packages/google_sign_in/google_sign_in_android/example/lib/main.dart index 90d7da831ef8..9403f62f619e 100644 --- a/packages/google_sign_in/google_sign_in_android/example/lib/main.dart +++ b/packages/google_sign_in/google_sign_in_android/example/lib/main.dart @@ -22,7 +22,7 @@ void main() { } class SignInDemo extends StatefulWidget { - const SignInDemo({Key? key}) : super(key: key); + const SignInDemo({super.key}); @override State createState() => SignInDemoState(); diff --git a/packages/google_sign_in/google_sign_in_android/example/pubspec.yaml b/packages/google_sign_in/google_sign_in_android/example/pubspec.yaml index 72d8b82a9bf5..fb3061eab1a4 100644 --- a/packages/google_sign_in/google_sign_in_android/example/pubspec.yaml +++ b/packages/google_sign_in/google_sign_in_android/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Example of Google Sign-In plugin. publish_to: none environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/google_sign_in/google_sign_in_android/pubspec.yaml b/packages/google_sign_in/google_sign_in_android/pubspec.yaml index d1e845209011..7c33d63c87e6 100644 --- a/packages/google_sign_in/google_sign_in_android/pubspec.yaml +++ b/packages/google_sign_in/google_sign_in_android/pubspec.yaml @@ -5,7 +5,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 6.1.7 environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" flutter: diff --git a/packages/google_sign_in/google_sign_in_ios/CHANGELOG.md b/packages/google_sign_in/google_sign_in_ios/CHANGELOG.md index f69503005926..d9b69962a52a 100644 --- a/packages/google_sign_in/google_sign_in_ios/CHANGELOG.md +++ b/packages/google_sign_in/google_sign_in_ios/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 5.6.0 * Updates minimum Flutter version to 3.3 and iOS 11. diff --git a/packages/google_sign_in/google_sign_in_ios/example/lib/main.dart b/packages/google_sign_in/google_sign_in_ios/example/lib/main.dart index 33deb3d388c8..81790d193c73 100644 --- a/packages/google_sign_in/google_sign_in_ios/example/lib/main.dart +++ b/packages/google_sign_in/google_sign_in_ios/example/lib/main.dart @@ -22,7 +22,7 @@ void main() { } class SignInDemo extends StatefulWidget { - const SignInDemo({Key? key}) : super(key: key); + const SignInDemo({super.key}); @override State createState() => SignInDemoState(); diff --git a/packages/google_sign_in/google_sign_in_ios/example/pubspec.yaml b/packages/google_sign_in/google_sign_in_ios/example/pubspec.yaml index e2e643d1805d..d341d0a96689 100644 --- a/packages/google_sign_in/google_sign_in_ios/example/pubspec.yaml +++ b/packages/google_sign_in/google_sign_in_ios/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Example of Google Sign-In plugin. publish_to: none environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/google_sign_in/google_sign_in_platform_interface/CHANGELOG.md b/packages/google_sign_in/google_sign_in_platform_interface/CHANGELOG.md index 69f500176921..751bf5b65dc1 100644 --- a/packages/google_sign_in/google_sign_in_platform_interface/CHANGELOG.md +++ b/packages/google_sign_in/google_sign_in_platform_interface/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 2.3.1 * Updates links for the merge of flutter/plugins into flutter/packages. diff --git a/packages/google_sign_in/google_sign_in_platform_interface/pubspec.yaml b/packages/google_sign_in/google_sign_in_platform_interface/pubspec.yaml index f33bf8aa8844..105a034f6953 100644 --- a/packages/google_sign_in/google_sign_in_platform_interface/pubspec.yaml +++ b/packages/google_sign_in/google_sign_in_platform_interface/pubspec.yaml @@ -7,7 +7,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 2.3.1 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/google_sign_in/google_sign_in_web/CHANGELOG.md b/packages/google_sign_in/google_sign_in_web/CHANGELOG.md index 03aaf987f1d9..eeb787254b42 100644 --- a/packages/google_sign_in/google_sign_in_web/CHANGELOG.md +++ b/packages/google_sign_in/google_sign_in_web/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 0.11.0+1 * Updates links for the merge of flutter/plugins into flutter/packages. diff --git a/packages/google_sign_in/google_sign_in_web/example/lib/main.dart b/packages/google_sign_in/google_sign_in_web/example/lib/main.dart index b23015c811e8..5c03f639fb22 100644 --- a/packages/google_sign_in/google_sign_in_web/example/lib/main.dart +++ b/packages/google_sign_in/google_sign_in_web/example/lib/main.dart @@ -11,7 +11,7 @@ void main() { /// App for testing class MyApp extends StatefulWidget { /// Default Constructor - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override State createState() => _MyAppState(); diff --git a/packages/google_sign_in/google_sign_in_web/example/pubspec.yaml b/packages/google_sign_in/google_sign_in_web/example/pubspec.yaml index c73953374696..3c475cf6d046 100644 --- a/packages/google_sign_in/google_sign_in_web/example/pubspec.yaml +++ b/packages/google_sign_in/google_sign_in_web/example/pubspec.yaml @@ -2,7 +2,7 @@ name: google_sign_in_web_integration_tests publish_to: none environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/image_picker/image_picker/CHANGELOG.md b/packages/image_picker/image_picker/CHANGELOG.md index f0d3345f395e..7969e21c8566 100644 --- a/packages/image_picker/image_picker/CHANGELOG.md +++ b/packages/image_picker/image_picker/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 0.8.6+4 * Updates iOS minimum version in README. diff --git a/packages/image_picker/image_picker/example/lib/main.dart b/packages/image_picker/image_picker/example/lib/main.dart index f4f6546b1a98..5e31db338d17 100755 --- a/packages/image_picker/image_picker/example/lib/main.dart +++ b/packages/image_picker/image_picker/example/lib/main.dart @@ -17,7 +17,7 @@ void main() { } class MyApp extends StatelessWidget { - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override Widget build(BuildContext context) { @@ -29,7 +29,7 @@ class MyApp extends StatelessWidget { } class MyHomePage extends StatefulWidget { - const MyHomePage({Key? key, this.title}) : super(key: key); + const MyHomePage({super.key, this.title}); final String? title; @@ -423,7 +423,7 @@ typedef OnPickImageCallback = void Function( double? maxWidth, double? maxHeight, int? quality); class AspectRatioVideo extends StatefulWidget { - const AspectRatioVideo(this.controller, {Key? key}) : super(key: key); + const AspectRatioVideo(this.controller, {super.key}); final VideoPlayerController? controller; diff --git a/packages/image_picker/image_picker/example/pubspec.yaml b/packages/image_picker/image_picker/example/pubspec.yaml index 3d97877498dc..11d9837e6193 100755 --- a/packages/image_picker/image_picker/example/pubspec.yaml +++ b/packages/image_picker/image_picker/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Demonstrates how to use the image_picker plugin. publish_to: none environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/image_picker/image_picker/pubspec.yaml b/packages/image_picker/image_picker/pubspec.yaml index 98328379d8ac..86a8280e06b7 100755 --- a/packages/image_picker/image_picker/pubspec.yaml +++ b/packages/image_picker/image_picker/pubspec.yaml @@ -6,7 +6,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 0.8.6+4 environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" flutter: diff --git a/packages/image_picker/image_picker_android/CHANGELOG.md b/packages/image_picker/image_picker_android/CHANGELOG.md index 03935b9b47ec..6c3b22c77027 100644 --- a/packages/image_picker/image_picker_android/CHANGELOG.md +++ b/packages/image_picker/image_picker_android/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 0.8.5+9 * Fixes compilation warnings. diff --git a/packages/image_picker/image_picker_android/example/lib/main.dart b/packages/image_picker/image_picker_android/example/lib/main.dart index 34f9114332f5..2e5b2e5cbd8d 100755 --- a/packages/image_picker/image_picker_android/example/lib/main.dart +++ b/packages/image_picker/image_picker_android/example/lib/main.dart @@ -23,7 +23,7 @@ void main() { } class MyApp extends StatelessWidget { - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override Widget build(BuildContext context) { @@ -35,7 +35,7 @@ class MyApp extends StatelessWidget { } class MyHomePage extends StatefulWidget { - const MyHomePage({Key? key, this.title}) : super(key: key); + const MyHomePage({super.key, this.title}); final String? title; @@ -449,7 +449,7 @@ typedef OnPickImageCallback = void Function( double? maxWidth, double? maxHeight, int? quality); class AspectRatioVideo extends StatefulWidget { - const AspectRatioVideo(this.controller, {Key? key}) : super(key: key); + const AspectRatioVideo(this.controller, {super.key}); final VideoPlayerController? controller; diff --git a/packages/image_picker/image_picker_android/example/pubspec.yaml b/packages/image_picker/image_picker_android/example/pubspec.yaml index bfeac3de14d5..5b0f3e09774e 100755 --- a/packages/image_picker/image_picker_android/example/pubspec.yaml +++ b/packages/image_picker/image_picker_android/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Demonstrates how to use the image_picker plugin. publish_to: none environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/image_picker/image_picker_android/pubspec.yaml b/packages/image_picker/image_picker_android/pubspec.yaml index de62db1d86da..55bf2296a29f 100755 --- a/packages/image_picker/image_picker_android/pubspec.yaml +++ b/packages/image_picker/image_picker_android/pubspec.yaml @@ -6,7 +6,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 0.8.5+9 environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" flutter: diff --git a/packages/image_picker/image_picker_for_web/CHANGELOG.md b/packages/image_picker/image_picker_for_web/CHANGELOG.md index 9bca6e234c5a..9f815427a0d0 100644 --- a/packages/image_picker/image_picker_for_web/CHANGELOG.md +++ b/packages/image_picker/image_picker_for_web/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 2.1.11 * Updates links for the merge of flutter/plugins into flutter/packages. diff --git a/packages/image_picker/image_picker_for_web/example/lib/main.dart b/packages/image_picker/image_picker_for_web/example/lib/main.dart index 87422953de6a..b5cc8b7102d8 100644 --- a/packages/image_picker/image_picker_for_web/example/lib/main.dart +++ b/packages/image_picker/image_picker_for_web/example/lib/main.dart @@ -11,7 +11,7 @@ void main() { /// App for testing class MyApp extends StatefulWidget { /// Default Constructor - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override State createState() => _MyAppState(); diff --git a/packages/image_picker/image_picker_for_web/example/pubspec.yaml b/packages/image_picker/image_picker_for_web/example/pubspec.yaml index 96ce0dfa70c7..a3de0f55dcf6 100644 --- a/packages/image_picker/image_picker_for_web/example/pubspec.yaml +++ b/packages/image_picker/image_picker_for_web/example/pubspec.yaml @@ -2,7 +2,7 @@ name: image_picker_for_web_integration_tests publish_to: none environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/image_picker/image_picker_for_web/pubspec.yaml b/packages/image_picker/image_picker_for_web/pubspec.yaml index 3a7f9081ae47..7e49f53253dc 100644 --- a/packages/image_picker/image_picker_for_web/pubspec.yaml +++ b/packages/image_picker/image_picker_for_web/pubspec.yaml @@ -5,7 +5,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 2.1.11 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" flutter: diff --git a/packages/image_picker/image_picker_ios/CHANGELOG.md b/packages/image_picker/image_picker_ios/CHANGELOG.md index 62cd3c0a80b8..0f0c289f8908 100644 --- a/packages/image_picker/image_picker_ios/CHANGELOG.md +++ b/packages/image_picker/image_picker_ios/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 0.8.7 * Updates minimum Flutter version to 3.3 and iOS 11. diff --git a/packages/image_picker/image_picker_ios/example/lib/main.dart b/packages/image_picker/image_picker_ios/example/lib/main.dart index 440f2f1d7cca..7f8956a9f2c5 100755 --- a/packages/image_picker/image_picker_ios/example/lib/main.dart +++ b/packages/image_picker/image_picker_ios/example/lib/main.dart @@ -17,7 +17,7 @@ void main() { } class MyApp extends StatelessWidget { - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override Widget build(BuildContext context) { @@ -29,7 +29,7 @@ class MyApp extends StatelessWidget { } class MyHomePage extends StatefulWidget { - const MyHomePage({Key? key, this.title}) : super(key: key); + const MyHomePage({super.key, this.title}); final String? title; @@ -378,7 +378,7 @@ typedef OnPickImageCallback = void Function( double? maxWidth, double? maxHeight, int? quality); class AspectRatioVideo extends StatefulWidget { - const AspectRatioVideo(this.controller, {Key? key}) : super(key: key); + const AspectRatioVideo(this.controller, {super.key}); final VideoPlayerController? controller; diff --git a/packages/image_picker/image_picker_ios/example/pubspec.yaml b/packages/image_picker/image_picker_ios/example/pubspec.yaml index bebe9bb04648..11353d8bb486 100755 --- a/packages/image_picker/image_picker_ios/example/pubspec.yaml +++ b/packages/image_picker/image_picker_ios/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Demonstrates how to use the image_picker plugin. publish_to: none environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/image_picker/image_picker_platform_interface/CHANGELOG.md b/packages/image_picker/image_picker_platform_interface/CHANGELOG.md index 644d31a81bad..2977e2921ba7 100644 --- a/packages/image_picker/image_picker_platform_interface/CHANGELOG.md +++ b/packages/image_picker/image_picker_platform_interface/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 2.6.3 * Updates links for the merge of flutter/plugins into flutter/packages. diff --git a/packages/image_picker/image_picker_platform_interface/lib/src/types/picked_file/io.dart b/packages/image_picker/image_picker_platform_interface/lib/src/types/picked_file/io.dart index 500cc65a0870..4d4789e80c94 100644 --- a/packages/image_picker/image_picker_platform_interface/lib/src/types/picked_file/io.dart +++ b/packages/image_picker/image_picker_platform_interface/lib/src/types/picked_file/io.dart @@ -11,9 +11,7 @@ import './base.dart'; /// A PickedFile backed by a dart:io File. class PickedFile extends PickedFileBase { /// Construct a PickedFile object backed by a dart:io File. - PickedFile(String path) - : _file = File(path), - super(path); + PickedFile(super.path) : _file = File(path); final File _file; diff --git a/packages/image_picker/image_picker_platform_interface/lib/src/types/picked_file/unsupported.dart b/packages/image_picker/image_picker_platform_interface/lib/src/types/picked_file/unsupported.dart index ad3ed6a4f86a..a98846c3c4c5 100644 --- a/packages/image_picker/image_picker_platform_interface/lib/src/types/picked_file/unsupported.dart +++ b/packages/image_picker/image_picker_platform_interface/lib/src/types/picked_file/unsupported.dart @@ -11,7 +11,7 @@ class PickedFile extends PickedFileBase { /// Construct a PickedFile object, from its `bytes`. /// /// Optionally, you may pass a `path`. See caveats in [PickedFileBase.path]. - PickedFile(String path) : super(path) { + PickedFile(super.path) { throw UnimplementedError( 'PickedFile is not available in your current platform.'); } diff --git a/packages/image_picker/image_picker_platform_interface/pubspec.yaml b/packages/image_picker/image_picker_platform_interface/pubspec.yaml index 7b12d990ff39..b0f4701e797d 100644 --- a/packages/image_picker/image_picker_platform_interface/pubspec.yaml +++ b/packages/image_picker/image_picker_platform_interface/pubspec.yaml @@ -7,7 +7,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 2.6.3 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/image_picker/image_picker_windows/CHANGELOG.md b/packages/image_picker/image_picker_windows/CHANGELOG.md index f0f9b933ec7c..6e7fe2d0758b 100644 --- a/packages/image_picker/image_picker_windows/CHANGELOG.md +++ b/packages/image_picker/image_picker_windows/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 0.1.0+5 * Updates links for the merge of flutter/plugins into flutter/packages. diff --git a/packages/image_picker/image_picker_windows/example/lib/main.dart b/packages/image_picker/image_picker_windows/example/lib/main.dart index dae45a5e2957..b9ee929977db 100644 --- a/packages/image_picker/image_picker_windows/example/lib/main.dart +++ b/packages/image_picker/image_picker_windows/example/lib/main.dart @@ -16,7 +16,7 @@ void main() { } class MyApp extends StatelessWidget { - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override Widget build(BuildContext context) { @@ -28,7 +28,7 @@ class MyApp extends StatelessWidget { } class MyHomePage extends StatefulWidget { - const MyHomePage({Key? key, this.title}) : super(key: key); + const MyHomePage({super.key, this.title}); final String? title; @@ -368,7 +368,7 @@ typedef OnPickImageCallback = void Function( double? maxWidth, double? maxHeight, int? quality); class AspectRatioVideo extends StatefulWidget { - const AspectRatioVideo(this.controller, {Key? key}) : super(key: key); + const AspectRatioVideo(this.controller, {super.key}); final VideoPlayerController? controller; diff --git a/packages/image_picker/image_picker_windows/example/pubspec.yaml b/packages/image_picker/image_picker_windows/example/pubspec.yaml index bdbd182d3fc5..4130ec84ff0f 100644 --- a/packages/image_picker/image_picker_windows/example/pubspec.yaml +++ b/packages/image_picker/image_picker_windows/example/pubspec.yaml @@ -4,7 +4,7 @@ publish_to: 'none' version: 1.0.0 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/image_picker/image_picker_windows/pubspec.yaml b/packages/image_picker/image_picker_windows/pubspec.yaml index 52f5ba6892b7..bd776bfb1ea5 100644 --- a/packages/image_picker/image_picker_windows/pubspec.yaml +++ b/packages/image_picker/image_picker_windows/pubspec.yaml @@ -5,7 +5,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 0.1.0+5 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" flutter: diff --git a/packages/in_app_purchase/in_app_purchase/CHANGELOG.md b/packages/in_app_purchase/in_app_purchase/CHANGELOG.md index cfd117da7701..ce33145e2ef3 100644 --- a/packages/in_app_purchase/in_app_purchase/CHANGELOG.md +++ b/packages/in_app_purchase/in_app_purchase/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 3.1.5 * Updates links for the merge of flutter/plugins into flutter/packages. diff --git a/packages/in_app_purchase/in_app_purchase/example/pubspec.yaml b/packages/in_app_purchase/in_app_purchase/example/pubspec.yaml index 8037b1a4c1ef..96822129c1d5 100644 --- a/packages/in_app_purchase/in_app_purchase/example/pubspec.yaml +++ b/packages/in_app_purchase/in_app_purchase/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Demonstrates how to use the in_app_purchase plugin. publish_to: none environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/in_app_purchase/in_app_purchase/pubspec.yaml b/packages/in_app_purchase/in_app_purchase/pubspec.yaml index 88c3e235f19b..c5165ece1446 100644 --- a/packages/in_app_purchase/in_app_purchase/pubspec.yaml +++ b/packages/in_app_purchase/in_app_purchase/pubspec.yaml @@ -5,7 +5,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 3.1.5 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" flutter: diff --git a/packages/in_app_purchase/in_app_purchase_android/CHANGELOG.md b/packages/in_app_purchase/in_app_purchase_android/CHANGELOG.md index 9be6cec880c3..8fe528c7ce7a 100644 --- a/packages/in_app_purchase/in_app_purchase_android/CHANGELOG.md +++ b/packages/in_app_purchase/in_app_purchase_android/CHANGELOG.md @@ -1,5 +1,6 @@ ## NEXT +* Aligns Dart and Flutter SDK constraints. * Updates compileSdkVersion to 33. ## 0.2.4+2 diff --git a/packages/in_app_purchase/in_app_purchase_android/example/lib/main.dart b/packages/in_app_purchase/in_app_purchase_android/example/lib/main.dart index 97e71b038be3..bd1955526654 100644 --- a/packages/in_app_purchase/in_app_purchase_android/example/lib/main.dart +++ b/packages/in_app_purchase/in_app_purchase_android/example/lib/main.dart @@ -458,7 +458,7 @@ class _MyAppState extends State<_MyApp> { } class _FeatureCard extends StatelessWidget { - _FeatureCard({Key? key}) : super(key: key); + _FeatureCard(); final InAppPurchaseAndroidPlatformAddition addition = InAppPurchasePlatformAddition.instance! diff --git a/packages/in_app_purchase/in_app_purchase_android/example/pubspec.yaml b/packages/in_app_purchase/in_app_purchase_android/example/pubspec.yaml index d5a76b848093..e20ddafa750e 100644 --- a/packages/in_app_purchase/in_app_purchase_android/example/pubspec.yaml +++ b/packages/in_app_purchase/in_app_purchase_android/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Demonstrates how to use the in_app_purchase_android plugin. publish_to: none environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/in_app_purchase/in_app_purchase_android/lib/src/types/google_play_product_details.dart b/packages/in_app_purchase/in_app_purchase_android/lib/src/types/google_play_product_details.dart index 7affa242055b..66dbf61236cb 100644 --- a/packages/in_app_purchase/in_app_purchase_android/lib/src/types/google_play_product_details.dart +++ b/packages/in_app_purchase/in_app_purchase_android/lib/src/types/google_play_product_details.dart @@ -12,23 +12,15 @@ class GooglePlayProductDetails extends ProductDetails { /// Creates a new Google Play specific product details object with the /// provided details. GooglePlayProductDetails({ - required String id, - required String title, - required String description, - required String price, - required double rawPrice, - required String currencyCode, + required super.id, + required super.title, + required super.description, + required super.price, + required super.rawPrice, + required super.currencyCode, required this.skuDetails, - required String currencySymbol, - }) : super( - id: id, - title: title, - description: description, - price: price, - rawPrice: rawPrice, - currencyCode: currencyCode, - currencySymbol: currencySymbol, - ); + required super.currencySymbol, + }); /// Generate a [GooglePlayProductDetails] object based on an Android /// [SkuDetailsWrapper] object. diff --git a/packages/in_app_purchase/in_app_purchase_android/lib/src/types/google_play_purchase_details.dart b/packages/in_app_purchase/in_app_purchase_android/lib/src/types/google_play_purchase_details.dart index 42c61a38ddd4..9bf3fc5563bb 100644 --- a/packages/in_app_purchase/in_app_purchase_android/lib/src/types/google_play_purchase_details.dart +++ b/packages/in_app_purchase/in_app_purchase_android/lib/src/types/google_play_purchase_details.dart @@ -12,19 +12,13 @@ class GooglePlayPurchaseDetails extends PurchaseDetails { /// Creates a new Google Play specific purchase details object with the /// provided details. GooglePlayPurchaseDetails({ - String? purchaseID, - required String productID, - required PurchaseVerificationData verificationData, - required String? transactionDate, + super.purchaseID, + required super.productID, + required super.verificationData, + required super.transactionDate, required this.billingClientPurchase, - required PurchaseStatus status, - }) : super( - productID: productID, - purchaseID: purchaseID, - transactionDate: transactionDate, - verificationData: verificationData, - status: status, - ) { + required super.status, + }) { pendingCompletePurchase = !billingClientPurchase.isAcknowledged; } diff --git a/packages/in_app_purchase/in_app_purchase_android/lib/src/types/google_play_purchase_param.dart b/packages/in_app_purchase/in_app_purchase_android/lib/src/types/google_play_purchase_param.dart index bcf0ad62a245..2f91667b7735 100644 --- a/packages/in_app_purchase/in_app_purchase_android/lib/src/types/google_play_purchase_param.dart +++ b/packages/in_app_purchase/in_app_purchase_android/lib/src/types/google_play_purchase_param.dart @@ -10,13 +10,10 @@ import '../../in_app_purchase_android.dart'; class GooglePlayPurchaseParam extends PurchaseParam { /// Creates a new [GooglePlayPurchaseParam] object with the given data. GooglePlayPurchaseParam({ - required ProductDetails productDetails, - String? applicationUserName, + required super.productDetails, + super.applicationUserName, this.changeSubscriptionParam, - }) : super( - productDetails: productDetails, - applicationUserName: applicationUserName, - ); + }); /// The 'changeSubscriptionParam' containing information for upgrading or /// downgrading an existing subscription. diff --git a/packages/in_app_purchase/in_app_purchase_android/pubspec.yaml b/packages/in_app_purchase/in_app_purchase_android/pubspec.yaml index cc9b31016fe2..f2dc02d16851 100644 --- a/packages/in_app_purchase/in_app_purchase_android/pubspec.yaml +++ b/packages/in_app_purchase/in_app_purchase_android/pubspec.yaml @@ -5,7 +5,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 0.2.4+2 environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" flutter: diff --git a/packages/in_app_purchase/in_app_purchase_platform_interface/CHANGELOG.md b/packages/in_app_purchase/in_app_purchase_platform_interface/CHANGELOG.md index c3e31abdb543..341218cd99dd 100644 --- a/packages/in_app_purchase/in_app_purchase_platform_interface/CHANGELOG.md +++ b/packages/in_app_purchase/in_app_purchase_platform_interface/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 1.3.3 * Updates links for the merge of flutter/plugins into flutter/packages. diff --git a/packages/in_app_purchase/in_app_purchase_platform_interface/pubspec.yaml b/packages/in_app_purchase/in_app_purchase_platform_interface/pubspec.yaml index f1c426b5e6af..41df0b566b02 100644 --- a/packages/in_app_purchase/in_app_purchase_platform_interface/pubspec.yaml +++ b/packages/in_app_purchase/in_app_purchase_platform_interface/pubspec.yaml @@ -7,7 +7,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 1.3.3 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/in_app_purchase/in_app_purchase_storekit/CHANGELOG.md b/packages/in_app_purchase/in_app_purchase_storekit/CHANGELOG.md index b63a5efb88b1..983d7bc9fd81 100644 --- a/packages/in_app_purchase/in_app_purchase_storekit/CHANGELOG.md +++ b/packages/in_app_purchase/in_app_purchase_storekit/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 0.3.6+1 * Updates links for the merge of flutter/plugins into flutter/packages. diff --git a/packages/in_app_purchase/in_app_purchase_storekit/example/pubspec.yaml b/packages/in_app_purchase/in_app_purchase_storekit/example/pubspec.yaml index b06dd6a9a594..bf0580d32f5d 100644 --- a/packages/in_app_purchase/in_app_purchase_storekit/example/pubspec.yaml +++ b/packages/in_app_purchase/in_app_purchase_storekit/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Demonstrates how to use the in_app_purchase_storekit plugin. publish_to: none environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/ios_platform_images/CHANGELOG.md b/packages/ios_platform_images/CHANGELOG.md index 5ae9a0637a65..cb089dacdd9d 100644 --- a/packages/ios_platform_images/CHANGELOG.md +++ b/packages/ios_platform_images/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 0.2.2+1 * Updates links for the merge of flutter/plugins into flutter/packages. diff --git a/packages/ios_platform_images/example/lib/main.dart b/packages/ios_platform_images/example/lib/main.dart index 043bc69c944d..9c80c3281245 100644 --- a/packages/ios_platform_images/example/lib/main.dart +++ b/packages/ios_platform_images/example/lib/main.dart @@ -10,7 +10,7 @@ void main() => runApp(const MyApp()); /// Main widget for the example app. class MyApp extends StatefulWidget { /// Default Constructor - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override State createState() => _MyAppState(); diff --git a/packages/ios_platform_images/example/pubspec.yaml b/packages/ios_platform_images/example/pubspec.yaml index 49b09bd8b637..d0378e5cf1dd 100644 --- a/packages/ios_platform_images/example/pubspec.yaml +++ b/packages/ios_platform_images/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Demonstrates how to use the ios_platform_images plugin. publish_to: none environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/local_auth/local_auth/CHANGELOG.md b/packages/local_auth/local_auth/CHANGELOG.md index 9a243e831048..584daa88a163 100644 --- a/packages/local_auth/local_auth/CHANGELOG.md +++ b/packages/local_auth/local_auth/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 2.1.6 * Updates iOS minimum version in README. diff --git a/packages/local_auth/local_auth/example/lib/main.dart b/packages/local_auth/local_auth/example/lib/main.dart index 146a5d92b29c..8a99ee56b485 100644 --- a/packages/local_auth/local_auth/example/lib/main.dart +++ b/packages/local_auth/local_auth/example/lib/main.dart @@ -15,7 +15,7 @@ void main() { } class MyApp extends StatefulWidget { - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override State createState() => _MyAppState(); diff --git a/packages/local_auth/local_auth/example/lib/readme_excerpts.dart b/packages/local_auth/local_auth/example/lib/readme_excerpts.dart index ccccf5c50ae9..8ae4a3c34178 100644 --- a/packages/local_auth/local_auth/example/lib/readme_excerpts.dart +++ b/packages/local_auth/local_auth/example/lib/readme_excerpts.dart @@ -28,7 +28,7 @@ void main() { } class MyApp extends StatefulWidget { - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override State createState() => _MyAppState(); diff --git a/packages/local_auth/local_auth/example/pubspec.yaml b/packages/local_auth/local_auth/example/pubspec.yaml index e02065b6d16f..792ef2910799 100644 --- a/packages/local_auth/local_auth/example/pubspec.yaml +++ b/packages/local_auth/local_auth/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Demonstrates how to use the local_auth plugin. publish_to: none environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/local_auth/local_auth/pubspec.yaml b/packages/local_auth/local_auth/pubspec.yaml index 340648521d0e..4385775975fe 100644 --- a/packages/local_auth/local_auth/pubspec.yaml +++ b/packages/local_auth/local_auth/pubspec.yaml @@ -6,7 +6,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 2.1.6 environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" flutter: diff --git a/packages/local_auth/local_auth_android/CHANGELOG.md b/packages/local_auth/local_auth_android/CHANGELOG.md index bf94a765a780..f73c2d18ef49 100644 --- a/packages/local_auth/local_auth_android/CHANGELOG.md +++ b/packages/local_auth/local_auth_android/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 1.0.20 * Fixes compilation warnings. diff --git a/packages/local_auth/local_auth_android/example/lib/main.dart b/packages/local_auth/local_auth_android/example/lib/main.dart index f245af973981..db30c01cd4f1 100644 --- a/packages/local_auth/local_auth_android/example/lib/main.dart +++ b/packages/local_auth/local_auth_android/example/lib/main.dart @@ -16,7 +16,7 @@ void main() { } class MyApp extends StatefulWidget { - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override State createState() => _MyAppState(); diff --git a/packages/local_auth/local_auth_android/example/pubspec.yaml b/packages/local_auth/local_auth_android/example/pubspec.yaml index fddd6b50f815..1a509814b8bf 100644 --- a/packages/local_auth/local_auth_android/example/pubspec.yaml +++ b/packages/local_auth/local_auth_android/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Demonstrates how to use the local_auth_android plugin. publish_to: none environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/local_auth/local_auth_android/pubspec.yaml b/packages/local_auth/local_auth_android/pubspec.yaml index e1b9fc8a10e1..e626f4d9eee9 100644 --- a/packages/local_auth/local_auth_android/pubspec.yaml +++ b/packages/local_auth/local_auth_android/pubspec.yaml @@ -5,7 +5,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 1.0.20 environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" flutter: diff --git a/packages/local_auth/local_auth_ios/CHANGELOG.md b/packages/local_auth/local_auth_ios/CHANGELOG.md index 74a1fac64fb0..fb45d50441ed 100644 --- a/packages/local_auth/local_auth_ios/CHANGELOG.md +++ b/packages/local_auth/local_auth_ios/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 1.1.0 * Updates minimum Flutter version to 3.3 and iOS 11. diff --git a/packages/local_auth/local_auth_ios/example/lib/main.dart b/packages/local_auth/local_auth_ios/example/lib/main.dart index 63b317e54c7b..b7acc99f9d7d 100644 --- a/packages/local_auth/local_auth_ios/example/lib/main.dart +++ b/packages/local_auth/local_auth_ios/example/lib/main.dart @@ -16,7 +16,7 @@ void main() { } class MyApp extends StatefulWidget { - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override State createState() => _MyAppState(); diff --git a/packages/local_auth/local_auth_ios/example/pubspec.yaml b/packages/local_auth/local_auth_ios/example/pubspec.yaml index 21b17fae7288..552b39e19f76 100644 --- a/packages/local_auth/local_auth_ios/example/pubspec.yaml +++ b/packages/local_auth/local_auth_ios/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Demonstrates how to use the local_auth_ios plugin. publish_to: none environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/local_auth/local_auth_platform_interface/CHANGELOG.md b/packages/local_auth/local_auth_platform_interface/CHANGELOG.md index fd96a6e6801f..201ffb116746 100644 --- a/packages/local_auth/local_auth_platform_interface/CHANGELOG.md +++ b/packages/local_auth/local_auth_platform_interface/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 1.0.7 * Updates links for the merge of flutter/plugins into flutter/packages. diff --git a/packages/local_auth/local_auth_platform_interface/pubspec.yaml b/packages/local_auth/local_auth_platform_interface/pubspec.yaml index 2af38f9ded27..086f04679e36 100644 --- a/packages/local_auth/local_auth_platform_interface/pubspec.yaml +++ b/packages/local_auth/local_auth_platform_interface/pubspec.yaml @@ -7,7 +7,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 1.0.7 environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/local_auth/local_auth_windows/CHANGELOG.md b/packages/local_auth/local_auth_windows/CHANGELOG.md index ebd63e987218..119e4867d464 100644 --- a/packages/local_auth/local_auth_windows/CHANGELOG.md +++ b/packages/local_auth/local_auth_windows/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 1.0.6 * Updates links for the merge of flutter/plugins into flutter/packages. diff --git a/packages/local_auth/local_auth_windows/example/lib/main.dart b/packages/local_auth/local_auth_windows/example/lib/main.dart index 3205cdb81bc8..e2e7747d0e59 100644 --- a/packages/local_auth/local_auth_windows/example/lib/main.dart +++ b/packages/local_auth/local_auth_windows/example/lib/main.dart @@ -16,7 +16,7 @@ void main() { } class MyApp extends StatefulWidget { - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override State createState() => _MyAppState(); diff --git a/packages/local_auth/local_auth_windows/example/pubspec.yaml b/packages/local_auth/local_auth_windows/example/pubspec.yaml index 1a1387a0875d..f709eb10bb49 100644 --- a/packages/local_auth/local_auth_windows/example/pubspec.yaml +++ b/packages/local_auth/local_auth_windows/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Demonstrates how to use the local_auth_windows plugin. publish_to: none environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/local_auth/local_auth_windows/pubspec.yaml b/packages/local_auth/local_auth_windows/pubspec.yaml index a513b74db8c6..aa637ff30744 100644 --- a/packages/local_auth/local_auth_windows/pubspec.yaml +++ b/packages/local_auth/local_auth_windows/pubspec.yaml @@ -5,7 +5,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 1.0.6 environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" flutter: diff --git a/packages/palette_generator/CHANGELOG.md b/packages/palette_generator/CHANGELOG.md index 9475317b1b3e..ec6f4e8baf77 100644 --- a/packages/palette_generator/CHANGELOG.md +++ b/packages/palette_generator/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 0.3.3+2 * Ignores lint warnings from new changes in Flutter master. diff --git a/packages/palette_generator/example/lib/main.dart b/packages/palette_generator/example/lib/main.dart index 94fd9628258f..67cf07dae8d2 100644 --- a/packages/palette_generator/example/lib/main.dart +++ b/packages/palette_generator/example/lib/main.dart @@ -19,7 +19,7 @@ const Color _kPlaceholderColor = Color(0x80404040); /// The main Application class. class MyApp extends StatelessWidget { /// Creates the main Application class. - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); // This widget is the root of your application. @override @@ -43,11 +43,11 @@ class MyApp extends StatelessWidget { class ImageColors extends StatefulWidget { /// Creates the home page. const ImageColors({ - Key? key, + super.key, this.title, required this.image, this.imageSize, - }) : super(key: key); + }); /// The title that is shown at the top of the page. final String? title; @@ -194,7 +194,7 @@ class PaletteSwatches extends StatelessWidget { /// /// The [generator] is optional. If it is null, then the display will /// just be an empty container. - const PaletteSwatches({Key? key, this.generator}) : super(key: key); + const PaletteSwatches({super.key, this.generator}); /// The [PaletteGenerator] that contains all of the swatches that we're going /// to display. @@ -244,10 +244,10 @@ class PaletteSwatch extends StatelessWidget { /// then the swatch will show a placeholder instead, to indicate /// that there is no color. const PaletteSwatch({ - Key? key, + super.key, this.color, this.label, - }) : super(key: key); + }); /// The color of the swatch. final Color? color; diff --git a/packages/palette_generator/example/pubspec.yaml b/packages/palette_generator/example/pubspec.yaml index 22c12c08a912..c8f94803c591 100644 --- a/packages/palette_generator/example/pubspec.yaml +++ b/packages/palette_generator/example/pubspec.yaml @@ -4,7 +4,7 @@ publish_to: none version: 0.1.0 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/palette_generator/pubspec.yaml b/packages/palette_generator/pubspec.yaml index 16bf6822f2db..9e52d8b04d24 100644 --- a/packages/palette_generator/pubspec.yaml +++ b/packages/palette_generator/pubspec.yaml @@ -5,7 +5,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 0.3.3+2 environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/path_provider/path_provider/CHANGELOG.md b/packages/path_provider/path_provider/CHANGELOG.md index 85d2b1e4e74a..a77624320831 100644 --- a/packages/path_provider/path_provider/CHANGELOG.md +++ b/packages/path_provider/path_provider/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 2.0.13 * Updates links for the merge of flutter/plugins into flutter/packages. diff --git a/packages/path_provider/path_provider/example/lib/main.dart b/packages/path_provider/path_provider/example/lib/main.dart index cb9c2eb1798d..2863d2d43ac9 100644 --- a/packages/path_provider/path_provider/example/lib/main.dart +++ b/packages/path_provider/path_provider/example/lib/main.dart @@ -14,7 +14,7 @@ void main() { } class MyApp extends StatelessWidget { - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override Widget build(BuildContext context) { @@ -29,7 +29,7 @@ class MyApp extends StatelessWidget { } class MyHomePage extends StatefulWidget { - const MyHomePage({Key? key, required this.title}) : super(key: key); + const MyHomePage({super.key, required this.title}); final String title; @override diff --git a/packages/path_provider/path_provider/example/pubspec.yaml b/packages/path_provider/path_provider/example/pubspec.yaml index ffb878bcf146..5279c1aa8844 100644 --- a/packages/path_provider/path_provider/example/pubspec.yaml +++ b/packages/path_provider/path_provider/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Demonstrates how to use the path_provider plugin. publish_to: none environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/path_provider/path_provider/pubspec.yaml b/packages/path_provider/path_provider/pubspec.yaml index 88597efe2b4a..c72515487b07 100644 --- a/packages/path_provider/path_provider/pubspec.yaml +++ b/packages/path_provider/path_provider/pubspec.yaml @@ -5,7 +5,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 2.0.13 environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" flutter: diff --git a/packages/path_provider/path_provider_android/CHANGELOG.md b/packages/path_provider/path_provider_android/CHANGELOG.md index 2f783fa39426..a401af2d4013 100644 --- a/packages/path_provider/path_provider_android/CHANGELOG.md +++ b/packages/path_provider/path_provider_android/CHANGELOG.md @@ -1,5 +1,6 @@ ## NEXT +* Aligns Dart and Flutter SDK constraints. * Updates compileSdkVersion to 33. ## 2.0.23 diff --git a/packages/path_provider/path_provider_android/example/lib/main.dart b/packages/path_provider/path_provider_android/example/lib/main.dart index fc9424a33542..d0bc13bc0643 100644 --- a/packages/path_provider/path_provider_android/example/lib/main.dart +++ b/packages/path_provider/path_provider_android/example/lib/main.dart @@ -12,7 +12,7 @@ void main() { } class MyApp extends StatelessWidget { - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override Widget build(BuildContext context) { @@ -27,7 +27,7 @@ class MyApp extends StatelessWidget { } class MyHomePage extends StatefulWidget { - const MyHomePage({Key? key, required this.title}) : super(key: key); + const MyHomePage({super.key, required this.title}); final String title; @override diff --git a/packages/path_provider/path_provider_android/example/pubspec.yaml b/packages/path_provider/path_provider_android/example/pubspec.yaml index e53c44ffda68..fe4dd5ea2cc1 100644 --- a/packages/path_provider/path_provider_android/example/pubspec.yaml +++ b/packages/path_provider/path_provider_android/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Demonstrates how to use the path_provider plugin. publish_to: none environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/path_provider/path_provider_android/pubspec.yaml b/packages/path_provider/path_provider_android/pubspec.yaml index f35203045a71..b40856d10dbb 100644 --- a/packages/path_provider/path_provider_android/pubspec.yaml +++ b/packages/path_provider/path_provider_android/pubspec.yaml @@ -5,7 +5,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 2.0.23 environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" flutter: diff --git a/packages/path_provider/path_provider_foundation/CHANGELOG.md b/packages/path_provider/path_provider_foundation/CHANGELOG.md index b38276f7b71d..7a34c4775b48 100644 --- a/packages/path_provider/path_provider_foundation/CHANGELOG.md +++ b/packages/path_provider/path_provider_foundation/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 2.1.2 * Updates links for the merge of flutter/plugins into flutter/packages. diff --git a/packages/path_provider/path_provider_foundation/example/lib/main.dart b/packages/path_provider/path_provider_foundation/example/lib/main.dart index cc3fc13de89f..9f7ff6240324 100644 --- a/packages/path_provider/path_provider_foundation/example/lib/main.dart +++ b/packages/path_provider/path_provider_foundation/example/lib/main.dart @@ -13,7 +13,7 @@ void main() { /// Sample app class MyApp extends StatefulWidget { - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override State createState() => _MyAppState(); diff --git a/packages/path_provider/path_provider_foundation/example/pubspec.yaml b/packages/path_provider/path_provider_foundation/example/pubspec.yaml index fcf599564659..a9d87a7192b3 100644 --- a/packages/path_provider/path_provider_foundation/example/pubspec.yaml +++ b/packages/path_provider/path_provider_foundation/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Demonstrates how to use the path_provider plugin. publish_to: none environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/path_provider/path_provider_foundation/pubspec.yaml b/packages/path_provider/path_provider_foundation/pubspec.yaml index ca40ec597d74..21578bcf1092 100644 --- a/packages/path_provider/path_provider_foundation/pubspec.yaml +++ b/packages/path_provider/path_provider_foundation/pubspec.yaml @@ -5,7 +5,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 2.1.2 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" flutter: diff --git a/packages/path_provider/path_provider_linux/CHANGELOG.md b/packages/path_provider/path_provider_linux/CHANGELOG.md index ef4a64d7f22a..531649eaef6b 100644 --- a/packages/path_provider/path_provider_linux/CHANGELOG.md +++ b/packages/path_provider/path_provider_linux/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 2.1.9 * Updates links for the merge of flutter/plugins into flutter/packages. diff --git a/packages/path_provider/path_provider_linux/example/lib/main.dart b/packages/path_provider/path_provider_linux/example/lib/main.dart index d7201468f6c1..254360cae4ee 100644 --- a/packages/path_provider/path_provider_linux/example/lib/main.dart +++ b/packages/path_provider/path_provider_linux/example/lib/main.dart @@ -13,7 +13,7 @@ void main() { /// Sample app class MyApp extends StatefulWidget { /// Default Constructor - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override State createState() => _MyAppState(); diff --git a/packages/path_provider/path_provider_linux/example/pubspec.yaml b/packages/path_provider/path_provider_linux/example/pubspec.yaml index a305575bb13b..a1e8dd5055e2 100644 --- a/packages/path_provider/path_provider_linux/example/pubspec.yaml +++ b/packages/path_provider/path_provider_linux/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Demonstrates how to use the path_provider_linux plugin. publish_to: "none" environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/path_provider/path_provider_linux/pubspec.yaml b/packages/path_provider/path_provider_linux/pubspec.yaml index f43c1fdc009f..a482108f2d12 100644 --- a/packages/path_provider/path_provider_linux/pubspec.yaml +++ b/packages/path_provider/path_provider_linux/pubspec.yaml @@ -5,7 +5,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 2.1.9 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" flutter: diff --git a/packages/path_provider/path_provider_platform_interface/CHANGELOG.md b/packages/path_provider/path_provider_platform_interface/CHANGELOG.md index 34d0069546e5..7dbca936bc3f 100644 --- a/packages/path_provider/path_provider_platform_interface/CHANGELOG.md +++ b/packages/path_provider/path_provider_platform_interface/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 2.0.6 * Updates links for the merge of flutter/plugins into flutter/packages. diff --git a/packages/path_provider/path_provider_platform_interface/pubspec.yaml b/packages/path_provider/path_provider_platform_interface/pubspec.yaml index 51e5677c23a1..f3e95d23cb56 100644 --- a/packages/path_provider/path_provider_platform_interface/pubspec.yaml +++ b/packages/path_provider/path_provider_platform_interface/pubspec.yaml @@ -7,7 +7,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 2.0.6 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/path_provider/path_provider_windows/CHANGELOG.md b/packages/path_provider/path_provider_windows/CHANGELOG.md index 97da12fc72c0..473c53c629a9 100644 --- a/packages/path_provider/path_provider_windows/CHANGELOG.md +++ b/packages/path_provider/path_provider_windows/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 2.1.4 * Updates links for the merge of flutter/plugins into flutter/packages. diff --git a/packages/path_provider/path_provider_windows/example/lib/main.dart b/packages/path_provider/path_provider_windows/example/lib/main.dart index 4c63d245a16a..e910732eb868 100644 --- a/packages/path_provider/path_provider_windows/example/lib/main.dart +++ b/packages/path_provider/path_provider_windows/example/lib/main.dart @@ -13,7 +13,7 @@ void main() { /// Sample app class MyApp extends StatefulWidget { - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override State createState() => _MyAppState(); diff --git a/packages/path_provider/path_provider_windows/example/pubspec.yaml b/packages/path_provider/path_provider_windows/example/pubspec.yaml index 306f20c354df..e60c133fbb6c 100644 --- a/packages/path_provider/path_provider_windows/example/pubspec.yaml +++ b/packages/path_provider/path_provider_windows/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Demonstrates how to use the path_provider plugin. publish_to: none environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/pigeon/CHANGELOG.md b/packages/pigeon/CHANGELOG.md index 6cbcfe6f4f55..222ed9450ab9 100644 --- a/packages/pigeon/CHANGELOG.md +++ b/packages/pigeon/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 9.0.4 * Adds parameter to generate Kotlin code in example README. diff --git a/packages/pigeon/mock_handler_tester/pubspec.yaml b/packages/pigeon/mock_handler_tester/pubspec.yaml index 7474ba346048..fa4d398f0686 100644 --- a/packages/pigeon/mock_handler_tester/pubspec.yaml +++ b/packages/pigeon/mock_handler_tester/pubspec.yaml @@ -4,7 +4,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev version: 1.0.0+1 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/pubspec.yaml b/packages/pigeon/platform_tests/alternate_language_test_plugin/pubspec.yaml index 5c4d893cd6ec..8766ac208d72 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/pubspec.yaml +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/pubspec.yaml @@ -5,7 +5,7 @@ publish_to: none environment: sdk: '>=2.18.0 <3.0.0' - flutter: ">=3.0.0" + flutter: ">=3.3.0" flutter: plugin: diff --git a/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/pubspec.yaml b/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/pubspec.yaml index a35a1dccc3c1..b2f3507ad0f9 100644 --- a/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/pubspec.yaml +++ b/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/pubspec.yaml @@ -3,7 +3,7 @@ description: Unit test scaffold for null safe Flutter projects. publish_to: none # Remove this line if you wish to publish to pub.dev version: 1.0.0+1 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/pubspec.yaml b/packages/pigeon/platform_tests/shared_test_plugin_code/pubspec.yaml index 6bba54dcf9d0..e9a8ff0c5853 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/pubspec.yaml +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/pubspec.yaml @@ -5,7 +5,7 @@ publish_to: none environment: sdk: '>=2.18.0 <3.0.0' - flutter: ">=3.0.0" + flutter: ">=3.3.0" dependencies: flutter: diff --git a/packages/pigeon/platform_tests/test_plugin/pubspec.yaml b/packages/pigeon/platform_tests/test_plugin/pubspec.yaml index a26e2d8bb01e..046b54e8dcc7 100644 --- a/packages/pigeon/platform_tests/test_plugin/pubspec.yaml +++ b/packages/pigeon/platform_tests/test_plugin/pubspec.yaml @@ -5,7 +5,7 @@ publish_to: none environment: sdk: '>=2.18.0 <3.0.0' - flutter: ">=3.0.0" + flutter: ">=3.3.0" flutter: plugin: diff --git a/packages/pigeon/pubspec.yaml b/packages/pigeon/pubspec.yaml index 803e347a75f8..b3df00f62118 100644 --- a/packages/pigeon/pubspec.yaml +++ b/packages/pigeon/pubspec.yaml @@ -5,7 +5,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 9.0.4 # This must match the version in lib/generator_tools.dart environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/pointer_interceptor/CHANGELOG.md b/packages/pointer_interceptor/CHANGELOG.md index 2acb1fe7b809..368fd6d6caca 100644 --- a/packages/pointer_interceptor/CHANGELOG.md +++ b/packages/pointer_interceptor/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 0.9.3+4 * Removes const keyword from PointerInterceptor's constructor. diff --git a/packages/pointer_interceptor/example/lib/main.dart b/packages/pointer_interceptor/example/lib/main.dart index 9e759f339d93..3fd84539ff76 100644 --- a/packages/pointer_interceptor/example/lib/main.dart +++ b/packages/pointer_interceptor/example/lib/main.dart @@ -53,7 +53,7 @@ void main() { /// Main app class MyApp extends StatelessWidget { /// Creates main app. - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override Widget build(BuildContext context) { @@ -67,7 +67,7 @@ class MyApp extends StatelessWidget { /// First page class MyHomePage extends StatefulWidget { /// Creates first page. - const MyHomePage({Key? key}) : super(key: key); + const MyHomePage({super.key}); @override State createState() => _MyHomePageState(); @@ -202,7 +202,7 @@ class _MyHomePageState extends State { /// Initialize the videoPlayer, then render the corresponding view... class HtmlElement extends StatelessWidget { /// Constructor - const HtmlElement({Key? key, required this.onClick}) : super(key: key); + const HtmlElement({super.key, required this.onClick}); /// A function to run when the element is clicked final VoidCallback onClick; diff --git a/packages/pointer_interceptor/example/pubspec.yaml b/packages/pointer_interceptor/example/pubspec.yaml index 493fe3143e7c..d6823b703cf6 100644 --- a/packages/pointer_interceptor/example/pubspec.yaml +++ b/packages/pointer_interceptor/example/pubspec.yaml @@ -4,7 +4,7 @@ publish_to: 'none' version: 1.0.0 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/pointer_interceptor/lib/src/mobile.dart b/packages/pointer_interceptor/lib/src/mobile.dart index 20d76c150688..8d645ffbcfe3 100644 --- a/packages/pointer_interceptor/lib/src/mobile.dart +++ b/packages/pointer_interceptor/lib/src/mobile.dart @@ -12,8 +12,8 @@ class PointerInterceptor extends StatelessWidget { required this.child, this.intercepting = true, this.debug = false, - Key? key, - }) : super(key: key); + super.key, + }); /// The `Widget` that is being wrapped by this `PointerInterceptor`. final Widget child; diff --git a/packages/pointer_interceptor/lib/src/web.dart b/packages/pointer_interceptor/lib/src/web.dart index bd6f37c15074..50edc414b4aa 100644 --- a/packages/pointer_interceptor/lib/src/web.dart +++ b/packages/pointer_interceptor/lib/src/web.dart @@ -40,8 +40,8 @@ class PointerInterceptor extends StatelessWidget { required this.child, this.intercepting = true, this.debug = false, - Key? key, - }) : super(key: key) { + super.key, + }) { if (!_registered) { _register(); } diff --git a/packages/pointer_interceptor/pubspec.yaml b/packages/pointer_interceptor/pubspec.yaml index 19073240a3e5..fa2db8de22a2 100644 --- a/packages/pointer_interceptor/pubspec.yaml +++ b/packages/pointer_interceptor/pubspec.yaml @@ -5,7 +5,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 0.9.3+4 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/quick_actions/quick_actions/CHANGELOG.md b/packages/quick_actions/quick_actions/CHANGELOG.md index fabedd271545..8687f72e6387 100644 --- a/packages/quick_actions/quick_actions/CHANGELOG.md +++ b/packages/quick_actions/quick_actions/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 1.0.2 * Updates links for the merge of flutter/plugins into flutter/packages. diff --git a/packages/quick_actions/quick_actions/example/lib/main.dart b/packages/quick_actions/quick_actions/example/lib/main.dart index cafbf0c351d9..759f7f132158 100644 --- a/packages/quick_actions/quick_actions/example/lib/main.dart +++ b/packages/quick_actions/quick_actions/example/lib/main.dart @@ -12,7 +12,7 @@ void main() { } class MyApp extends StatelessWidget { - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override Widget build(BuildContext context) { @@ -27,7 +27,7 @@ class MyApp extends StatelessWidget { } class MyHomePage extends StatefulWidget { - const MyHomePage({Key? key}) : super(key: key); + const MyHomePage({super.key}); @override State createState() => _MyHomePageState(); diff --git a/packages/quick_actions/quick_actions/example/pubspec.yaml b/packages/quick_actions/quick_actions/example/pubspec.yaml index c629384ee5e2..c9698f5044cb 100644 --- a/packages/quick_actions/quick_actions/example/pubspec.yaml +++ b/packages/quick_actions/quick_actions/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Demonstrates how to use the quick_actions plugin. publish_to: none environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/quick_actions/quick_actions/pubspec.yaml b/packages/quick_actions/quick_actions/pubspec.yaml index aab24bf97a7d..e5320315fe5e 100644 --- a/packages/quick_actions/quick_actions/pubspec.yaml +++ b/packages/quick_actions/quick_actions/pubspec.yaml @@ -6,7 +6,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 1.0.2 environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" flutter: diff --git a/packages/quick_actions/quick_actions_android/CHANGELOG.md b/packages/quick_actions/quick_actions_android/CHANGELOG.md index 8f36d6406e73..d748026b4e4f 100644 --- a/packages/quick_actions/quick_actions_android/CHANGELOG.md +++ b/packages/quick_actions/quick_actions_android/CHANGELOG.md @@ -1,5 +1,6 @@ ## NEXT +* Aligns Dart and Flutter SDK constraints. * Updates compileSdkVersion to 33. ## 1.0.1 diff --git a/packages/quick_actions/quick_actions_android/example/lib/main.dart b/packages/quick_actions/quick_actions_android/example/lib/main.dart index 8f66e69ffb4e..e39e6afef539 100644 --- a/packages/quick_actions/quick_actions_android/example/lib/main.dart +++ b/packages/quick_actions/quick_actions_android/example/lib/main.dart @@ -12,7 +12,7 @@ void main() { } class MyApp extends StatelessWidget { - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override Widget build(BuildContext context) { @@ -27,7 +27,7 @@ class MyApp extends StatelessWidget { } class MyHomePage extends StatefulWidget { - const MyHomePage({Key? key}) : super(key: key); + const MyHomePage({super.key}); @override State createState() => _MyHomePageState(); diff --git a/packages/quick_actions/quick_actions_android/example/pubspec.yaml b/packages/quick_actions/quick_actions_android/example/pubspec.yaml index 48a6fe9fd1a5..659e906d6e6e 100644 --- a/packages/quick_actions/quick_actions_android/example/pubspec.yaml +++ b/packages/quick_actions/quick_actions_android/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Demonstrates how to use the quick_actions plugin. publish_to: none environment: - sdk: ">=2.15.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/quick_actions/quick_actions_android/pubspec.yaml b/packages/quick_actions/quick_actions_android/pubspec.yaml index 574cc9aea283..b4efe2d6418a 100644 --- a/packages/quick_actions/quick_actions_android/pubspec.yaml +++ b/packages/quick_actions/quick_actions_android/pubspec.yaml @@ -5,7 +5,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 1.0.1 environment: - sdk: ">=2.15.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" flutter: diff --git a/packages/quick_actions/quick_actions_ios/CHANGELOG.md b/packages/quick_actions/quick_actions_ios/CHANGELOG.md index 949dbbecdbf1..07e48c562235 100644 --- a/packages/quick_actions/quick_actions_ios/CHANGELOG.md +++ b/packages/quick_actions/quick_actions_ios/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 1.0.3 * Updates links for the merge of flutter/plugins into flutter/packages. diff --git a/packages/quick_actions/quick_actions_ios/example/lib/main.dart b/packages/quick_actions/quick_actions_ios/example/lib/main.dart index 008917b724e0..f2c8d61b8def 100644 --- a/packages/quick_actions/quick_actions_ios/example/lib/main.dart +++ b/packages/quick_actions/quick_actions_ios/example/lib/main.dart @@ -12,7 +12,7 @@ void main() { } class MyApp extends StatelessWidget { - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override Widget build(BuildContext context) { @@ -27,7 +27,7 @@ class MyApp extends StatelessWidget { } class MyHomePage extends StatefulWidget { - const MyHomePage({Key? key}) : super(key: key); + const MyHomePage({super.key}); @override State createState() => _MyHomePageState(); diff --git a/packages/quick_actions/quick_actions_ios/example/pubspec.yaml b/packages/quick_actions/quick_actions_ios/example/pubspec.yaml index af0697022ea3..ed234faeadca 100644 --- a/packages/quick_actions/quick_actions_ios/example/pubspec.yaml +++ b/packages/quick_actions/quick_actions_ios/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Demonstrates how to use the quick_actions plugin. publish_to: none environment: - sdk: ">=2.15.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/quick_actions/quick_actions_ios/pubspec.yaml b/packages/quick_actions/quick_actions_ios/pubspec.yaml index a93ff0e5b609..8ebe8ee001e5 100644 --- a/packages/quick_actions/quick_actions_ios/pubspec.yaml +++ b/packages/quick_actions/quick_actions_ios/pubspec.yaml @@ -5,7 +5,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 1.0.3 environment: - sdk: ">=2.15.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" flutter: diff --git a/packages/quick_actions/quick_actions_platform_interface/CHANGELOG.md b/packages/quick_actions/quick_actions_platform_interface/CHANGELOG.md index 07213800873e..5d5083835eb6 100644 --- a/packages/quick_actions/quick_actions_platform_interface/CHANGELOG.md +++ b/packages/quick_actions/quick_actions_platform_interface/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 1.0.4 * Updates links for the merge of flutter/plugins into flutter/packages. diff --git a/packages/quick_actions/quick_actions_platform_interface/pubspec.yaml b/packages/quick_actions/quick_actions_platform_interface/pubspec.yaml index 331d7bb784f5..983b0c45866b 100644 --- a/packages/quick_actions/quick_actions_platform_interface/pubspec.yaml +++ b/packages/quick_actions/quick_actions_platform_interface/pubspec.yaml @@ -7,7 +7,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 1.0.4 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/rfw/CHANGELOG.md b/packages/rfw/CHANGELOG.md index fa07c6b17cb9..21e198516c55 100644 --- a/packages/rfw/CHANGELOG.md +++ b/packages/rfw/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 1.0.8 * Removes use of `runtimeType.toString()`. diff --git a/packages/rfw/example/hello/lib/main.dart b/packages/rfw/example/hello/lib/main.dart index dd035a021963..9998030808f5 100644 --- a/packages/rfw/example/hello/lib/main.dart +++ b/packages/rfw/example/hello/lib/main.dart @@ -17,7 +17,7 @@ void main() { } class Example extends StatefulWidget { - const Example({Key? key}) : super(key: key); + const Example({super.key}); @override State createState() => _ExampleState(); diff --git a/packages/rfw/example/hello/pubspec.yaml b/packages/rfw/example/hello/pubspec.yaml index 5998183815f0..96bdb7a50ab4 100644 --- a/packages/rfw/example/hello/pubspec.yaml +++ b/packages/rfw/example/hello/pubspec.yaml @@ -4,7 +4,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev version: 1.0.0+1 environment: - sdk: ">=2.13.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/rfw/example/local/lib/main.dart b/packages/rfw/example/local/lib/main.dart index d9f36b735ebd..fc6bd0944aba 100644 --- a/packages/rfw/example/local/lib/main.dart +++ b/packages/rfw/example/local/lib/main.dart @@ -17,7 +17,7 @@ void main() { } class Example extends StatefulWidget { - const Example({Key? key}) : super(key: key); + const Example({super.key}); @override State createState() => _ExampleState(); diff --git a/packages/rfw/example/local/pubspec.yaml b/packages/rfw/example/local/pubspec.yaml index e09a6595632a..9b0a273dfda9 100644 --- a/packages/rfw/example/local/pubspec.yaml +++ b/packages/rfw/example/local/pubspec.yaml @@ -4,7 +4,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev version: 1.0.0+1 environment: - sdk: ">=2.13.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/rfw/example/remote/lib/main.dart b/packages/rfw/example/remote/lib/main.dart index 6826ca9ebce0..b6d409c8389e 100644 --- a/packages/rfw/example/remote/lib/main.dart +++ b/packages/rfw/example/remote/lib/main.dart @@ -18,7 +18,7 @@ void main() { } class Example extends StatefulWidget { - const Example({Key? key}) : super(key: key); + const Example({super.key}); @override State createState() => _ExampleState(); diff --git a/packages/rfw/example/remote/pubspec.yaml b/packages/rfw/example/remote/pubspec.yaml index e9ea76c06a31..dbd2ffcc970e 100644 --- a/packages/rfw/example/remote/pubspec.yaml +++ b/packages/rfw/example/remote/pubspec.yaml @@ -4,7 +4,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev version: 1.0.0+1 environment: - sdk: ">=2.13.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/rfw/example/wasm/lib/main.dart b/packages/rfw/example/wasm/lib/main.dart index 0bfe074667b6..f30cfd456df8 100644 --- a/packages/rfw/example/wasm/lib/main.dart +++ b/packages/rfw/example/wasm/lib/main.dart @@ -24,7 +24,7 @@ void main() { } class Example extends StatefulWidget { - const Example({Key? key}) : super(key: key); + const Example({super.key}); @override State createState() => _ExampleState(); diff --git a/packages/rfw/example/wasm/pubspec.yaml b/packages/rfw/example/wasm/pubspec.yaml index de28d1c07422..441d328189fa 100644 --- a/packages/rfw/example/wasm/pubspec.yaml +++ b/packages/rfw/example/wasm/pubspec.yaml @@ -4,7 +4,7 @@ publish_to: none # Remove this line if you wish to publish to pub.dev version: 1.0.0+1 environment: - sdk: ">=2.13.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/rfw/lib/src/dart/model.dart b/packages/rfw/lib/src/dart/model.dart index 11cd965bec1b..f525f44fb72e 100644 --- a/packages/rfw/lib/src/dart/model.dart +++ b/packages/rfw/lib/src/dart/model.dart @@ -256,7 +256,7 @@ class ArgsReference extends Reference { /// Wraps the given [parts] as an [ArgsReference]. /// /// The [parts] must not be mutated after the object is created. - const ArgsReference(List parts): super(parts); + const ArgsReference(super.parts); /// Binds the arguments reference to a specific set of arguments. /// @@ -304,7 +304,7 @@ class DataReference extends Reference { /// Wraps the given [parts] as a [DataReference]. /// /// The [parts] must not be mutated after the object is created. - const DataReference(List parts): super(parts); + const DataReference(super.parts); /// Creates a new [DataRefererence] that indexes even deeper than this one. /// @@ -433,7 +433,7 @@ abstract class AnyStateReference extends Reference { /// const constructors so that they can be used in const expressions. /// /// The [parts] must not be mutated after the object is created. - const AnyStateReference(List parts): super(parts); + const AnyStateReference(super.parts); } /// Unbound reference to remote widget's state. @@ -443,7 +443,7 @@ class StateReference extends AnyStateReference { /// Wraps the given [parts] as a [StateReference]. /// /// The [parts] must not be mutated after the object is created. - const StateReference(List parts): super(parts); + const StateReference(super.parts); /// Binds the state reference to a specific widget (identified by depth). /// diff --git a/packages/rfw/lib/src/dart/text.dart b/packages/rfw/lib/src/dart/text.dart index 531442b95de8..edd490d31bef 100644 --- a/packages/rfw/lib/src/dart/text.dart +++ b/packages/rfw/lib/src/dart/text.dart @@ -659,7 +659,7 @@ class _StringToken extends _Token { } class _EofToken extends _Token { - _EofToken(int line, int column): super(line, column); + _EofToken(super.line, super.column); @override String toString() => ''; diff --git a/packages/rfw/lib/src/flutter/argument_decoders.dart b/packages/rfw/lib/src/flutter/argument_decoders.dart index 855441328f1f..2b627c35be4e 100644 --- a/packages/rfw/lib/src/flutter/argument_decoders.dart +++ b/packages/rfw/lib/src/flutter/argument_decoders.dart @@ -27,11 +27,11 @@ class AnimationDefaults extends InheritedWidget { /// The [duration] and [curve] are optional, and default to 200ms and /// [Curves.fastOutSlowIn] respectively. const AnimationDefaults({ - Key? key, + super.key, this.duration, this.curve, - required Widget child, - }) : super(key: key, child: child); + required super.child, + }); /// The default duration that [ArgumentsDecoder.duration] should use. /// @@ -223,7 +223,7 @@ class ArgumentDecoders { /// Returns a [Color] from the specified integer. /// - /// Returns null if it's not an integer; otherwise, passes it to the [new + /// Returns null if it's not an integer; otherwise, passes it to the [ /// Color] constructor. static Color? color(DataSource source, List key) { final int? value = source.v(key); @@ -323,7 +323,7 @@ class ArgumentDecoders { /// Returns a [Color] from the specified integer. /// - /// Returns black if it's not an integer; otherwise, passes it to the [new + /// Returns black if it's not an integer; otherwise, passes it to the [ /// Color] constructor. /// /// This is useful in situations where null is not acceptable, for example, @@ -889,13 +889,13 @@ class ArgumentDecoders { /// /// If the string is null, returns null. /// - /// If there is no hyphen in the list, uses the one-argument form of [new + /// If there is no hyphen in the list, uses the one-argument form of [ /// Locale], passing the whole string. /// - /// If there is one hyphen in the list, uses the two-argument form of [new + /// If there is one hyphen in the list, uses the two-argument form of [ /// Locale], passing the parts before and after the hyphen respectively. /// - /// If there are two or more hyphens, uses the [new Locale.fromSubtags] + /// If there are two or more hyphens, uses the [Locale.fromSubtags] /// constructor. static Locale? locale(DataSource source, List key) { final String? value = source.v(key); diff --git a/packages/rfw/lib/src/flutter/remote_widget.dart b/packages/rfw/lib/src/flutter/remote_widget.dart index 83a571caf105..de76542476b9 100644 --- a/packages/rfw/lib/src/flutter/remote_widget.dart +++ b/packages/rfw/lib/src/flutter/remote_widget.dart @@ -20,7 +20,7 @@ class RemoteWidget extends StatefulWidget { /// Inserts the specified [widget] into the tree. /// /// The [onEvent] argument is optional. When omitted, events are discarded. - const RemoteWidget({ Key? key, required this.runtime, required this.widget, required this.data, this.onEvent }) : super(key: key); + const RemoteWidget({ super.key, required this.runtime, required this.widget, required this.data, this.onEvent }); /// The [Runtime] to use to render the widget specified by [widget]. /// diff --git a/packages/rfw/lib/src/flutter/runtime.dart b/packages/rfw/lib/src/flutter/runtime.dart index 8255d3ad0d1c..bf363608d373 100644 --- a/packages/rfw/lib/src/flutter/runtime.dart +++ b/packages/rfw/lib/src/flutter/runtime.dart @@ -743,7 +743,7 @@ class _CurriedSwitch extends _CurriedWidget { } class _Widget extends StatefulWidget { - const _Widget({ Key? key, required this.curriedWidget, required this.data, required this.remoteEventTarget, required this.states }) : super(key: key); + const _Widget({ required this.curriedWidget, required this.data, required this.remoteEventTarget, required this.states }); final _CurriedWidget curriedWidget; diff --git a/packages/rfw/pubspec.yaml b/packages/rfw/pubspec.yaml index 2efaa0ca53ee..6007415cc709 100644 --- a/packages/rfw/pubspec.yaml +++ b/packages/rfw/pubspec.yaml @@ -5,7 +5,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 1.0.8 environment: - sdk: ">=2.13.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/shared_preferences/shared_preferences/CHANGELOG.md b/packages/shared_preferences/shared_preferences/CHANGELOG.md index c9348dd507b1..d06b0ac450c5 100644 --- a/packages/shared_preferences/shared_preferences/CHANGELOG.md +++ b/packages/shared_preferences/shared_preferences/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 2.0.18 * Updates links for the merge of flutter/plugins into flutter/packages. diff --git a/packages/shared_preferences/shared_preferences/example/lib/main.dart b/packages/shared_preferences/shared_preferences/example/lib/main.dart index f9690395f10d..8f9dcd6d113a 100644 --- a/packages/shared_preferences/shared_preferences/example/lib/main.dart +++ b/packages/shared_preferences/shared_preferences/example/lib/main.dart @@ -14,7 +14,7 @@ void main() { } class MyApp extends StatelessWidget { - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override Widget build(BuildContext context) { @@ -26,7 +26,7 @@ class MyApp extends StatelessWidget { } class SharedPreferencesDemo extends StatefulWidget { - const SharedPreferencesDemo({Key? key}) : super(key: key); + const SharedPreferencesDemo({super.key}); @override SharedPreferencesDemoState createState() => SharedPreferencesDemoState(); diff --git a/packages/shared_preferences/shared_preferences/example/pubspec.yaml b/packages/shared_preferences/shared_preferences/example/pubspec.yaml index 944538da0d0c..84fe89e714c8 100644 --- a/packages/shared_preferences/shared_preferences/example/pubspec.yaml +++ b/packages/shared_preferences/shared_preferences/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Demonstrates how to use the shared_preferences plugin. publish_to: none environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/shared_preferences/shared_preferences/pubspec.yaml b/packages/shared_preferences/shared_preferences/pubspec.yaml index 8ead57809f00..622a8a22bbee 100644 --- a/packages/shared_preferences/shared_preferences/pubspec.yaml +++ b/packages/shared_preferences/shared_preferences/pubspec.yaml @@ -6,7 +6,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 2.0.18 environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" flutter: diff --git a/packages/shared_preferences/shared_preferences_android/CHANGELOG.md b/packages/shared_preferences/shared_preferences_android/CHANGELOG.md index ee1ccb1cbdbc..ef9789ba6b52 100644 --- a/packages/shared_preferences/shared_preferences_android/CHANGELOG.md +++ b/packages/shared_preferences/shared_preferences_android/CHANGELOG.md @@ -1,5 +1,6 @@ ## NEXT +* Aligns Dart and Flutter SDK constraints. * Updates compileSdkVersion to 33. ## 2.0.16 diff --git a/packages/shared_preferences/shared_preferences_android/example/lib/main.dart b/packages/shared_preferences/shared_preferences_android/example/lib/main.dart index cbcad6391beb..69abfbd506df 100644 --- a/packages/shared_preferences/shared_preferences_android/example/lib/main.dart +++ b/packages/shared_preferences/shared_preferences_android/example/lib/main.dart @@ -12,7 +12,7 @@ void main() { } class MyApp extends StatelessWidget { - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override Widget build(BuildContext context) { @@ -24,7 +24,7 @@ class MyApp extends StatelessWidget { } class SharedPreferencesDemo extends StatefulWidget { - const SharedPreferencesDemo({Key? key}) : super(key: key); + const SharedPreferencesDemo({super.key}); @override SharedPreferencesDemoState createState() => SharedPreferencesDemoState(); diff --git a/packages/shared_preferences/shared_preferences_android/example/pubspec.yaml b/packages/shared_preferences/shared_preferences_android/example/pubspec.yaml index c0bc6668e3dd..8c9ebfeafa59 100644 --- a/packages/shared_preferences/shared_preferences_android/example/pubspec.yaml +++ b/packages/shared_preferences/shared_preferences_android/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Demonstrates how to use the shared_preferences plugin. publish_to: none environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/shared_preferences/shared_preferences_android/pubspec.yaml b/packages/shared_preferences/shared_preferences_android/pubspec.yaml index e4d42df7bce9..1f1fc0b8bfcd 100644 --- a/packages/shared_preferences/shared_preferences_android/pubspec.yaml +++ b/packages/shared_preferences/shared_preferences_android/pubspec.yaml @@ -5,7 +5,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 2.0.16 environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" flutter: diff --git a/packages/shared_preferences/shared_preferences_foundation/CHANGELOG.md b/packages/shared_preferences/shared_preferences_foundation/CHANGELOG.md index 8d9cecdf0ddc..74a06976cb1c 100644 --- a/packages/shared_preferences/shared_preferences_foundation/CHANGELOG.md +++ b/packages/shared_preferences/shared_preferences_foundation/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 2.1.4 * Updates links for the merge of flutter/plugins into flutter/packages. diff --git a/packages/shared_preferences/shared_preferences_foundation/example/lib/main.dart b/packages/shared_preferences/shared_preferences_foundation/example/lib/main.dart index a5aedd54ab6f..e7cb57b7eb60 100644 --- a/packages/shared_preferences/shared_preferences_foundation/example/lib/main.dart +++ b/packages/shared_preferences/shared_preferences_foundation/example/lib/main.dart @@ -14,7 +14,7 @@ void main() { } class MyApp extends StatelessWidget { - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override Widget build(BuildContext context) { @@ -26,7 +26,7 @@ class MyApp extends StatelessWidget { } class SharedPreferencesDemo extends StatefulWidget { - const SharedPreferencesDemo({Key? key}) : super(key: key); + const SharedPreferencesDemo({super.key}); @override SharedPreferencesDemoState createState() => SharedPreferencesDemoState(); diff --git a/packages/shared_preferences/shared_preferences_foundation/example/pubspec.yaml b/packages/shared_preferences/shared_preferences_foundation/example/pubspec.yaml index ef67f234e7c5..f1b25bf7c85b 100644 --- a/packages/shared_preferences/shared_preferences_foundation/example/pubspec.yaml +++ b/packages/shared_preferences/shared_preferences_foundation/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Testbed for the shared_preferences_foundation implementation. publish_to: none environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/shared_preferences/shared_preferences_foundation/pubspec.yaml b/packages/shared_preferences/shared_preferences_foundation/pubspec.yaml index 253c8af28791..a765665c391f 100644 --- a/packages/shared_preferences/shared_preferences_foundation/pubspec.yaml +++ b/packages/shared_preferences/shared_preferences_foundation/pubspec.yaml @@ -5,7 +5,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 2.1.4 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" flutter: diff --git a/packages/shared_preferences/shared_preferences_linux/CHANGELOG.md b/packages/shared_preferences/shared_preferences_linux/CHANGELOG.md index e3745a3eb60c..fc3dec944548 100644 --- a/packages/shared_preferences/shared_preferences_linux/CHANGELOG.md +++ b/packages/shared_preferences/shared_preferences_linux/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 2.1.4 * Updates links for the merge of flutter/plugins into flutter/packages. diff --git a/packages/shared_preferences/shared_preferences_linux/example/lib/main.dart b/packages/shared_preferences/shared_preferences_linux/example/lib/main.dart index a904c824d4fe..050d2e50f640 100644 --- a/packages/shared_preferences/shared_preferences_linux/example/lib/main.dart +++ b/packages/shared_preferences/shared_preferences_linux/example/lib/main.dart @@ -14,7 +14,7 @@ void main() { } class MyApp extends StatelessWidget { - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override Widget build(BuildContext context) { @@ -26,7 +26,7 @@ class MyApp extends StatelessWidget { } class SharedPreferencesDemo extends StatefulWidget { - const SharedPreferencesDemo({Key? key}) : super(key: key); + const SharedPreferencesDemo({super.key}); @override SharedPreferencesDemoState createState() => SharedPreferencesDemoState(); diff --git a/packages/shared_preferences/shared_preferences_linux/example/pubspec.yaml b/packages/shared_preferences/shared_preferences_linux/example/pubspec.yaml index 98ff24a84682..c834ff32aae4 100644 --- a/packages/shared_preferences/shared_preferences_linux/example/pubspec.yaml +++ b/packages/shared_preferences/shared_preferences_linux/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Demonstrates how to use the shared_preferences_linux plugin. publish_to: none environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/shared_preferences/shared_preferences_linux/pubspec.yaml b/packages/shared_preferences/shared_preferences_linux/pubspec.yaml index b1aee037f0be..f97db355c8a1 100644 --- a/packages/shared_preferences/shared_preferences_linux/pubspec.yaml +++ b/packages/shared_preferences/shared_preferences_linux/pubspec.yaml @@ -5,7 +5,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 2.1.4 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" flutter: diff --git a/packages/shared_preferences/shared_preferences_platform_interface/CHANGELOG.md b/packages/shared_preferences/shared_preferences_platform_interface/CHANGELOG.md index 1e03b020b733..43b01661dde9 100644 --- a/packages/shared_preferences/shared_preferences_platform_interface/CHANGELOG.md +++ b/packages/shared_preferences/shared_preferences_platform_interface/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 2.1.1 * Updates links for the merge of flutter/plugins into flutter/packages. diff --git a/packages/shared_preferences/shared_preferences_platform_interface/pubspec.yaml b/packages/shared_preferences/shared_preferences_platform_interface/pubspec.yaml index 4537e8c01773..b41fe5196baa 100644 --- a/packages/shared_preferences/shared_preferences_platform_interface/pubspec.yaml +++ b/packages/shared_preferences/shared_preferences_platform_interface/pubspec.yaml @@ -5,7 +5,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 2.1.1 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/shared_preferences/shared_preferences_web/CHANGELOG.md b/packages/shared_preferences/shared_preferences_web/CHANGELOG.md index e16a13fa69a3..409733ae826e 100644 --- a/packages/shared_preferences/shared_preferences_web/CHANGELOG.md +++ b/packages/shared_preferences/shared_preferences_web/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 2.0.5 * Updates links for the merge of flutter/plugins into flutter/packages. diff --git a/packages/shared_preferences/shared_preferences_web/example/lib/main.dart b/packages/shared_preferences/shared_preferences_web/example/lib/main.dart index 87422953de6a..b5cc8b7102d8 100644 --- a/packages/shared_preferences/shared_preferences_web/example/lib/main.dart +++ b/packages/shared_preferences/shared_preferences_web/example/lib/main.dart @@ -11,7 +11,7 @@ void main() { /// App for testing class MyApp extends StatefulWidget { /// Default Constructor - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override State createState() => _MyAppState(); diff --git a/packages/shared_preferences/shared_preferences_web/example/pubspec.yaml b/packages/shared_preferences/shared_preferences_web/example/pubspec.yaml index 52cfa1b436fb..6b317faf6bbb 100644 --- a/packages/shared_preferences/shared_preferences_web/example/pubspec.yaml +++ b/packages/shared_preferences/shared_preferences_web/example/pubspec.yaml @@ -2,7 +2,7 @@ name: shared_preferences_web_integration_tests publish_to: none environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/shared_preferences/shared_preferences_web/pubspec.yaml b/packages/shared_preferences/shared_preferences_web/pubspec.yaml index 46bfbeed99d5..6867ee62977c 100644 --- a/packages/shared_preferences/shared_preferences_web/pubspec.yaml +++ b/packages/shared_preferences/shared_preferences_web/pubspec.yaml @@ -5,7 +5,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 2.0.5 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" flutter: diff --git a/packages/shared_preferences/shared_preferences_windows/CHANGELOG.md b/packages/shared_preferences/shared_preferences_windows/CHANGELOG.md index aaf0e7fe2ee5..bce81ce25ee8 100644 --- a/packages/shared_preferences/shared_preferences_windows/CHANGELOG.md +++ b/packages/shared_preferences/shared_preferences_windows/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 2.1.4 * Updates links for the merge of flutter/plugins into flutter/packages. diff --git a/packages/shared_preferences/shared_preferences_windows/example/lib/main.dart b/packages/shared_preferences/shared_preferences_windows/example/lib/main.dart index e442c4b69ee5..3c5312aab602 100644 --- a/packages/shared_preferences/shared_preferences_windows/example/lib/main.dart +++ b/packages/shared_preferences/shared_preferences_windows/example/lib/main.dart @@ -14,7 +14,7 @@ void main() { } class MyApp extends StatelessWidget { - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override Widget build(BuildContext context) { @@ -26,7 +26,7 @@ class MyApp extends StatelessWidget { } class SharedPreferencesDemo extends StatefulWidget { - const SharedPreferencesDemo({Key? key}) : super(key: key); + const SharedPreferencesDemo({super.key}); @override SharedPreferencesDemoState createState() => SharedPreferencesDemoState(); diff --git a/packages/shared_preferences/shared_preferences_windows/example/pubspec.yaml b/packages/shared_preferences/shared_preferences_windows/example/pubspec.yaml index bb51f7fbef18..16df116727de 100644 --- a/packages/shared_preferences/shared_preferences_windows/example/pubspec.yaml +++ b/packages/shared_preferences/shared_preferences_windows/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Demonstrates how to use the shared_preferences_windows plugin. publish_to: none environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/shared_preferences/shared_preferences_windows/pubspec.yaml b/packages/shared_preferences/shared_preferences_windows/pubspec.yaml index 1b8c99b460b0..b0285b0d0947 100644 --- a/packages/shared_preferences/shared_preferences_windows/pubspec.yaml +++ b/packages/shared_preferences/shared_preferences_windows/pubspec.yaml @@ -5,7 +5,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 2.1.4 environment: - sdk: '>=2.12.0 <3.0.0' + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" flutter: diff --git a/packages/url_launcher/url_launcher/CHANGELOG.md b/packages/url_launcher/url_launcher/CHANGELOG.md index 11590970e125..1e59d1d0a209 100644 --- a/packages/url_launcher/url_launcher/CHANGELOG.md +++ b/packages/url_launcher/url_launcher/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 6.1.10 * Updates links for the merge of flutter/plugins into flutter/packages. diff --git a/packages/url_launcher/url_launcher/example/lib/main.dart b/packages/url_launcher/url_launcher/example/lib/main.dart index 9b005cf98db0..f88fcfeb9150 100644 --- a/packages/url_launcher/url_launcher/example/lib/main.dart +++ b/packages/url_launcher/url_launcher/example/lib/main.dart @@ -15,7 +15,7 @@ void main() { } class MyApp extends StatelessWidget { - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override Widget build(BuildContext context) { @@ -30,7 +30,7 @@ class MyApp extends StatelessWidget { } class MyHomePage extends StatefulWidget { - const MyHomePage({Key? key, required this.title}) : super(key: key); + const MyHomePage({super.key, required this.title}); final String title; @override diff --git a/packages/url_launcher/url_launcher/example/pubspec.yaml b/packages/url_launcher/url_launcher/example/pubspec.yaml index 83900bfdef75..fcb9b0c857c3 100644 --- a/packages/url_launcher/url_launcher/example/pubspec.yaml +++ b/packages/url_launcher/url_launcher/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Demonstrates how to use the url_launcher plugin. publish_to: none environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/url_launcher/url_launcher/lib/src/link.dart b/packages/url_launcher/url_launcher/lib/src/link.dart index 91f7389ff251..d472321ee979 100644 --- a/packages/url_launcher/url_launcher/lib/src/link.dart +++ b/packages/url_launcher/url_launcher/lib/src/link.dart @@ -47,11 +47,11 @@ class Link extends StatelessWidget implements LinkInfo { /// Creates a widget that renders a real link on the web, and uses WebViews in /// native platforms to open links. const Link({ - Key? key, + super.key, required this.uri, this.target = LinkTarget.defaultTarget, required this.builder, - }) : super(key: key); + }); /// Called at build time to construct the widget tree under the link. @override @@ -86,7 +86,7 @@ class Link extends StatelessWidget implements LinkInfo { /// event channel messages to instruct the framework to push the route name. class DefaultLinkDelegate extends StatelessWidget { /// Creates a delegate for the given [link]. - const DefaultLinkDelegate(this.link, {Key? key}) : super(key: key); + const DefaultLinkDelegate(this.link, {super.key}); /// Given a [link], creates an instance of [DefaultLinkDelegate]. /// diff --git a/packages/url_launcher/url_launcher/pubspec.yaml b/packages/url_launcher/url_launcher/pubspec.yaml index aa3307e47c12..fd2f7320c485 100644 --- a/packages/url_launcher/url_launcher/pubspec.yaml +++ b/packages/url_launcher/url_launcher/pubspec.yaml @@ -6,7 +6,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 6.1.10 environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" flutter: diff --git a/packages/url_launcher/url_launcher_android/CHANGELOG.md b/packages/url_launcher/url_launcher_android/CHANGELOG.md index f577d68cacc7..956592368c49 100644 --- a/packages/url_launcher/url_launcher_android/CHANGELOG.md +++ b/packages/url_launcher/url_launcher_android/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 6.0.24 * Updates links for the merge of flutter/plugins into flutter/packages. diff --git a/packages/url_launcher/url_launcher_android/example/lib/main.dart b/packages/url_launcher/url_launcher_android/example/lib/main.dart index 7a77c86aef72..d10681bdc8e1 100644 --- a/packages/url_launcher/url_launcher_android/example/lib/main.dart +++ b/packages/url_launcher/url_launcher_android/example/lib/main.dart @@ -14,7 +14,7 @@ void main() { } class MyApp extends StatelessWidget { - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override Widget build(BuildContext context) { @@ -29,7 +29,7 @@ class MyApp extends StatelessWidget { } class MyHomePage extends StatefulWidget { - const MyHomePage({Key? key, required this.title}) : super(key: key); + const MyHomePage({super.key, required this.title}); final String title; @override diff --git a/packages/url_launcher/url_launcher_android/example/pubspec.yaml b/packages/url_launcher/url_launcher_android/example/pubspec.yaml index 33fc9f06ed63..f902fc5743ac 100644 --- a/packages/url_launcher/url_launcher_android/example/pubspec.yaml +++ b/packages/url_launcher/url_launcher_android/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Demonstrates how to use the url_launcher plugin. publish_to: none environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/url_launcher/url_launcher_android/pubspec.yaml b/packages/url_launcher/url_launcher_android/pubspec.yaml index 0dedffd5eec4..250d13bb8737 100644 --- a/packages/url_launcher/url_launcher_android/pubspec.yaml +++ b/packages/url_launcher/url_launcher_android/pubspec.yaml @@ -5,7 +5,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 6.0.24 environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" flutter: diff --git a/packages/url_launcher/url_launcher_linux/CHANGELOG.md b/packages/url_launcher/url_launcher_linux/CHANGELOG.md index 1ad4343355e9..8a7c20418245 100644 --- a/packages/url_launcher/url_launcher_linux/CHANGELOG.md +++ b/packages/url_launcher/url_launcher_linux/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 3.0.3 * Updates links for the merge of flutter/plugins into flutter/packages. diff --git a/packages/url_launcher/url_launcher_linux/example/lib/main.dart b/packages/url_launcher/url_launcher_linux/example/lib/main.dart index bbe651ea05de..739d09d00c45 100644 --- a/packages/url_launcher/url_launcher_linux/example/lib/main.dart +++ b/packages/url_launcher/url_launcher_linux/example/lib/main.dart @@ -13,7 +13,7 @@ void main() { } class MyApp extends StatelessWidget { - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override Widget build(BuildContext context) { @@ -28,7 +28,7 @@ class MyApp extends StatelessWidget { } class MyHomePage extends StatefulWidget { - const MyHomePage({Key? key, required this.title}) : super(key: key); + const MyHomePage({super.key, required this.title}); final String title; @override diff --git a/packages/url_launcher/url_launcher_linux/example/pubspec.yaml b/packages/url_launcher/url_launcher_linux/example/pubspec.yaml index ba738806af38..a6cc108d6767 100644 --- a/packages/url_launcher/url_launcher_linux/example/pubspec.yaml +++ b/packages/url_launcher/url_launcher_linux/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Demonstrates how to use the url_launcher plugin. publish_to: none environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/url_launcher/url_launcher_linux/pubspec.yaml b/packages/url_launcher/url_launcher_linux/pubspec.yaml index bd59b054212b..e6cf85bfde1c 100644 --- a/packages/url_launcher/url_launcher_linux/pubspec.yaml +++ b/packages/url_launcher/url_launcher_linux/pubspec.yaml @@ -5,7 +5,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 3.0.3 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" flutter: diff --git a/packages/url_launcher/url_launcher_macos/CHANGELOG.md b/packages/url_launcher/url_launcher_macos/CHANGELOG.md index 29cf5f2440f8..cb797356be21 100644 --- a/packages/url_launcher/url_launcher_macos/CHANGELOG.md +++ b/packages/url_launcher/url_launcher_macos/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 3.0.3 * Updates links for the merge of flutter/plugins into flutter/packages. diff --git a/packages/url_launcher/url_launcher_macos/example/lib/main.dart b/packages/url_launcher/url_launcher_macos/example/lib/main.dart index bbe651ea05de..739d09d00c45 100644 --- a/packages/url_launcher/url_launcher_macos/example/lib/main.dart +++ b/packages/url_launcher/url_launcher_macos/example/lib/main.dart @@ -13,7 +13,7 @@ void main() { } class MyApp extends StatelessWidget { - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override Widget build(BuildContext context) { @@ -28,7 +28,7 @@ class MyApp extends StatelessWidget { } class MyHomePage extends StatefulWidget { - const MyHomePage({Key? key, required this.title}) : super(key: key); + const MyHomePage({super.key, required this.title}); final String title; @override diff --git a/packages/url_launcher/url_launcher_macos/example/pubspec.yaml b/packages/url_launcher/url_launcher_macos/example/pubspec.yaml index 688cac3a6b0e..41f1fec64188 100644 --- a/packages/url_launcher/url_launcher_macos/example/pubspec.yaml +++ b/packages/url_launcher/url_launcher_macos/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Demonstrates how to use the url_launcher plugin. publish_to: none environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/url_launcher/url_launcher_macos/pubspec.yaml b/packages/url_launcher/url_launcher_macos/pubspec.yaml index 3a018aabf75c..95e3eea0b377 100644 --- a/packages/url_launcher/url_launcher_macos/pubspec.yaml +++ b/packages/url_launcher/url_launcher_macos/pubspec.yaml @@ -5,7 +5,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 3.0.3 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" flutter: diff --git a/packages/url_launcher/url_launcher_platform_interface/CHANGELOG.md b/packages/url_launcher/url_launcher_platform_interface/CHANGELOG.md index e13aeaa0a29d..a292ce10fa63 100644 --- a/packages/url_launcher/url_launcher_platform_interface/CHANGELOG.md +++ b/packages/url_launcher/url_launcher_platform_interface/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 2.1.2 * Updates links for the merge of flutter/plugins into flutter/packages. diff --git a/packages/url_launcher/url_launcher_platform_interface/pubspec.yaml b/packages/url_launcher/url_launcher_platform_interface/pubspec.yaml index 3d1e41d558a7..6b09d5926d18 100644 --- a/packages/url_launcher/url_launcher_platform_interface/pubspec.yaml +++ b/packages/url_launcher/url_launcher_platform_interface/pubspec.yaml @@ -7,7 +7,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 2.1.2 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/url_launcher/url_launcher_web/CHANGELOG.md b/packages/url_launcher/url_launcher_web/CHANGELOG.md index 408a7c1ebd1a..5c745732afc7 100644 --- a/packages/url_launcher/url_launcher_web/CHANGELOG.md +++ b/packages/url_launcher/url_launcher_web/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 2.0.15 * Updates links for the merge of flutter/plugins into flutter/packages. diff --git a/packages/url_launcher/url_launcher_web/example/lib/main.dart b/packages/url_launcher/url_launcher_web/example/lib/main.dart index 87422953de6a..b5cc8b7102d8 100644 --- a/packages/url_launcher/url_launcher_web/example/lib/main.dart +++ b/packages/url_launcher/url_launcher_web/example/lib/main.dart @@ -11,7 +11,7 @@ void main() { /// App for testing class MyApp extends StatefulWidget { /// Default Constructor - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override State createState() => _MyAppState(); diff --git a/packages/url_launcher/url_launcher_web/example/pubspec.yaml b/packages/url_launcher/url_launcher_web/example/pubspec.yaml index ca1b0d6634a7..314e638593e1 100644 --- a/packages/url_launcher/url_launcher_web/example/pubspec.yaml +++ b/packages/url_launcher/url_launcher_web/example/pubspec.yaml @@ -2,7 +2,7 @@ name: regular_integration_tests publish_to: none environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/url_launcher/url_launcher_web/lib/src/link.dart b/packages/url_launcher/url_launcher_web/lib/src/link.dart index 78c049c03def..927cc7d625bd 100644 --- a/packages/url_launcher/url_launcher_web/lib/src/link.dart +++ b/packages/url_launcher/url_launcher_web/lib/src/link.dart @@ -31,7 +31,7 @@ HtmlViewFactory get linkViewFactory => LinkViewController._viewFactory; /// It uses a platform view to render an anchor element in the DOM. class WebLinkDelegate extends StatefulWidget { /// Creates a delegate for the given [link]. - const WebLinkDelegate(this.link, {Key? key}) : super(key: key); + const WebLinkDelegate(this.link, {super.key}); /// Information about the link built by the app. final LinkInfo link; diff --git a/packages/url_launcher/url_launcher_web/pubspec.yaml b/packages/url_launcher/url_launcher_web/pubspec.yaml index ed27080afe0d..43c5a5f1613e 100644 --- a/packages/url_launcher/url_launcher_web/pubspec.yaml +++ b/packages/url_launcher/url_launcher_web/pubspec.yaml @@ -5,7 +5,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 2.0.15 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" flutter: diff --git a/packages/url_launcher/url_launcher_windows/CHANGELOG.md b/packages/url_launcher/url_launcher_windows/CHANGELOG.md index 9b5a0d3b42b1..96489ee1a1c3 100644 --- a/packages/url_launcher/url_launcher_windows/CHANGELOG.md +++ b/packages/url_launcher/url_launcher_windows/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 3.0.4 * Updates links for the merge of flutter/plugins into flutter/packages. diff --git a/packages/url_launcher/url_launcher_windows/example/lib/main.dart b/packages/url_launcher/url_launcher_windows/example/lib/main.dart index bbe651ea05de..739d09d00c45 100644 --- a/packages/url_launcher/url_launcher_windows/example/lib/main.dart +++ b/packages/url_launcher/url_launcher_windows/example/lib/main.dart @@ -13,7 +13,7 @@ void main() { } class MyApp extends StatelessWidget { - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override Widget build(BuildContext context) { @@ -28,7 +28,7 @@ class MyApp extends StatelessWidget { } class MyHomePage extends StatefulWidget { - const MyHomePage({Key? key, required this.title}) : super(key: key); + const MyHomePage({super.key, required this.title}); final String title; @override diff --git a/packages/url_launcher/url_launcher_windows/example/pubspec.yaml b/packages/url_launcher/url_launcher_windows/example/pubspec.yaml index 231d3d0848bc..baf91645959d 100644 --- a/packages/url_launcher/url_launcher_windows/example/pubspec.yaml +++ b/packages/url_launcher/url_launcher_windows/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Demonstrates the Windows implementation of the url_launcher plugin. publish_to: none environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/url_launcher/url_launcher_windows/pubspec.yaml b/packages/url_launcher/url_launcher_windows/pubspec.yaml index 7c42b7c4f88b..ed2689696e14 100644 --- a/packages/url_launcher/url_launcher_windows/pubspec.yaml +++ b/packages/url_launcher/url_launcher_windows/pubspec.yaml @@ -5,7 +5,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 3.0.4 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" flutter: diff --git a/packages/video_player/video_player/CHANGELOG.md b/packages/video_player/video_player/CHANGELOG.md index 2fc234ee16c1..5c4c9df601b5 100644 --- a/packages/video_player/video_player/CHANGELOG.md +++ b/packages/video_player/video_player/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 2.5.3 * Updates iOS minimum version in README. diff --git a/packages/video_player/video_player/README.md b/packages/video_player/video_player/README.md index e57c6f7511ce..5e4d56752580 100644 --- a/packages/video_player/video_player/README.md +++ b/packages/video_player/video_player/README.md @@ -61,7 +61,7 @@ void main() => runApp(const VideoApp()); /// Stateful widget to fetch and then display video content. class VideoApp extends StatefulWidget { - const VideoApp({Key? key}) : super(key: key); + const VideoApp({super.key}); @override _VideoAppState createState() => _VideoAppState(); diff --git a/packages/video_player/video_player/example/lib/basic.dart b/packages/video_player/video_player/example/lib/basic.dart index 169f1cdd00a8..60191b52ead0 100644 --- a/packages/video_player/video_player/example/lib/basic.dart +++ b/packages/video_player/video_player/example/lib/basic.dart @@ -15,7 +15,7 @@ void main() => runApp(const VideoApp()); /// Stateful widget to fetch and then display video content. class VideoApp extends StatefulWidget { - const VideoApp({Key? key}) : super(key: key); + const VideoApp({super.key}); @override _VideoAppState createState() => _VideoAppState(); diff --git a/packages/video_player/video_player/example/lib/main.dart b/packages/video_player/video_player/example/lib/main.dart index 208cd2fc6c39..cda8a39eee76 100644 --- a/packages/video_player/video_player/example/lib/main.dart +++ b/packages/video_player/video_player/example/lib/main.dart @@ -107,7 +107,7 @@ class _ButterFlyAssetVideoInList extends StatelessWidget { /// A filler card to show the video in a list of scrolling contents. class _ExampleCard extends StatelessWidget { - const _ExampleCard({Key? key, required this.title}) : super(key: key); + const _ExampleCard({required this.title}); final String title; @@ -265,8 +265,7 @@ class _BumbleBeeRemoteVideoState extends State<_BumbleBeeRemoteVideo> { } class _ControlsOverlay extends StatelessWidget { - const _ControlsOverlay({Key? key, required this.controller}) - : super(key: key); + const _ControlsOverlay({required this.controller}); static const List _exampleCaptionOffsets = [ Duration(seconds: -10), diff --git a/packages/video_player/video_player/example/pubspec.yaml b/packages/video_player/video_player/example/pubspec.yaml index 0b30e9fb01e7..f29edfb0b0a7 100644 --- a/packages/video_player/video_player/example/pubspec.yaml +++ b/packages/video_player/video_player/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Demonstrates how to use the video_player plugin. publish_to: none environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/video_player/video_player/lib/video_player.dart b/packages/video_player/video_player/lib/video_player.dart index 5720e2d9d136..2b5c6252c9d2 100644 --- a/packages/video_player/video_player/lib/video_player.dart +++ b/packages/video_player/video_player/lib/video_player.dart @@ -715,7 +715,7 @@ class _VideoAppLifeCycleObserver extends Object with WidgetsBindingObserver { /// Widget that displays the video controlled by [controller]. class VideoPlayer extends StatefulWidget { /// Uses the given [controller] for all video rendered in this widget. - const VideoPlayer(this.controller, {Key? key}) : super(key: key); + const VideoPlayer(this.controller, {super.key}); /// The [VideoPlayerController] responsible for the video being rendered in /// this widget. @@ -776,9 +776,7 @@ class _VideoPlayerState extends State { } class _VideoPlayerWithRotation extends StatelessWidget { - const _VideoPlayerWithRotation( - {Key? key, required this.rotation, required this.child}) - : super(key: key); + const _VideoPlayerWithRotation({required this.rotation, required this.child}); final int rotation; final Widget child; @@ -838,10 +836,10 @@ class VideoScrubber extends StatefulWidget { /// [controller] is the [VideoPlayerController] that will be controlled by /// this scrubber. const VideoScrubber({ - Key? key, + super.key, required this.child, required this.controller, - }) : super(key: key); + }); /// The widget that will be displayed inside the gesture detector. final Widget child; @@ -918,11 +916,11 @@ class VideoProgressIndicator extends StatefulWidget { /// to `top: 5.0`. const VideoProgressIndicator( this.controller, { - Key? key, + super.key, this.colors = const VideoProgressColors(), required this.allowScrubbing, this.padding = const EdgeInsets.only(top: 5.0), - }) : super(key: key); + }); /// The [VideoPlayerController] that actually associates a video with this /// widget. @@ -1051,7 +1049,7 @@ class ClosedCaption extends StatelessWidget { /// [VideoPlayerValue.caption]. /// /// If [text] is null or empty, nothing will be displayed. - const ClosedCaption({Key? key, this.text, this.textStyle}) : super(key: key); + const ClosedCaption({super.key, this.text, this.textStyle}); /// The text that will be shown in the closed caption, or null if no caption /// should be shown. diff --git a/packages/video_player/video_player/pubspec.yaml b/packages/video_player/video_player/pubspec.yaml index 6519b109e272..7d4aca6794a1 100644 --- a/packages/video_player/video_player/pubspec.yaml +++ b/packages/video_player/video_player/pubspec.yaml @@ -6,7 +6,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 2.5.3 environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" flutter: diff --git a/packages/video_player/video_player/test/video_player_test.dart b/packages/video_player/video_player/test/video_player_test.dart index 663fc9f8e897..023202d19518 100644 --- a/packages/video_player/video_player/test/video_player_test.dart +++ b/packages/video_player/video_player/test/video_player_test.dart @@ -18,7 +18,7 @@ class FakeController extends ValueNotifier implements VideoPlayerController { FakeController() : super(VideoPlayerValue(duration: Duration.zero)); - FakeController.value(VideoPlayerValue value) : super(value); + FakeController.value(super.value); @override Future dispose() async { diff --git a/packages/video_player/video_player_android/CHANGELOG.md b/packages/video_player/video_player_android/CHANGELOG.md index 1bb697d4f5ec..f6af063cc445 100644 --- a/packages/video_player/video_player_android/CHANGELOG.md +++ b/packages/video_player/video_player_android/CHANGELOG.md @@ -1,5 +1,6 @@ ## NEXT +* Aligns Dart and Flutter SDK constraints. * Updates compileSdkVersion to 33. ## 2.3.11 diff --git a/packages/video_player/video_player_android/example/lib/main.dart b/packages/video_player/video_player_android/example/lib/main.dart index bca4e291efff..38ad5aabaeed 100644 --- a/packages/video_player/video_player_android/example/lib/main.dart +++ b/packages/video_player/video_player_android/example/lib/main.dart @@ -157,8 +157,7 @@ class _BumbleBeeRemoteVideoState extends State<_BumbleBeeRemoteVideo> { } class _ControlsOverlay extends StatelessWidget { - const _ControlsOverlay({Key? key, required this.controller}) - : super(key: key); + const _ControlsOverlay({required this.controller}); static const List _examplePlaybackRates = [ 0.25, diff --git a/packages/video_player/video_player_android/example/lib/mini_controller.dart b/packages/video_player/video_player_android/example/lib/mini_controller.dart index fb79a77fb2cb..3ad1b6a4b73d 100644 --- a/packages/video_player/video_player_android/example/lib/mini_controller.dart +++ b/packages/video_player/video_player_android/example/lib/mini_controller.dart @@ -346,7 +346,7 @@ class MiniController extends ValueNotifier { /// Widget that displays the video controlled by [controller]. class VideoPlayer extends StatefulWidget { /// Uses the given [controller] for all video rendered in this widget. - const VideoPlayer(this.controller, {Key? key}) : super(key: key); + const VideoPlayer(this.controller, {super.key}); /// The [MiniController] responsible for the video being rendered in /// this widget. @@ -445,7 +445,7 @@ class _VideoScrubberState extends State<_VideoScrubber> { class VideoProgressIndicator extends StatefulWidget { /// Construct an instance that displays the play/buffering status of the video /// controlled by [controller]. - const VideoProgressIndicator(this.controller, {Key? key}) : super(key: key); + const VideoProgressIndicator(this.controller, {super.key}); /// The [MiniController] that actually associates a video with this /// widget. diff --git a/packages/video_player/video_player_android/example/pubspec.yaml b/packages/video_player/video_player_android/example/pubspec.yaml index 16ffe17e7ba3..0100ee1d916e 100644 --- a/packages/video_player/video_player_android/example/pubspec.yaml +++ b/packages/video_player/video_player_android/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Demonstrates how to use the video_player plugin. publish_to: none environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/video_player/video_player_android/pubspec.yaml b/packages/video_player/video_player_android/pubspec.yaml index 9d9fc02e2e92..f1a42f1defbf 100644 --- a/packages/video_player/video_player_android/pubspec.yaml +++ b/packages/video_player/video_player_android/pubspec.yaml @@ -5,7 +5,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 2.3.11 environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" flutter: diff --git a/packages/video_player/video_player_avfoundation/CHANGELOG.md b/packages/video_player/video_player_avfoundation/CHANGELOG.md index e9059c0330f4..b6032625a055 100644 --- a/packages/video_player/video_player_avfoundation/CHANGELOG.md +++ b/packages/video_player/video_player_avfoundation/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 2.4.0 * Updates minimum Flutter version to 3.3 and iOS 11. diff --git a/packages/video_player/video_player_avfoundation/example/lib/main.dart b/packages/video_player/video_player_avfoundation/example/lib/main.dart index d385fd0ee66a..a2540ca5f423 100644 --- a/packages/video_player/video_player_avfoundation/example/lib/main.dart +++ b/packages/video_player/video_player_avfoundation/example/lib/main.dart @@ -215,8 +215,7 @@ class _BumbleBeeEncryptedLiveStreamState } class _ControlsOverlay extends StatelessWidget { - const _ControlsOverlay({Key? key, required this.controller}) - : super(key: key); + const _ControlsOverlay({required this.controller}); static const List _examplePlaybackRates = [ 0.25, diff --git a/packages/video_player/video_player_avfoundation/example/lib/mini_controller.dart b/packages/video_player/video_player_avfoundation/example/lib/mini_controller.dart index fb79a77fb2cb..3ad1b6a4b73d 100644 --- a/packages/video_player/video_player_avfoundation/example/lib/mini_controller.dart +++ b/packages/video_player/video_player_avfoundation/example/lib/mini_controller.dart @@ -346,7 +346,7 @@ class MiniController extends ValueNotifier { /// Widget that displays the video controlled by [controller]. class VideoPlayer extends StatefulWidget { /// Uses the given [controller] for all video rendered in this widget. - const VideoPlayer(this.controller, {Key? key}) : super(key: key); + const VideoPlayer(this.controller, {super.key}); /// The [MiniController] responsible for the video being rendered in /// this widget. @@ -445,7 +445,7 @@ class _VideoScrubberState extends State<_VideoScrubber> { class VideoProgressIndicator extends StatefulWidget { /// Construct an instance that displays the play/buffering status of the video /// controlled by [controller]. - const VideoProgressIndicator(this.controller, {Key? key}) : super(key: key); + const VideoProgressIndicator(this.controller, {super.key}); /// The [MiniController] that actually associates a video with this /// widget. diff --git a/packages/video_player/video_player_avfoundation/example/pubspec.yaml b/packages/video_player/video_player_avfoundation/example/pubspec.yaml index 422fb91e35e5..04ae207185eb 100644 --- a/packages/video_player/video_player_avfoundation/example/pubspec.yaml +++ b/packages/video_player/video_player_avfoundation/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Demonstrates how to use the video_player plugin. publish_to: none environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/video_player/video_player_platform_interface/CHANGELOG.md b/packages/video_player/video_player_platform_interface/CHANGELOG.md index ba7e9370d01c..05e4201bb68e 100644 --- a/packages/video_player/video_player_platform_interface/CHANGELOG.md +++ b/packages/video_player/video_player_platform_interface/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 6.0.2 * Updates links for the merge of flutter/plugins into flutter/packages. diff --git a/packages/video_player/video_player_platform_interface/pubspec.yaml b/packages/video_player/video_player_platform_interface/pubspec.yaml index a75d05a156df..c3ba6960cb8f 100644 --- a/packages/video_player/video_player_platform_interface/pubspec.yaml +++ b/packages/video_player/video_player_platform_interface/pubspec.yaml @@ -7,7 +7,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 6.0.2 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/video_player/video_player_web/CHANGELOG.md b/packages/video_player/video_player_web/CHANGELOG.md index 9b9edf3b8988..5df30f0b6391 100644 --- a/packages/video_player/video_player_web/CHANGELOG.md +++ b/packages/video_player/video_player_web/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 2.0.14 * Updates links for the merge of flutter/plugins into flutter/packages. diff --git a/packages/video_player/video_player_web/example/lib/main.dart b/packages/video_player/video_player_web/example/lib/main.dart index 87422953de6a..b5cc8b7102d8 100644 --- a/packages/video_player/video_player_web/example/lib/main.dart +++ b/packages/video_player/video_player_web/example/lib/main.dart @@ -11,7 +11,7 @@ void main() { /// App for testing class MyApp extends StatefulWidget { /// Default Constructor - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override State createState() => _MyAppState(); diff --git a/packages/video_player/video_player_web/example/pubspec.yaml b/packages/video_player/video_player_web/example/pubspec.yaml index c4de1ce54c1a..3c51cab6e218 100644 --- a/packages/video_player/video_player_web/example/pubspec.yaml +++ b/packages/video_player/video_player_web/example/pubspec.yaml @@ -2,7 +2,7 @@ name: video_player_for_web_integration_tests publish_to: none environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/video_player/video_player_web/pubspec.yaml b/packages/video_player/video_player_web/pubspec.yaml index 9e2c9e66d5ef..32edd42db529 100644 --- a/packages/video_player/video_player_web/pubspec.yaml +++ b/packages/video_player/video_player_web/pubspec.yaml @@ -5,7 +5,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 2.0.14 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" flutter: diff --git a/packages/webview_flutter/webview_flutter_android/CHANGELOG.md b/packages/webview_flutter/webview_flutter_android/CHANGELOG.md index dd38bcb3274f..c5564afcb943 100644 --- a/packages/webview_flutter/webview_flutter_android/CHANGELOG.md +++ b/packages/webview_flutter/webview_flutter_android/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 3.3.2 * Resolves compilations warnings. diff --git a/packages/webview_flutter/webview_flutter_android/example/integration_test/legacy/webview_flutter_test.dart b/packages/webview_flutter/webview_flutter_android/example/integration_test/legacy/webview_flutter_test.dart index cbec6b767952..2fd0c1b6cdf5 100644 --- a/packages/webview_flutter/webview_flutter_android/example/integration_test/legacy/webview_flutter_test.dart +++ b/packages/webview_flutter/webview_flutter_android/example/integration_test/legacy/webview_flutter_test.dart @@ -1470,10 +1470,10 @@ Future _runJavaScriptReturningResult( class ResizableWebView extends StatefulWidget { const ResizableWebView({ - Key? key, + super.key, required this.onResize, required this.onPageFinished, - }) : super(key: key); + }); final JavascriptMessageHandler onResize; final VoidCallback onPageFinished; diff --git a/packages/webview_flutter/webview_flutter_android/example/integration_test/webview_flutter_test.dart b/packages/webview_flutter/webview_flutter_android/example/integration_test/webview_flutter_test.dart index af144e55efba..d8db40801e3f 100644 --- a/packages/webview_flutter/webview_flutter_android/example/integration_test/webview_flutter_test.dart +++ b/packages/webview_flutter/webview_flutter_android/example/integration_test/webview_flutter_test.dart @@ -1135,10 +1135,10 @@ Future _runJavaScriptReturningResult( class ResizableWebView extends StatefulWidget { const ResizableWebView({ - Key? key, + super.key, required this.onResize, required this.onPageFinished, - }) : super(key: key); + }); final VoidCallback onResize; final VoidCallback onPageFinished; diff --git a/packages/webview_flutter/webview_flutter_android/example/lib/legacy/web_view.dart b/packages/webview_flutter/webview_flutter_android/example/lib/legacy/web_view.dart index b77a503c959a..bd5778675c25 100644 --- a/packages/webview_flutter/webview_flutter_android/example/lib/legacy/web_view.dart +++ b/packages/webview_flutter/webview_flutter_android/example/lib/legacy/web_view.dart @@ -61,7 +61,7 @@ class WebView extends StatefulWidget { /// /// The `javascriptMode` and `autoMediaPlaybackPolicy` parameters must not be null. const WebView({ - Key? key, + super.key, this.onWebViewCreated, this.initialUrl, this.initialCookies = const [], @@ -83,8 +83,7 @@ class WebView extends StatefulWidget { this.backgroundColor, }) : assert(javascriptMode != null), assert(initialMediaPlaybackPolicy != null), - assert(allowsInlineMediaPlayback != null), - super(key: key); + assert(allowsInlineMediaPlayback != null); /// The WebView platform that's used by this WebView. /// diff --git a/packages/webview_flutter/webview_flutter_android/example/lib/main.dart b/packages/webview_flutter/webview_flutter_android/example/lib/main.dart index 75f01b457b3a..3c6a51418f60 100644 --- a/packages/webview_flutter/webview_flutter_android/example/lib/main.dart +++ b/packages/webview_flutter/webview_flutter_android/example/lib/main.dart @@ -74,7 +74,7 @@ const String kTransparentBackgroundPage = ''' '''; class WebViewExample extends StatefulWidget { - const WebViewExample({Key? key, this.cookieManager}) : super(key: key); + const WebViewExample({super.key, this.cookieManager}); final PlatformWebViewCookieManager? cookieManager; @@ -193,14 +193,13 @@ enum MenuOptions { class SampleMenu extends StatelessWidget { SampleMenu({ - Key? key, + super.key, required this.webViewController, PlatformWebViewCookieManager? cookieManager, - }) : cookieManager = cookieManager ?? + }) : cookieManager = cookieManager ?? PlatformWebViewCookieManager( const PlatformWebViewCookieManagerCreationParams(), - ), - super(key: key); + ); final PlatformWebViewController webViewController; late final PlatformWebViewCookieManager cookieManager; @@ -457,8 +456,7 @@ class SampleMenu extends StatelessWidget { } class NavigationControls extends StatelessWidget { - const NavigationControls({Key? key, required this.webViewController}) - : super(key: key); + const NavigationControls({super.key, required this.webViewController}); final PlatformWebViewController webViewController; diff --git a/packages/webview_flutter/webview_flutter_android/example/pubspec.yaml b/packages/webview_flutter/webview_flutter_android/example/pubspec.yaml index 0fc0daf84118..1b1d873b3fe2 100644 --- a/packages/webview_flutter/webview_flutter_android/example/pubspec.yaml +++ b/packages/webview_flutter/webview_flutter_android/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Demonstrates how to use the webview_flutter_android plugin. publish_to: none environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/webview_flutter/webview_flutter_platform_interface/CHANGELOG.md b/packages/webview_flutter/webview_flutter_platform_interface/CHANGELOG.md index 8641f8cfb062..d763e97cea90 100644 --- a/packages/webview_flutter/webview_flutter_platform_interface/CHANGELOG.md +++ b/packages/webview_flutter/webview_flutter_platform_interface/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 2.0.2 * Updates links for the merge of flutter/plugins into flutter/packages. diff --git a/packages/webview_flutter/webview_flutter_platform_interface/pubspec.yaml b/packages/webview_flutter/webview_flutter_platform_interface/pubspec.yaml index 0857aae1b0eb..c69645d7a229 100644 --- a/packages/webview_flutter/webview_flutter_platform_interface/pubspec.yaml +++ b/packages/webview_flutter/webview_flutter_platform_interface/pubspec.yaml @@ -7,7 +7,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 2.0.2 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/webview_flutter/webview_flutter_platform_interface/test/platform_navigation_delegate_test.dart b/packages/webview_flutter/webview_flutter_platform_interface/test/platform_navigation_delegate_test.dart index 5e9aa2e12437..8535e87b9e15 100644 --- a/packages/webview_flutter/webview_flutter_platform_interface/test/platform_navigation_delegate_test.dart +++ b/packages/webview_flutter/webview_flutter_platform_interface/test/platform_navigation_delegate_test.dart @@ -141,7 +141,5 @@ class MockNavigationDelegate extends Mock PlatformNavigationDelegate {} class ExtendsPlatformNavigationDelegate extends PlatformNavigationDelegate { - ExtendsPlatformNavigationDelegate( - PlatformNavigationDelegateCreationParams params) - : super.implementation(params); + ExtendsPlatformNavigationDelegate(super.params) : super.implementation(); } diff --git a/packages/webview_flutter/webview_flutter_platform_interface/test/platform_webview_controller_test.dart b/packages/webview_flutter/webview_flutter_platform_interface/test/platform_webview_controller_test.dart index 6710f34895b7..80fd62591315 100644 --- a/packages/webview_flutter/webview_flutter_platform_interface/test/platform_webview_controller_test.dart +++ b/packages/webview_flutter/webview_flutter_platform_interface/test/platform_webview_controller_test.dart @@ -430,9 +430,7 @@ class MockWebViewControllerDelegate extends Mock PlatformWebViewController {} class ExtendsPlatformWebViewController extends PlatformWebViewController { - ExtendsPlatformWebViewController( - PlatformWebViewControllerCreationParams params) - : super.implementation(params); + ExtendsPlatformWebViewController(super.params) : super.implementation(); } // ignore: must_be_immutable diff --git a/packages/webview_flutter/webview_flutter_platform_interface/test/platform_webview_widget_test.dart b/packages/webview_flutter/webview_flutter_platform_interface/test/platform_webview_widget_test.dart index 652f326cf20e..ce0a02617eec 100644 --- a/packages/webview_flutter/webview_flutter_platform_interface/test/platform_webview_widget_test.dart +++ b/packages/webview_flutter/webview_flutter_platform_interface/test/platform_webview_widget_test.dart @@ -76,8 +76,7 @@ class MockWebViewWidgetDelegate extends Mock PlatformWebViewWidget {} class ExtendsWebViewWidgetDelegate extends PlatformWebViewWidget { - ExtendsWebViewWidgetDelegate(PlatformWebViewWidgetCreationParams params) - : super.implementation(params); + ExtendsWebViewWidgetDelegate(super.params) : super.implementation(); @override Widget build(BuildContext context) { diff --git a/packages/webview_flutter/webview_flutter_web/CHANGELOG.md b/packages/webview_flutter/webview_flutter_web/CHANGELOG.md index 066e6feeef84..5ce2e1fff47a 100644 --- a/packages/webview_flutter/webview_flutter_web/CHANGELOG.md +++ b/packages/webview_flutter/webview_flutter_web/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 0.2.2+1 * Updates links for the merge of flutter/plugins into flutter/packages. diff --git a/packages/webview_flutter/webview_flutter_web/example/lib/legacy/web_view.dart b/packages/webview_flutter/webview_flutter_web/example/lib/legacy/web_view.dart index b9b8ce23537b..7f1eead8f17b 100644 --- a/packages/webview_flutter/webview_flutter_web/example/lib/legacy/web_view.dart +++ b/packages/webview_flutter/webview_flutter_web/example/lib/legacy/web_view.dart @@ -29,10 +29,10 @@ class WebView extends StatefulWidget { /// The web view can be controlled using a `WebViewController` that is passed to the /// `onWebViewCreated` callback once the web view is created. const WebView({ - Key? key, + super.key, this.onWebViewCreated, this.initialUrl, - }) : super(key: key); + }); /// The WebView platform that's used by this WebView. /// diff --git a/packages/webview_flutter/webview_flutter_web/example/lib/main.dart b/packages/webview_flutter/webview_flutter_web/example/lib/main.dart index ca268a28e47b..092de590e169 100644 --- a/packages/webview_flutter/webview_flutter_web/example/lib/main.dart +++ b/packages/webview_flutter/webview_flutter_web/example/lib/main.dart @@ -16,7 +16,7 @@ void main() { } class _WebViewExample extends StatefulWidget { - const _WebViewExample({Key? key}) : super(key: key); + const _WebViewExample(); @override _WebViewExampleState createState() => _WebViewExampleState(); diff --git a/packages/webview_flutter/webview_flutter_web/example/pubspec.yaml b/packages/webview_flutter/webview_flutter_web/example/pubspec.yaml index 4685135acdf1..695c50edf4b3 100644 --- a/packages/webview_flutter/webview_flutter_web/example/pubspec.yaml +++ b/packages/webview_flutter/webview_flutter_web/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Demonstrates how to use the webview_flutter_web plugin. publish_to: none environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/packages/webview_flutter/webview_flutter_web/pubspec.yaml b/packages/webview_flutter/webview_flutter_web/pubspec.yaml index 1a941d2b0743..44a028fc4d62 100644 --- a/packages/webview_flutter/webview_flutter_web/pubspec.yaml +++ b/packages/webview_flutter/webview_flutter_web/pubspec.yaml @@ -5,7 +5,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 0.2.2+1 environment: - sdk: ">=2.14.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" flutter: diff --git a/packages/webview_flutter/webview_flutter_wkwebview/CHANGELOG.md b/packages/webview_flutter/webview_flutter_wkwebview/CHANGELOG.md index e288962fc2d9..8b4cef0a5f7d 100644 --- a/packages/webview_flutter/webview_flutter_wkwebview/CHANGELOG.md +++ b/packages/webview_flutter/webview_flutter_wkwebview/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Aligns Dart and Flutter SDK constraints. + ## 3.2.0 * Updates minimum Flutter version to 3.3 and iOS 11. diff --git a/packages/webview_flutter/webview_flutter_wkwebview/example/integration_test/legacy/webview_flutter_test.dart b/packages/webview_flutter/webview_flutter_wkwebview/example/integration_test/legacy/webview_flutter_test.dart index f2bae808df3a..5cf10dc2f686 100644 --- a/packages/webview_flutter/webview_flutter_wkwebview/example/integration_test/legacy/webview_flutter_test.dart +++ b/packages/webview_flutter/webview_flutter_wkwebview/example/integration_test/legacy/webview_flutter_test.dart @@ -1209,8 +1209,7 @@ Future _getUserAgent(WebViewController controller) async { class ResizableWebView extends StatefulWidget { const ResizableWebView( - {Key? key, required this.onResize, required this.onPageFinished}) - : super(key: key); + {super.key, required this.onResize, required this.onPageFinished}); final JavascriptMessageHandler onResize; final VoidCallback onPageFinished; diff --git a/packages/webview_flutter/webview_flutter_wkwebview/example/integration_test/webview_flutter_test.dart b/packages/webview_flutter/webview_flutter_wkwebview/example/integration_test/webview_flutter_test.dart index 16411b8140a5..8cd2079af29d 100644 --- a/packages/webview_flutter/webview_flutter_wkwebview/example/integration_test/webview_flutter_test.dart +++ b/packages/webview_flutter/webview_flutter_wkwebview/example/integration_test/webview_flutter_test.dart @@ -1098,10 +1098,10 @@ Future _getUserAgent(PlatformWebViewController controller) async { class ResizableWebView extends StatefulWidget { const ResizableWebView({ - Key? key, + super.key, required this.onResize, required this.onPageFinished, - }) : super(key: key); + }); final VoidCallback onResize; final VoidCallback onPageFinished; diff --git a/packages/webview_flutter/webview_flutter_wkwebview/example/lib/legacy/web_view.dart b/packages/webview_flutter/webview_flutter_wkwebview/example/lib/legacy/web_view.dart index d99b3095abca..8f4d3917de64 100644 --- a/packages/webview_flutter/webview_flutter_wkwebview/example/lib/legacy/web_view.dart +++ b/packages/webview_flutter/webview_flutter_wkwebview/example/lib/legacy/web_view.dart @@ -54,7 +54,7 @@ class WebView extends StatefulWidget { /// /// The `javascriptMode` and `autoMediaPlaybackPolicy` parameters must not be null. const WebView({ - Key? key, + super.key, this.onWebViewCreated, this.initialUrl, this.initialCookies = const [], @@ -76,8 +76,7 @@ class WebView extends StatefulWidget { this.backgroundColor, }) : assert(javascriptMode != null), assert(initialMediaPlaybackPolicy != null), - assert(allowsInlineMediaPlayback != null), - super(key: key); + assert(allowsInlineMediaPlayback != null); /// The WebView platform that's used by this WebView. static final WebViewPlatform platform = CupertinoWebView(); diff --git a/packages/webview_flutter/webview_flutter_wkwebview/example/lib/main.dart b/packages/webview_flutter/webview_flutter_wkwebview/example/lib/main.dart index aef7ece0c2e3..648947567223 100644 --- a/packages/webview_flutter/webview_flutter_wkwebview/example/lib/main.dart +++ b/packages/webview_flutter/webview_flutter_wkwebview/example/lib/main.dart @@ -75,7 +75,7 @@ const String kTransparentBackgroundPage = ''' '''; class WebViewExample extends StatefulWidget { - const WebViewExample({Key? key, this.cookieManager}) : super(key: key); + const WebViewExample({super.key, this.cookieManager}); final PlatformWebViewCookieManager? cookieManager; @@ -194,14 +194,13 @@ enum MenuOptions { class SampleMenu extends StatelessWidget { SampleMenu({ - Key? key, + super.key, required this.webViewController, PlatformWebViewCookieManager? cookieManager, - }) : cookieManager = cookieManager ?? + }) : cookieManager = cookieManager ?? PlatformWebViewCookieManager( const PlatformWebViewCookieManagerCreationParams(), - ), - super(key: key); + ); final PlatformWebViewController webViewController; late final PlatformWebViewCookieManager cookieManager; @@ -458,8 +457,7 @@ class SampleMenu extends StatelessWidget { } class NavigationControls extends StatelessWidget { - const NavigationControls({Key? key, required this.webViewController}) - : super(key: key); + const NavigationControls({super.key, required this.webViewController}); final PlatformWebViewController webViewController; diff --git a/packages/webview_flutter/webview_flutter_wkwebview/example/pubspec.yaml b/packages/webview_flutter/webview_flutter_wkwebview/example/pubspec.yaml index 718eb282018b..3876c6130a03 100644 --- a/packages/webview_flutter/webview_flutter_wkwebview/example/pubspec.yaml +++ b/packages/webview_flutter/webview_flutter_wkwebview/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Demonstrates how to use the webview_flutter_wkwebview plugin. publish_to: none environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.17.0 <3.0.0" flutter: ">=3.0.0" dependencies: diff --git a/script/tool/lib/src/common/core.dart b/script/tool/lib/src/common/core.dart index f0c5b4f514c1..3fcbd10b87b5 100644 --- a/script/tool/lib/src/common/core.dart +++ b/script/tool/lib/src/common/core.dart @@ -4,6 +4,7 @@ import 'package:colorize/colorize.dart'; import 'package:file/file.dart'; +import 'package:pub_semver/pub_semver.dart'; /// The signature for a print handler for commands that allow overriding the /// print destination. @@ -34,6 +35,20 @@ const String kEnableExperiment = 'enable-experiment'; // ignore: public_member_api_docs enum FlutterPlatform { android, ios, linux, macos, web, windows } +// Flutter->Dart SDK version mapping. Any time a command fails to look up a +// corresponding version, this map should be updated. +final Map _dartSdkForFlutterSdk = { + Version(3, 0, 0): Version(2, 17, 0), + Version(3, 0, 5): Version(2, 17, 6), + Version(3, 3, 0): Version(2, 18, 0), + Version(3, 7, 0): Version(2, 19, 0), +}; + +/// Returns the version of the Dart SDK that shipped with the given Flutter +/// SDK. +Version? getDartSdkForFlutterSdk(Version flutterVersion) => + _dartSdkForFlutterSdk[flutterVersion]; + /// Returns whether the given directory is a Dart package. bool isPackage(FileSystemEntity entity) { if (entity is! Directory) { diff --git a/script/tool/lib/src/main.dart b/script/tool/lib/src/main.dart index 0083e0cbb8ee..25e26559d439 100644 --- a/script/tool/lib/src/main.dart +++ b/script/tool/lib/src/main.dart @@ -29,9 +29,10 @@ import 'publish_check_command.dart'; import 'publish_command.dart'; import 'pubspec_check_command.dart'; import 'readme_check_command.dart'; -import 'remove_dev_dependencies.dart'; +import 'remove_dev_dependencies_command.dart'; import 'test_command.dart'; import 'update_excerpts_command.dart'; +import 'update_min_sdk_command.dart'; import 'update_release_info_command.dart'; import 'version_check_command.dart'; import 'xcode_analyze_command.dart'; @@ -77,6 +78,7 @@ void main(List args) { ..addCommand(RemoveDevDependenciesCommand(packagesDir)) ..addCommand(TestCommand(packagesDir)) ..addCommand(UpdateExcerptsCommand(packagesDir)) + ..addCommand(UpdateMinSdkCommand(packagesDir)) ..addCommand(UpdateReleaseInfoCommand(packagesDir)) ..addCommand(VersionCheckCommand(packagesDir)) ..addCommand(XcodeAnalyzeCommand(packagesDir)); diff --git a/script/tool/lib/src/pubspec_check_command.dart b/script/tool/lib/src/pubspec_check_command.dart index f0f80f909667..5033ed454d17 100644 --- a/script/tool/lib/src/pubspec_check_command.dart +++ b/script/tool/lib/src/pubspec_check_command.dart @@ -31,13 +31,6 @@ class PubspecCheckCommand extends PackageLoopingCommand { platform: platform, gitDir: gitDir, ) { - argParser.addOption( - _minMinDartVersionFlag, - help: - 'The minimum Dart version to allow as the minimum SDK constraint.\n\n' - 'This is only enforced for non-Flutter packages; Flutter packages ' - 'use --$_minMinFlutterVersionFlag', - ); argParser.addOption( _minMinFlutterVersionFlag, help: @@ -45,7 +38,6 @@ class PubspecCheckCommand extends PackageLoopingCommand { ); } - static const String _minMinDartVersionFlag = 'min-min-dart-version'; static const String _minMinFlutterVersionFlag = 'min-min-flutter-version'; // Section order for plugins. Because the 'flutter' section is critical @@ -117,15 +109,11 @@ class PubspecCheckCommand extends PackageLoopingCommand { printError('$listIndentation${sectionOrder.join('\n$listIndentation')}'); } - final String minMinDartVersionString = getStringArg(_minMinDartVersionFlag); final String minMinFlutterVersionString = getStringArg(_minMinFlutterVersionFlag); final String? minVersionError = _checkForMinimumVersionError( pubspec, package, - minMinDartVersion: minMinDartVersionString.isEmpty - ? null - : Version.parse(minMinDartVersionString), minMinFlutterVersion: minMinFlutterVersionString.isEmpty ? null : Version.parse(minMinFlutterVersionString), @@ -368,33 +356,74 @@ class PubspecCheckCommand extends PackageLoopingCommand { String? _checkForMinimumVersionError( Pubspec pubspec, RepositoryPackage package, { - Version? minMinDartVersion, Version? minMinFlutterVersion, }) { - final VersionConstraint? dartConstraint = pubspec.environment?['sdk']; - final VersionConstraint? flutterConstraint = - pubspec.environment?['flutter']; - - if (flutterConstraint != null) { - // Validate Flutter packages against the Flutter requirement. - if (minMinFlutterVersion != null) { - final Version? constraintMin = - flutterConstraint is VersionRange ? flutterConstraint.min : null; - if ((constraintMin ?? Version(0, 0, 0)) < minMinFlutterVersion) { - return 'Minimum allowed Flutter version $constraintMin is less than $minMinFlutterVersion'; - } + String unknownDartVersionError(Version flutterVersion) { + return 'Dart SDK version for Fluter SDK version ' + '$flutterVersion is unknown. ' + 'Please update the map for getDartSdkForFlutterSdk with the ' + 'corresponding Dart version.'; + } + + Version? minMinDartVersion; + if (minMinFlutterVersion != null) { + minMinDartVersion = getDartSdkForFlutterSdk(minMinFlutterVersion); + if (minMinDartVersion == null) { + return unknownDartVersionError(minMinFlutterVersion); } - } else { - // Validate non-Flutter packages against the Dart requirement. + } + + final Version? dartConstraintMin = + _minimumForConstraint(pubspec.environment?['sdk']); + final Version? flutterConstraintMin = + _minimumForConstraint(pubspec.environment?['flutter']); + + // Validate the Flutter constraint, if any. + if (flutterConstraintMin != null && minMinFlutterVersion != null) { + if (flutterConstraintMin < minMinFlutterVersion) { + return 'Minimum allowed Flutter version $flutterConstraintMin is less ' + 'than $minMinFlutterVersion'; + } + } + + // Validate the Dart constraint, if any. + if (dartConstraintMin != null) { + // Ensure that it satisfies the minimum. if (minMinDartVersion != null) { - final Version? constraintMin = - dartConstraint is VersionRange ? dartConstraint.min : null; - if ((constraintMin ?? Version(0, 0, 0)) < minMinDartVersion) { - return 'Minimum allowed Dart version $constraintMin is less than $minMinDartVersion'; + if (dartConstraintMin < minMinDartVersion) { + return 'Minimum allowed Dart version $dartConstraintMin is less than $minMinDartVersion'; + } + } + + // Ensure that if there is also a Flutter constraint, they are consistent. + if (flutterConstraintMin != null) { + final Version? dartVersionForFlutterMinimum = + getDartSdkForFlutterSdk(flutterConstraintMin); + if (dartVersionForFlutterMinimum == null) { + return unknownDartVersionError(flutterConstraintMin); + } + if (dartVersionForFlutterMinimum != dartConstraintMin) { + return 'The minimum Dart version is $dartConstraintMin, but the ' + 'minimum Flutter version of $flutterConstraintMin shipped with ' + 'Dart $dartVersionForFlutterMinimum. Please use consistent lower ' + 'SDK bounds'; } } } return null; } + + /// Returns the minumum version allowed by [constraint], or null if the + /// constraint is null. + Version? _minimumForConstraint(VersionConstraint? constraint) { + if (constraint == null) { + return null; + } + Version? result; + if (constraint is VersionRange) { + result = constraint.min; + } + return result ?? Version.none; + } } diff --git a/script/tool/lib/src/remove_dev_dependencies.dart b/script/tool/lib/src/remove_dev_dependencies_command.dart similarity index 100% rename from script/tool/lib/src/remove_dev_dependencies.dart rename to script/tool/lib/src/remove_dev_dependencies_command.dart diff --git a/script/tool/lib/src/update_min_sdk_command.dart b/script/tool/lib/src/update_min_sdk_command.dart new file mode 100644 index 000000000000..0d01e8429961 --- /dev/null +++ b/script/tool/lib/src/update_min_sdk_command.dart @@ -0,0 +1,101 @@ +// Copyright 2013 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:file/file.dart'; +import 'package:pub_semver/pub_semver.dart'; +import 'package:yaml_edit/yaml_edit.dart'; + +import 'common/core.dart'; +import 'common/package_looping_command.dart'; +import 'common/repository_package.dart'; + +const int _exitUnknownVersion = 3; + +/// A command to update the minimum Flutter and Dart SDKs of packages. +class UpdateMinSdkCommand extends PackageLoopingCommand { + /// Creates a publish metadata updater command instance. + UpdateMinSdkCommand(Directory packagesDir) : super(packagesDir) { + argParser.addOption(_flutterMinFlag, + mandatory: true, + help: 'The minimum version of Flutter to set SDK constraints to.'); + } + + static const String _flutterMinFlag = 'flutter-min'; + + late final Version _flutterMinVersion; + late final Version _dartMinVersion; + + @override + final String name = 'update-min-sdk'; + + @override + final String description = 'Updates the Flutter and Dart SDK minimums ' + 'in pubspec.yaml to match the given Flutter version.'; + + @override + final PackageLoopingType packageLoopingType = + PackageLoopingType.includeAllSubpackages; + + @override + bool get hasLongOutput => false; + + @override + Future initializeRun() async { + _flutterMinVersion = Version.parse(getStringArg(_flutterMinFlag)); + final Version? dartMinVersion = getDartSdkForFlutterSdk(_flutterMinVersion); + if (dartMinVersion == null) { + printError('Dart SDK version for Fluter SDK version ' + '$_flutterMinVersion is unknown. ' + 'Please update the map for getDartSdkForFlutterSdk with the ' + 'corresponding Dart version.'); + throw ToolExit(_exitUnknownVersion); + } + _dartMinVersion = dartMinVersion; + } + + @override + Future runForPackage(RepositoryPackage package) async { + final Pubspec pubspec = package.parsePubspec(); + + const String environmentKey = 'environment'; + const String dartSdkKey = 'sdk'; + const String flutterSdkKey = 'flutter'; + + final VersionRange? dartRange = _sdkRange(pubspec, dartSdkKey); + final VersionRange? flutterRange = _sdkRange(pubspec, flutterSdkKey); + + final YamlEditor editablePubspec = + YamlEditor(package.pubspecFile.readAsStringSync()); + if (dartRange != null && + (dartRange.min ?? Version.none) < _dartMinVersion) { + editablePubspec.update( + [environmentKey, dartSdkKey], + VersionRange( + min: _dartMinVersion, + includeMin: true, + max: _dartMinVersion.nextMajor) + .toString()); + print('${indentation}Updating Dart minimum to $_dartMinVersion'); + } + if (flutterRange != null && + (flutterRange.min ?? Version.none) < _flutterMinVersion) { + editablePubspec.update([environmentKey, flutterSdkKey], + VersionRange(min: _flutterMinVersion, includeMin: true).toString()); + print('${indentation}Updating Flutter minimum to $_flutterMinVersion'); + } + package.pubspecFile.writeAsStringSync(editablePubspec.toString()); + + return PackageResult.success(); + } + + /// Returns the given "environment" section's [key] constraint as a range, + /// if the key is present and has a range. + VersionRange? _sdkRange(Pubspec pubspec, String key) { + final VersionConstraint? constraint = pubspec.environment?[key]; + if (constraint is VersionRange) { + return constraint; + } + return null; + } +} diff --git a/script/tool/test/pubspec_check_command_test.dart b/script/tool/test/pubspec_check_command_test.dart index 69a75c7f962f..c6c7b8bf80d2 100644 --- a/script/tool/test/pubspec_check_command_test.dart +++ b/script/tool/test/pubspec_check_command_test.dart @@ -58,8 +58,8 @@ ${publishable ? '' : "publish_to: 'none'"} } String _environmentSection({ - String dartConstraint = '>=2.12.0 <3.0.0', - String? flutterConstraint = '>=2.0.0', + String dartConstraint = '>=2.17.0 <3.0.0', + String? flutterConstraint = '>=3.0.0', }) { return [ 'environment:', @@ -995,12 +995,12 @@ ${_dependenciesSection()} package.pubspecFile.writeAsStringSync(''' ${_headerSection('a_package')} -${_environmentSection(flutterConstraint: '>=3.0.0')} +${_environmentSection(flutterConstraint: '>=3.3.0', dartConstraint: '>=2.18.0 <3.0.0')} ${_dependenciesSection()} '''); final List output = await runCapturingPrint(runner, - ['pubspec-check', '--min-min-flutter-version', '3.0.0']); + ['pubspec-check', '--min-min-flutter-version', '3.3.0']); expect( output, @@ -1020,12 +1020,12 @@ ${_dependenciesSection()} package.pubspecFile.writeAsStringSync(''' ${_headerSection('a_package')} -${_environmentSection(flutterConstraint: '>=3.3.0')} +${_environmentSection(flutterConstraint: '>=3.7.0', dartConstraint: '>=2.19.0 <3.0.0')} ${_dependenciesSection()} '''); final List output = await runCapturingPrint(runner, - ['pubspec-check', '--min-min-flutter-version', '3.0.0']); + ['pubspec-check', '--min-min-flutter-version', '3.3.0']); expect( output, @@ -1048,9 +1048,11 @@ ${_dependenciesSection()} '''); Error? commandError; - final List output = await runCapturingPrint( - runner, ['pubspec-check', '--min-min-dart-version', '2.17.0'], - errorHandler: (Error e) { + final List output = await runCapturingPrint(runner, [ + 'pubspec-check', + '--min-min-flutter-version', + '3.0.0' + ], errorHandler: (Error e) { commandError = e; }); @@ -1072,12 +1074,12 @@ ${_dependenciesSection()} package.pubspecFile.writeAsStringSync(''' ${_headerSection('a_package')} -${_environmentSection(dartConstraint: '>=2.17.0 <3.0.0', flutterConstraint: null)} +${_environmentSection(dartConstraint: '>=2.18.0 <3.0.0', flutterConstraint: null)} ${_dependenciesSection()} '''); final List output = await runCapturingPrint(runner, - ['pubspec-check', '--min-min-dart-version', '2.17.0']); + ['pubspec-check', '--min-min-flutter-version', '3.3.0']); expect( output, @@ -1102,7 +1104,7 @@ ${_dependenciesSection()} '''); final List output = await runCapturingPrint(runner, - ['pubspec-check', '--min-min-dart-version', '2.17.0']); + ['pubspec-check', '--min-min-flutter-version', '3.0.0']); expect( output, @@ -1112,6 +1114,66 @@ ${_dependenciesSection()} ]), ); }); + + test('fails when a Flutter->Dart SDK version mapping is missing', () async { + final RepositoryPackage package = + createFakePackage('a_package', packagesDir, examples: []); + + package.pubspecFile.writeAsStringSync(''' +${_headerSection('a_package')} +${_environmentSection()} +${_dependenciesSection()} +'''); + + Error? commandError; + final List output = await runCapturingPrint(runner, [ + 'pubspec-check', + '--min-min-flutter-version', + '2.0.0' + ], errorHandler: (Error e) { + commandError = e; + }); + + expect(commandError, isA()); + expect( + output, + containsAllInOrder([ + contains('Dart SDK version for Fluter SDK version 2.0.0 is unknown'), + ]), + ); + }); + + test( + 'fails when a Flutter package has a too-low minimum Dart version for ' + 'the corresponding minimum Flutter version', () async { + final RepositoryPackage package = createFakePackage( + 'a_package', packagesDir, + isFlutter: true, examples: []); + + package.pubspecFile.writeAsStringSync(''' +${_headerSection('a_package')} +${_environmentSection(flutterConstraint: '>=3.3.0', dartConstraint: '>=2.16.0 <3.0.0')} +${_dependenciesSection()} +'''); + + Error? commandError; + final List output = await runCapturingPrint(runner, [ + 'pubspec-check', + ], errorHandler: (Error e) { + commandError = e; + }); + + expect(commandError, isA()); + expect( + output, + containsAllInOrder([ + contains('The minimum Dart version is 2.16.0, but the ' + 'minimum Flutter version of 3.3.0 shipped with ' + 'Dart 2.18.0. Please use consistent lower SDK ' + 'bounds'), + ]), + ); + }); }); group('test pubspec_check_command on Windows', () { diff --git a/script/tool/test/remove_dev_dependencies_test.dart b/script/tool/test/remove_dev_dependencies_command_test.dart similarity index 99% rename from script/tool/test/remove_dev_dependencies_test.dart rename to script/tool/test/remove_dev_dependencies_command_test.dart index 776cbf197838..e453ff680e19 100644 --- a/script/tool/test/remove_dev_dependencies_test.dart +++ b/script/tool/test/remove_dev_dependencies_command_test.dart @@ -5,7 +5,7 @@ import 'package:args/command_runner.dart'; import 'package:file/file.dart'; import 'package:file/memory.dart'; -import 'package:flutter_plugin_tools/src/remove_dev_dependencies.dart'; +import 'package:flutter_plugin_tools/src/remove_dev_dependencies_command.dart'; import 'package:test/test.dart'; import 'util.dart'; diff --git a/script/tool/test/update_min_sdk_command_test.dart b/script/tool/test/update_min_sdk_command_test.dart new file mode 100644 index 000000000000..30b82e3bdca3 --- /dev/null +++ b/script/tool/test/update_min_sdk_command_test.dart @@ -0,0 +1,114 @@ +// Copyright 2013 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:args/command_runner.dart'; +import 'package:file/file.dart'; +import 'package:file/memory.dart'; +import 'package:flutter_plugin_tools/src/update_min_sdk_command.dart'; +import 'package:test/test.dart'; + +import 'util.dart'; + +void main() { + late FileSystem fileSystem; + late Directory packagesDir; + late CommandRunner runner; + + setUp(() { + fileSystem = MemoryFileSystem(); + packagesDir = createPackagesDirectory(fileSystem: fileSystem); + + final UpdateMinSdkCommand command = UpdateMinSdkCommand( + packagesDir, + ); + runner = CommandRunner( + 'update_min_sdk_command', 'Test for update_min_sdk_command'); + runner.addCommand(command); + }); + + test('fails if --flutter-min is missing', () async { + Exception? commandError; + await runCapturingPrint(runner, [ + 'update-min-sdk', + ], exceptionHandler: (Exception e) { + commandError = e; + }); + + expect(commandError, isA()); + }); + + test('updates Dart when only Dart is present', () async { + final RepositoryPackage package = createFakePackage( + 'a_package', packagesDir, + dartConstraint: '>=2.12.0 <3.0.0'); + + await runCapturingPrint(runner, [ + 'update-min-sdk', + '--flutter-min', + '3.3.0', // Corresponds to Dart 2.18.0 + ]); + + final String dartVersion = + package.parsePubspec().environment?['sdk'].toString() ?? ''; + expect(dartVersion, '>=2.18.0 <3.0.0'); + }); + + test('does not update Dart if it is already higher', () async { + final RepositoryPackage package = createFakePackage( + 'a_package', packagesDir, + dartConstraint: '>=2.19.0 <3.0.0'); + + await runCapturingPrint(runner, [ + 'update-min-sdk', + '--flutter-min', + '3.3.0', // Corresponds to Dart 2.18.0 + ]); + + final String dartVersion = + package.parsePubspec().environment?['sdk'].toString() ?? ''; + expect(dartVersion, '>=2.19.0 <3.0.0'); + }); + + test('updates both Dart and Flutter when both are present', () async { + final RepositoryPackage package = createFakePackage( + 'a_package', packagesDir, + isFlutter: true, + dartConstraint: '>=2.12.0 <3.0.0', + flutterConstraint: '>=2.10.0'); + + await runCapturingPrint(runner, [ + 'update-min-sdk', + '--flutter-min', + '3.3.0', // Corresponds to Dart 2.18.0 + ]); + + final String dartVersion = + package.parsePubspec().environment?['sdk'].toString() ?? ''; + final String flutterVersion = + package.parsePubspec().environment?['flutter'].toString() ?? ''; + expect(dartVersion, '>=2.18.0 <3.0.0'); + expect(flutterVersion, '>=3.3.0'); + }); + + test('does not update Flutter if it is already higher', () async { + final RepositoryPackage package = createFakePackage( + 'a_package', packagesDir, + isFlutter: true, + dartConstraint: '>=2.19.0 <3.0.0', + flutterConstraint: '>=3.7.0'); + + await runCapturingPrint(runner, [ + 'update-min-sdk', + '--flutter-min', + '3.3.0', // Corresponds to Dart 2.18.0 + ]); + + final String dartVersion = + package.parsePubspec().environment?['sdk'].toString() ?? ''; + final String flutterVersion = + package.parsePubspec().environment?['flutter'].toString() ?? ''; + expect(dartVersion, '>=2.19.0 <3.0.0'); + expect(flutterVersion, '>=3.7.0'); + }); +} diff --git a/third_party/packages/cupertino_icons/CHANGELOG.md b/third_party/packages/cupertino_icons/CHANGELOG.md index 3515eb31cc30..982384b52ad5 100644 --- a/third_party/packages/cupertino_icons/CHANGELOG.md +++ b/third_party/packages/cupertino_icons/CHANGELOG.md @@ -1,5 +1,7 @@ ## NEXT +* Aligns Dart and Flutter SDK constraints. +* Aligns Dart and Flutter SDK constraints. * Updates minimum SDK version to Flutter 3.0. ## 1.0.5