diff --git a/examples/_animation/basic_hero_animation/pubspec.yaml b/examples/_animation/basic_hero_animation/pubspec.yaml index cc4a0e1eda3..452cb540e7a 100644 --- a/examples/_animation/basic_hero_animation/pubspec.yaml +++ b/examples/_animation/basic_hero_animation/pubspec.yaml @@ -5,7 +5,7 @@ description: >- resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/_animation/basic_radial_hero_animation/pubspec.yaml b/examples/_animation/basic_radial_hero_animation/pubspec.yaml index 923af53b8d9..e09286c618b 100644 --- a/examples/_animation/basic_radial_hero_animation/pubspec.yaml +++ b/examples/_animation/basic_radial_hero_animation/pubspec.yaml @@ -6,7 +6,7 @@ description: >- resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/_animation/basic_staggered_animation/pubspec.yaml b/examples/_animation/basic_staggered_animation/pubspec.yaml index fec2ecd870f..e5eadb49c2d 100644 --- a/examples/_animation/basic_staggered_animation/pubspec.yaml +++ b/examples/_animation/basic_staggered_animation/pubspec.yaml @@ -4,7 +4,7 @@ description: An introductory example to staggered animations. resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/_animation/hero_animation/pubspec.yaml b/examples/_animation/hero_animation/pubspec.yaml index aa986479b81..8e00c7d92bd 100644 --- a/examples/_animation/hero_animation/pubspec.yaml +++ b/examples/_animation/hero_animation/pubspec.yaml @@ -4,7 +4,7 @@ description: Shows how to create a simple Hero transition. resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/_animation/radial_hero_animation/pubspec.yaml b/examples/_animation/radial_hero_animation/pubspec.yaml index ddbb1618bab..f0a50efef70 100644 --- a/examples/_animation/radial_hero_animation/pubspec.yaml +++ b/examples/_animation/radial_hero_animation/pubspec.yaml @@ -6,7 +6,7 @@ description: >- resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/_animation/radial_hero_animation_animate_rectclip/pubspec.yaml b/examples/_animation/radial_hero_animation_animate_rectclip/pubspec.yaml index 511387bc646..140956d18b5 100644 --- a/examples/_animation/radial_hero_animation_animate_rectclip/pubspec.yaml +++ b/examples/_animation/radial_hero_animation_animate_rectclip/pubspec.yaml @@ -6,7 +6,7 @@ description: >- resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/_animation/staggered_pic_selection/pubspec.yaml b/examples/_animation/staggered_pic_selection/pubspec.yaml index af0ad5c1c5f..0b86b29dece 100644 --- a/examples/_animation/staggered_pic_selection/pubspec.yaml +++ b/examples/_animation/staggered_pic_selection/pubspec.yaml @@ -4,7 +4,7 @@ description: A more complex staggered animation example. resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/accessibility/pubspec.yaml b/examples/accessibility/pubspec.yaml index 30d6d9a6df4..08ac73ef9b3 100644 --- a/examples/accessibility/pubspec.yaml +++ b/examples/accessibility/pubspec.yaml @@ -5,7 +5,7 @@ publish_to: none resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/analysis_options.yaml b/examples/analysis_options.yaml index 66d698da6e8..a53c0054de3 100644 --- a/examples/analysis_options.yaml +++ b/examples/analysis_options.yaml @@ -37,7 +37,9 @@ linter: - prefer_final_fields - prefer_relative_imports - prefer_single_quotes + - simplify_variable_pattern - sort_unnamed_constructors_first + - specify_nonobvious_property_types - strict_top_level_inference - switch_on_type - test_types_in_equals diff --git a/examples/animation/animate0/pubspec.yaml b/examples/animation/animate0/pubspec.yaml index 5711059279a..c7bd2694c89 100644 --- a/examples/animation/animate0/pubspec.yaml +++ b/examples/animation/animate0/pubspec.yaml @@ -6,7 +6,7 @@ version: 1.0.0 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/animation/animate1/pubspec.yaml b/examples/animation/animate1/pubspec.yaml index 3ad85acc0d7..026e6dde106 100644 --- a/examples/animation/animate1/pubspec.yaml +++ b/examples/animation/animate1/pubspec.yaml @@ -6,7 +6,7 @@ version: 1.0.0 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/animation/animate2/pubspec.yaml b/examples/animation/animate2/pubspec.yaml index f13b7eb4793..2c85add160f 100644 --- a/examples/animation/animate2/pubspec.yaml +++ b/examples/animation/animate2/pubspec.yaml @@ -6,7 +6,7 @@ version: 1.0.0 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/animation/animate3/pubspec.yaml b/examples/animation/animate3/pubspec.yaml index 46c72e44da8..99639d6afb1 100644 --- a/examples/animation/animate3/pubspec.yaml +++ b/examples/animation/animate3/pubspec.yaml @@ -6,7 +6,7 @@ version: 1.0.0 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/animation/animate4/pubspec.yaml b/examples/animation/animate4/pubspec.yaml index bc10124af3a..add514f1ff4 100644 --- a/examples/animation/animate4/pubspec.yaml +++ b/examples/animation/animate4/pubspec.yaml @@ -6,7 +6,7 @@ version: 1.0.0 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/animation/animate5/pubspec.yaml b/examples/animation/animate5/pubspec.yaml index 71cafc3bb67..b5aa9b8e782 100644 --- a/examples/animation/animate5/pubspec.yaml +++ b/examples/animation/animate5/pubspec.yaml @@ -6,7 +6,7 @@ version: 1.0.0 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/app-architecture/command/pubspec.yaml b/examples/app-architecture/command/pubspec.yaml index e61093a2cbc..9d3625d102a 100644 --- a/examples/app-architecture/command/pubspec.yaml +++ b/examples/app-architecture/command/pubspec.yaml @@ -3,7 +3,7 @@ description: Example for command cookbook recipe resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/app-architecture/offline_first/pubspec.yaml b/examples/app-architecture/offline_first/pubspec.yaml index ad9c6e95680..10423847802 100644 --- a/examples/app-architecture/offline_first/pubspec.yaml +++ b/examples/app-architecture/offline_first/pubspec.yaml @@ -3,7 +3,7 @@ description: Example for offline_first cookbook recipe resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/app-architecture/optimistic_state/pubspec.yaml b/examples/app-architecture/optimistic_state/pubspec.yaml index 63d76d6b0d5..0bbe011daff 100644 --- a/examples/app-architecture/optimistic_state/pubspec.yaml +++ b/examples/app-architecture/optimistic_state/pubspec.yaml @@ -3,7 +3,7 @@ description: Example for optimistic_state cookbook recipe resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/app-architecture/result/pubspec.yaml b/examples/app-architecture/result/pubspec.yaml index c4af6b828cd..53579891250 100644 --- a/examples/app-architecture/result/pubspec.yaml +++ b/examples/app-architecture/result/pubspec.yaml @@ -3,7 +3,7 @@ description: Example for result cookbook recipe resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/app-architecture/todo_data_service/pubspec.yaml b/examples/app-architecture/todo_data_service/pubspec.yaml index 47f3b789590..d20f7801329 100644 --- a/examples/app-architecture/todo_data_service/pubspec.yaml +++ b/examples/app-architecture/todo_data_service/pubspec.yaml @@ -3,7 +3,7 @@ description: Example for key_value_data cookbook recipe resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/animation/animated_container/pubspec.yaml b/examples/cookbook/animation/animated_container/pubspec.yaml index 73f8a999aff..f43c4febd7a 100644 --- a/examples/cookbook/animation/animated_container/pubspec.yaml +++ b/examples/cookbook/animation/animated_container/pubspec.yaml @@ -3,7 +3,7 @@ description: Sample code for cookbook. resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/animation/opacity_animation/pubspec.yaml b/examples/cookbook/animation/opacity_animation/pubspec.yaml index 4057999250b..ae343964a53 100644 --- a/examples/cookbook/animation/opacity_animation/pubspec.yaml +++ b/examples/cookbook/animation/opacity_animation/pubspec.yaml @@ -3,7 +3,7 @@ description: Sample code for cookbook. resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/animation/page_route_animation/pubspec.yaml b/examples/cookbook/animation/page_route_animation/pubspec.yaml index 04ae456a310..647f1aefe80 100644 --- a/examples/cookbook/animation/page_route_animation/pubspec.yaml +++ b/examples/cookbook/animation/page_route_animation/pubspec.yaml @@ -3,7 +3,7 @@ description: Sample code for cookbook. resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/animation/physics_simulation/pubspec.yaml b/examples/cookbook/animation/physics_simulation/pubspec.yaml index 5042d933bb9..3355fc0989a 100644 --- a/examples/cookbook/animation/physics_simulation/pubspec.yaml +++ b/examples/cookbook/animation/physics_simulation/pubspec.yaml @@ -3,7 +3,7 @@ description: Sample code for cookbook. resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/design/drawer/pubspec.yaml b/examples/cookbook/design/drawer/pubspec.yaml index e6596d3828d..11b935bdb4a 100644 --- a/examples/cookbook/design/drawer/pubspec.yaml +++ b/examples/cookbook/design/drawer/pubspec.yaml @@ -3,7 +3,7 @@ description: Sample code for drawer cookbook recipe. resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/design/fonts/pubspec.yaml b/examples/cookbook/design/fonts/pubspec.yaml index c6073d5b597..d329b5580c8 100644 --- a/examples/cookbook/design/fonts/pubspec.yaml +++ b/examples/cookbook/design/fonts/pubspec.yaml @@ -5,7 +5,7 @@ version: 1.0.0+1 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/design/orientation/pubspec.yaml b/examples/cookbook/design/orientation/pubspec.yaml index cb8203767a2..b7c08105482 100644 --- a/examples/cookbook/design/orientation/pubspec.yaml +++ b/examples/cookbook/design/orientation/pubspec.yaml @@ -3,7 +3,7 @@ description: Sample code for orientation cookbook recipe. resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/design/package_fonts/pubspec.yaml b/examples/cookbook/design/package_fonts/pubspec.yaml index 1b1f4a94a35..750cb218bd3 100644 --- a/examples/cookbook/design/package_fonts/pubspec.yaml +++ b/examples/cookbook/design/package_fonts/pubspec.yaml @@ -5,7 +5,7 @@ version: 1.0.0+1 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/design/snackbars/pubspec.yaml b/examples/cookbook/design/snackbars/pubspec.yaml index 9d21917247c..049b7568ca7 100644 --- a/examples/cookbook/design/snackbars/pubspec.yaml +++ b/examples/cookbook/design/snackbars/pubspec.yaml @@ -3,7 +3,7 @@ description: Sample code for snackbars cookbook recipe. resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/design/tabs/pubspec.yaml b/examples/cookbook/design/tabs/pubspec.yaml index 63bcb11813d..dd805ef130c 100644 --- a/examples/cookbook/design/tabs/pubspec.yaml +++ b/examples/cookbook/design/tabs/pubspec.yaml @@ -3,7 +3,7 @@ description: Sample code for tabs cookbook recipe. resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/design/themes/pubspec.yaml b/examples/cookbook/design/themes/pubspec.yaml index 86c19f80813..1aae8bf2e82 100644 --- a/examples/cookbook/design/themes/pubspec.yaml +++ b/examples/cookbook/design/themes/pubspec.yaml @@ -3,12 +3,12 @@ description: Sample code for themes cookbook recipe. resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: sdk: flutter - google_fonts: ^7.0.0 + google_fonts: ^8.0.0 flutter: uses-material-design: true diff --git a/examples/cookbook/effects/download_button/pubspec.yaml b/examples/cookbook/effects/download_button/pubspec.yaml index c583790bce0..5d1a3aff6f8 100644 --- a/examples/cookbook/effects/download_button/pubspec.yaml +++ b/examples/cookbook/effects/download_button/pubspec.yaml @@ -5,7 +5,7 @@ version: 1.0.0+1 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/effects/drag_a_widget/pubspec.yaml b/examples/cookbook/effects/drag_a_widget/pubspec.yaml index 14dd510f0b4..401a966e752 100644 --- a/examples/cookbook/effects/drag_a_widget/pubspec.yaml +++ b/examples/cookbook/effects/drag_a_widget/pubspec.yaml @@ -7,7 +7,7 @@ version: 1.0.0+1 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/effects/expandable_fab/pubspec.yaml b/examples/cookbook/effects/expandable_fab/pubspec.yaml index 39ab671d30a..7963d1092f8 100644 --- a/examples/cookbook/effects/expandable_fab/pubspec.yaml +++ b/examples/cookbook/effects/expandable_fab/pubspec.yaml @@ -6,7 +6,7 @@ version: 1.0.0+1 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/effects/gradient_bubbles/pubspec.yaml b/examples/cookbook/effects/gradient_bubbles/pubspec.yaml index f0f38e21bd4..efca27919ed 100644 --- a/examples/cookbook/effects/gradient_bubbles/pubspec.yaml +++ b/examples/cookbook/effects/gradient_bubbles/pubspec.yaml @@ -5,7 +5,7 @@ version: 1.0.0+1 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/effects/nested_nav/pubspec.yaml b/examples/cookbook/effects/nested_nav/pubspec.yaml index f89f0096fa9..fe6c2cd61d9 100644 --- a/examples/cookbook/effects/nested_nav/pubspec.yaml +++ b/examples/cookbook/effects/nested_nav/pubspec.yaml @@ -7,7 +7,7 @@ version: 1.0.0+1 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/effects/parallax_scrolling/pubspec.yaml b/examples/cookbook/effects/parallax_scrolling/pubspec.yaml index b9cbafb93dd..3d8b960b578 100644 --- a/examples/cookbook/effects/parallax_scrolling/pubspec.yaml +++ b/examples/cookbook/effects/parallax_scrolling/pubspec.yaml @@ -7,7 +7,7 @@ version: 1.0.0+1 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/effects/shimmer_loading/pubspec.yaml b/examples/cookbook/effects/shimmer_loading/pubspec.yaml index e16b5b4ce67..601103143cb 100644 --- a/examples/cookbook/effects/shimmer_loading/pubspec.yaml +++ b/examples/cookbook/effects/shimmer_loading/pubspec.yaml @@ -7,7 +7,7 @@ version: 1.0.0+1 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/effects/staggered_menu_animation/lib/animation_delays.dart b/examples/cookbook/effects/staggered_menu_animation/lib/animation_delays.dart index 74c73595d66..4ffda0e0593 100644 --- a/examples/cookbook/effects/staggered_menu_animation/lib/animation_delays.dart +++ b/examples/cookbook/effects/staggered_menu_animation/lib/animation_delays.dart @@ -16,7 +16,7 @@ class _MenuState extends State with SingleTickerProviderStateMixin { static const _staggerTime = Duration(milliseconds: 50); static const _buttonDelayTime = Duration(milliseconds: 150); static const _buttonTime = Duration(milliseconds: 500); - final _animationDuration = + final Duration _animationDuration = _initialDelayTime + (_staggerTime * _menuTitles.length) + _buttonDelayTime + diff --git a/examples/cookbook/effects/staggered_menu_animation/lib/main.dart b/examples/cookbook/effects/staggered_menu_animation/lib/main.dart index 94da791eb0f..41fd51ef116 100644 --- a/examples/cookbook/effects/staggered_menu_animation/lib/main.dart +++ b/examples/cookbook/effects/staggered_menu_animation/lib/main.dart @@ -127,7 +127,7 @@ class _MenuState extends State with SingleTickerProviderStateMixin { static const _staggerTime = Duration(milliseconds: 50); static const _buttonDelayTime = Duration(milliseconds: 150); static const _buttonTime = Duration(milliseconds: 500); - final _animationDuration = + final Duration _animationDuration = _initialDelayTime + (_staggerTime * _menuTitles.length) + _buttonDelayTime + diff --git a/examples/cookbook/effects/staggered_menu_animation/lib/step3.dart b/examples/cookbook/effects/staggered_menu_animation/lib/step3.dart index cd0016bff77..310d2993d2f 100644 --- a/examples/cookbook/effects/staggered_menu_animation/lib/step3.dart +++ b/examples/cookbook/effects/staggered_menu_animation/lib/step3.dart @@ -59,7 +59,7 @@ class _MenuState extends State with SingleTickerProviderStateMixin { static const _staggerTime = Duration(milliseconds: 50); static const _buttonDelayTime = Duration(milliseconds: 150); static const _buttonTime = Duration(milliseconds: 500); - final _animationDuration = + final Duration _animationDuration = _initialDelayTime + (_staggerTime * _menuTitles.length) + _buttonDelayTime + diff --git a/examples/cookbook/effects/staggered_menu_animation/lib/step4.dart b/examples/cookbook/effects/staggered_menu_animation/lib/step4.dart index 18c93bbe6cc..4a78dcc4547 100644 --- a/examples/cookbook/effects/staggered_menu_animation/lib/step4.dart +++ b/examples/cookbook/effects/staggered_menu_animation/lib/step4.dart @@ -69,7 +69,7 @@ class _MenuState extends State with SingleTickerProviderStateMixin { static const _staggerTime = Duration(milliseconds: 50); static const _buttonDelayTime = Duration(milliseconds: 150); static const _buttonTime = Duration(milliseconds: 500); - final _animationDuration = + final Duration _animationDuration = _initialDelayTime + (_staggerTime * _menuTitles.length) + _buttonDelayTime + diff --git a/examples/cookbook/effects/staggered_menu_animation/pubspec.yaml b/examples/cookbook/effects/staggered_menu_animation/pubspec.yaml index b8dc8e22303..5efea85222f 100644 --- a/examples/cookbook/effects/staggered_menu_animation/pubspec.yaml +++ b/examples/cookbook/effects/staggered_menu_animation/pubspec.yaml @@ -7,7 +7,7 @@ version: 1.0.0+1 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/effects/typing_indicator/pubspec.yaml b/examples/cookbook/effects/typing_indicator/pubspec.yaml index fd5e513e964..62b73a888ff 100644 --- a/examples/cookbook/effects/typing_indicator/pubspec.yaml +++ b/examples/cookbook/effects/typing_indicator/pubspec.yaml @@ -6,7 +6,7 @@ version: 1.0.0+1 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/forms/focus/pubspec.yaml b/examples/cookbook/forms/focus/pubspec.yaml index c8d3c62283a..1ad5e388e0f 100644 --- a/examples/cookbook/forms/focus/pubspec.yaml +++ b/examples/cookbook/forms/focus/pubspec.yaml @@ -3,7 +3,7 @@ description: Sample code for focus cookbook recipe. resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/forms/retrieve_input/pubspec.yaml b/examples/cookbook/forms/retrieve_input/pubspec.yaml index fece8e65190..baf3ca58664 100644 --- a/examples/cookbook/forms/retrieve_input/pubspec.yaml +++ b/examples/cookbook/forms/retrieve_input/pubspec.yaml @@ -3,7 +3,7 @@ description: Sample code for retrieve_input cookbook recipe. resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/forms/text_field_changes/pubspec.yaml b/examples/cookbook/forms/text_field_changes/pubspec.yaml index 51ec9a60594..efb7cc39fd1 100644 --- a/examples/cookbook/forms/text_field_changes/pubspec.yaml +++ b/examples/cookbook/forms/text_field_changes/pubspec.yaml @@ -3,7 +3,7 @@ description: Sample code for text_field_changes resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/forms/text_input/pubspec.yaml b/examples/cookbook/forms/text_input/pubspec.yaml index 8bb9be098b9..ef20a535032 100644 --- a/examples/cookbook/forms/text_input/pubspec.yaml +++ b/examples/cookbook/forms/text_input/pubspec.yaml @@ -7,7 +7,7 @@ version: 1.0.0+1 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/forms/validation/pubspec.yaml b/examples/cookbook/forms/validation/pubspec.yaml index 375f2f3cdf1..70b41e7748e 100644 --- a/examples/cookbook/forms/validation/pubspec.yaml +++ b/examples/cookbook/forms/validation/pubspec.yaml @@ -3,7 +3,7 @@ description: Use Form widget to perform form validation. resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/games/achievements_leaderboards/pubspec.yaml b/examples/cookbook/games/achievements_leaderboards/pubspec.yaml index 7dcdffe97bf..bd37990e9bd 100644 --- a/examples/cookbook/games/achievements_leaderboards/pubspec.yaml +++ b/examples/cookbook/games/achievements_leaderboards/pubspec.yaml @@ -3,7 +3,7 @@ description: Games services resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/games/firestore_multiplayer/lib/multiplayer/firestore_controller.dart b/examples/cookbook/games/firestore_multiplayer/lib/multiplayer/firestore_controller.dart index 67548fe03f1..d7b2c3cba19 100644 --- a/examples/cookbook/games/firestore_multiplayer/lib/multiplayer/firestore_controller.dart +++ b/examples/cookbook/games/firestore_multiplayer/lib/multiplayer/firestore_controller.dart @@ -17,9 +17,11 @@ class FirestoreController { /// For now, there is only one match. But in order to be ready /// for match-making, put it in a Firestore collection called matches. - late final _matchRef = instance.collection('matches').doc('match_1'); + late final DocumentReference> _matchRef = instance + .collection('matches') + .doc('match_1'); - late final _areaOneRef = _matchRef + late final DocumentReference> _areaOneRef = _matchRef .collection('areas') .doc('area_one') .withConverter>( @@ -27,7 +29,7 @@ class FirestoreController { toFirestore: _cardsToFirestore, ); - late final _areaTwoRef = _matchRef + late final DocumentReference> _areaTwoRef = _matchRef .collection('areas') .doc('area_two') .withConverter>( diff --git a/examples/cookbook/games/firestore_multiplayer/pubspec.yaml b/examples/cookbook/games/firestore_multiplayer/pubspec.yaml index 7a97873581b..0ab6675f304 100644 --- a/examples/cookbook/games/firestore_multiplayer/pubspec.yaml +++ b/examples/cookbook/games/firestore_multiplayer/pubspec.yaml @@ -3,7 +3,7 @@ description: Firestore multiplayer resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/gestures/dismissible/pubspec.yaml b/examples/cookbook/gestures/dismissible/pubspec.yaml index aa207baf197..378e6d96583 100644 --- a/examples/cookbook/gestures/dismissible/pubspec.yaml +++ b/examples/cookbook/gestures/dismissible/pubspec.yaml @@ -3,7 +3,7 @@ description: Sample code for dismissible cookbook recipe. resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/gestures/handling_taps/pubspec.yaml b/examples/cookbook/gestures/handling_taps/pubspec.yaml index 2675e9dc2a8..95eaa9232f1 100644 --- a/examples/cookbook/gestures/handling_taps/pubspec.yaml +++ b/examples/cookbook/gestures/handling_taps/pubspec.yaml @@ -3,7 +3,7 @@ description: Example on handling_taps cookbook recipe. resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/gestures/ripples/pubspec.yaml b/examples/cookbook/gestures/ripples/pubspec.yaml index 0c126e36db0..a82c2f06ed0 100644 --- a/examples/cookbook/gestures/ripples/pubspec.yaml +++ b/examples/cookbook/gestures/ripples/pubspec.yaml @@ -3,7 +3,7 @@ description: Example for ripples cookbook recipe resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/images/cached_images/pubspec.yaml b/examples/cookbook/images/cached_images/pubspec.yaml index 687da081bcc..a092e575bca 100644 --- a/examples/cookbook/images/cached_images/pubspec.yaml +++ b/examples/cookbook/images/cached_images/pubspec.yaml @@ -7,7 +7,7 @@ version: 1.0.0+1 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/images/fading_in_images/pubspec.yaml b/examples/cookbook/images/fading_in_images/pubspec.yaml index d179d605770..3011f28a21a 100644 --- a/examples/cookbook/images/fading_in_images/pubspec.yaml +++ b/examples/cookbook/images/fading_in_images/pubspec.yaml @@ -7,7 +7,7 @@ version: 1.0.0+1 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/images/network_image/pubspec.yaml b/examples/cookbook/images/network_image/pubspec.yaml index 1d604e225a9..f3a207ebc9f 100644 --- a/examples/cookbook/images/network_image/pubspec.yaml +++ b/examples/cookbook/images/network_image/pubspec.yaml @@ -7,7 +7,7 @@ version: 1.0.0+1 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/lists/basic_list/pubspec.yaml b/examples/cookbook/lists/basic_list/pubspec.yaml index 28d00d2a643..0620ad3b5bd 100644 --- a/examples/cookbook/lists/basic_list/pubspec.yaml +++ b/examples/cookbook/lists/basic_list/pubspec.yaml @@ -7,7 +7,7 @@ version: 1.0.0+1 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/lists/floating_app_bar/pubspec.yaml b/examples/cookbook/lists/floating_app_bar/pubspec.yaml index d2953b8998f..d297055c430 100644 --- a/examples/cookbook/lists/floating_app_bar/pubspec.yaml +++ b/examples/cookbook/lists/floating_app_bar/pubspec.yaml @@ -3,7 +3,7 @@ description: Example for floating_app_bar cookbook recipe resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/lists/grid_lists/pubspec.yaml b/examples/cookbook/lists/grid_lists/pubspec.yaml index 2c0b6bfdc06..35a02544f31 100644 --- a/examples/cookbook/lists/grid_lists/pubspec.yaml +++ b/examples/cookbook/lists/grid_lists/pubspec.yaml @@ -7,7 +7,7 @@ version: 1.0.0+1 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/lists/horizontal_list/pubspec.yaml b/examples/cookbook/lists/horizontal_list/pubspec.yaml index a85bcd6f797..be94a25b14a 100644 --- a/examples/cookbook/lists/horizontal_list/pubspec.yaml +++ b/examples/cookbook/lists/horizontal_list/pubspec.yaml @@ -7,7 +7,7 @@ version: 1.0.0+1 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/lists/long_lists/pubspec.yaml b/examples/cookbook/lists/long_lists/pubspec.yaml index 8639ad326ab..63957af6bb7 100644 --- a/examples/cookbook/lists/long_lists/pubspec.yaml +++ b/examples/cookbook/lists/long_lists/pubspec.yaml @@ -3,7 +3,7 @@ description: Example for long_lists cookbook recipe resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/lists/mixed_list/pubspec.yaml b/examples/cookbook/lists/mixed_list/pubspec.yaml index c2723772a93..d7b17f2772b 100644 --- a/examples/cookbook/lists/mixed_list/pubspec.yaml +++ b/examples/cookbook/lists/mixed_list/pubspec.yaml @@ -3,7 +3,7 @@ description: Example for mixed_lists cookbook recipe resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/lists/spaced_items/pubspec.yaml b/examples/cookbook/lists/spaced_items/pubspec.yaml index 16ee0eb2c9f..fc02c27a955 100644 --- a/examples/cookbook/lists/spaced_items/pubspec.yaml +++ b/examples/cookbook/lists/spaced_items/pubspec.yaml @@ -3,7 +3,7 @@ description: Example for spaced_items cookbook recipe resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/maintenance/error_reporting/pubspec.yaml b/examples/cookbook/maintenance/error_reporting/pubspec.yaml index 78eedbffad9..5a843124101 100644 --- a/examples/cookbook/maintenance/error_reporting/pubspec.yaml +++ b/examples/cookbook/maintenance/error_reporting/pubspec.yaml @@ -4,7 +4,7 @@ publish_to: none resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/navigation/hero_animations/pubspec.yaml b/examples/cookbook/navigation/hero_animations/pubspec.yaml index c5e2811f659..8871b0abf0e 100644 --- a/examples/cookbook/navigation/hero_animations/pubspec.yaml +++ b/examples/cookbook/navigation/hero_animations/pubspec.yaml @@ -3,7 +3,7 @@ description: Hero animations resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/navigation/named_routes/pubspec.yaml b/examples/cookbook/navigation/named_routes/pubspec.yaml index c0b224d314c..37f509b98a2 100644 --- a/examples/cookbook/navigation/named_routes/pubspec.yaml +++ b/examples/cookbook/navigation/named_routes/pubspec.yaml @@ -3,7 +3,7 @@ description: Named route example snippets. resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/navigation/navigate_with_arguments/pubspec.yaml b/examples/cookbook/navigation/navigate_with_arguments/pubspec.yaml index 471490c0670..d4cf141d039 100644 --- a/examples/cookbook/navigation/navigate_with_arguments/pubspec.yaml +++ b/examples/cookbook/navigation/navigate_with_arguments/pubspec.yaml @@ -3,7 +3,7 @@ description: Use Form widget to perform form validation. resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/navigation/navigation_basics/pubspec.yaml b/examples/cookbook/navigation/navigation_basics/pubspec.yaml index ab8f297e6ad..ba4cd9fef08 100644 --- a/examples/cookbook/navigation/navigation_basics/pubspec.yaml +++ b/examples/cookbook/navigation/navigation_basics/pubspec.yaml @@ -7,7 +7,7 @@ version: 1.0.0+1 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/navigation/passing_data/pubspec.yaml b/examples/cookbook/navigation/passing_data/pubspec.yaml index 48d70947367..1018d698830 100644 --- a/examples/cookbook/navigation/passing_data/pubspec.yaml +++ b/examples/cookbook/navigation/passing_data/pubspec.yaml @@ -3,7 +3,7 @@ description: Passing data resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/navigation/returning_data/pubspec.yaml b/examples/cookbook/navigation/returning_data/pubspec.yaml index d3a47ddb714..2801c4ef589 100644 --- a/examples/cookbook/navigation/returning_data/pubspec.yaml +++ b/examples/cookbook/navigation/returning_data/pubspec.yaml @@ -3,7 +3,7 @@ description: Returning data resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/networking/authenticated_requests/pubspec.yaml b/examples/cookbook/networking/authenticated_requests/pubspec.yaml index a0af40fb329..374a94f4013 100644 --- a/examples/cookbook/networking/authenticated_requests/pubspec.yaml +++ b/examples/cookbook/networking/authenticated_requests/pubspec.yaml @@ -3,7 +3,7 @@ description: Authenticated HTTP request example snippets. resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/networking/background_parsing/pubspec.yaml b/examples/cookbook/networking/background_parsing/pubspec.yaml index b9e251750e0..eea62c3f94c 100644 --- a/examples/cookbook/networking/background_parsing/pubspec.yaml +++ b/examples/cookbook/networking/background_parsing/pubspec.yaml @@ -3,7 +3,7 @@ description: Background parsing resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/networking/delete_data/pubspec.yaml b/examples/cookbook/networking/delete_data/pubspec.yaml index 13dd3c2a5d9..44776f17d3f 100644 --- a/examples/cookbook/networking/delete_data/pubspec.yaml +++ b/examples/cookbook/networking/delete_data/pubspec.yaml @@ -3,7 +3,7 @@ description: Delete Data resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/networking/fetch_data/pubspec.yaml b/examples/cookbook/networking/fetch_data/pubspec.yaml index 40f8908d978..25493bff61a 100644 --- a/examples/cookbook/networking/fetch_data/pubspec.yaml +++ b/examples/cookbook/networking/fetch_data/pubspec.yaml @@ -3,7 +3,7 @@ description: Fetch Data resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/networking/send_data/pubspec.yaml b/examples/cookbook/networking/send_data/pubspec.yaml index 1323b20e366..4272b5efe1b 100644 --- a/examples/cookbook/networking/send_data/pubspec.yaml +++ b/examples/cookbook/networking/send_data/pubspec.yaml @@ -3,7 +3,7 @@ description: Send data resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/networking/update_data/pubspec.yaml b/examples/cookbook/networking/update_data/pubspec.yaml index 88e4048e464..fc33f66c24d 100644 --- a/examples/cookbook/networking/update_data/pubspec.yaml +++ b/examples/cookbook/networking/update_data/pubspec.yaml @@ -3,7 +3,7 @@ description: Update Data resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/networking/web_sockets/lib/main.dart b/examples/cookbook/networking/web_sockets/lib/main.dart index 3d4bebb7dca..db976b5f984 100644 --- a/examples/cookbook/networking/web_sockets/lib/main.dart +++ b/examples/cookbook/networking/web_sockets/lib/main.dart @@ -28,7 +28,7 @@ class MyHomePage extends StatefulWidget { class _MyHomePageState extends State { final TextEditingController _controller = TextEditingController(); // #docregion connect - final _channel = WebSocketChannel.connect( + final WebSocketChannel _channel = WebSocketChannel.connect( Uri.parse('wss://echo.websocket.events'), ); // #enddocregion connect diff --git a/examples/cookbook/networking/web_sockets/pubspec.yaml b/examples/cookbook/networking/web_sockets/pubspec.yaml index e47bd01c015..560d1ff952e 100644 --- a/examples/cookbook/networking/web_sockets/pubspec.yaml +++ b/examples/cookbook/networking/web_sockets/pubspec.yaml @@ -3,7 +3,7 @@ description: Web Sockets resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/persistence/key_value/pubspec.yaml b/examples/cookbook/persistence/key_value/pubspec.yaml index f74fc7c43fe..0af68667a06 100644 --- a/examples/cookbook/persistence/key_value/pubspec.yaml +++ b/examples/cookbook/persistence/key_value/pubspec.yaml @@ -6,7 +6,7 @@ description: >- resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/persistence/reading_writing_files/pubspec.yaml b/examples/cookbook/persistence/reading_writing_files/pubspec.yaml index e5fed432f7c..27d994ee976 100644 --- a/examples/cookbook/persistence/reading_writing_files/pubspec.yaml +++ b/examples/cookbook/persistence/reading_writing_files/pubspec.yaml @@ -3,7 +3,7 @@ description: Reading and Writing Files resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/persistence/sqlite/pubspec.yaml b/examples/cookbook/persistence/sqlite/pubspec.yaml index d8fd1de2aae..5f450f11350 100644 --- a/examples/cookbook/persistence/sqlite/pubspec.yaml +++ b/examples/cookbook/persistence/sqlite/pubspec.yaml @@ -3,7 +3,7 @@ description: Example of using sqflite plugin to access SQLite database. resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/plugins/google_mobile_ads/pubspec.yaml b/examples/cookbook/plugins/google_mobile_ads/pubspec.yaml index 48c66f14f51..9ba2c786bc9 100644 --- a/examples/cookbook/plugins/google_mobile_ads/pubspec.yaml +++ b/examples/cookbook/plugins/google_mobile_ads/pubspec.yaml @@ -3,7 +3,7 @@ description: Google mobile ads resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/plugins/picture_using_camera/pubspec.yaml b/examples/cookbook/plugins/picture_using_camera/pubspec.yaml index 1bdac46c470..7f217a355ee 100644 --- a/examples/cookbook/plugins/picture_using_camera/pubspec.yaml +++ b/examples/cookbook/plugins/picture_using_camera/pubspec.yaml @@ -3,12 +3,12 @@ description: A new Flutter project. resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: sdk: flutter - camera: ^0.11.2 + camera: ^0.12.0 path_provider: ^2.1.5 path: ^1.9.1 diff --git a/examples/cookbook/plugins/play_video/pubspec.yaml b/examples/cookbook/plugins/play_video/pubspec.yaml index 102c6204ed7..525487a2d5b 100644 --- a/examples/cookbook/plugins/play_video/pubspec.yaml +++ b/examples/cookbook/plugins/play_video/pubspec.yaml @@ -5,7 +5,7 @@ version: 1.0.0+1 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/testing/integration/introduction/pubspec.yaml b/examples/cookbook/testing/integration/introduction/pubspec.yaml index 8ab86b0651b..6c2ef6efbbd 100644 --- a/examples/cookbook/testing/integration/introduction/pubspec.yaml +++ b/examples/cookbook/testing/integration/introduction/pubspec.yaml @@ -4,7 +4,7 @@ publish_to: none resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/testing/integration/profiling/pubspec.yaml b/examples/cookbook/testing/integration/profiling/pubspec.yaml index 3e842a02d5b..3117c9620cb 100644 --- a/examples/cookbook/testing/integration/profiling/pubspec.yaml +++ b/examples/cookbook/testing/integration/profiling/pubspec.yaml @@ -3,7 +3,7 @@ description: Integration test profiling examples. resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/testing/unit/counter_app/pubspec.yaml b/examples/cookbook/testing/unit/counter_app/pubspec.yaml index da9cfd55b15..00cfb02445c 100644 --- a/examples/cookbook/testing/unit/counter_app/pubspec.yaml +++ b/examples/cookbook/testing/unit/counter_app/pubspec.yaml @@ -6,7 +6,7 @@ version: 1.0.0+1 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/testing/unit/mocking/pubspec.yaml b/examples/cookbook/testing/unit/mocking/pubspec.yaml index aa1ac706c86..1df7c0a0ba6 100644 --- a/examples/cookbook/testing/unit/mocking/pubspec.yaml +++ b/examples/cookbook/testing/unit/mocking/pubspec.yaml @@ -3,7 +3,7 @@ description: Use the Mockito package to mimic the behavior of services for testi resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/testing/widget/finders/pubspec.yaml b/examples/cookbook/testing/widget/finders/pubspec.yaml index 3816cd3941b..463e61ce665 100644 --- a/examples/cookbook/testing/widget/finders/pubspec.yaml +++ b/examples/cookbook/testing/widget/finders/pubspec.yaml @@ -3,7 +3,7 @@ description: A new Flutter project. resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/testing/widget/introduction/pubspec.yaml b/examples/cookbook/testing/widget/introduction/pubspec.yaml index dd9759ceedb..d5d3c4ecd0c 100644 --- a/examples/cookbook/testing/widget/introduction/pubspec.yaml +++ b/examples/cookbook/testing/widget/introduction/pubspec.yaml @@ -3,7 +3,7 @@ description: Widget testing example snippets. resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/testing/widget/orientation_tests/pubspec.yaml b/examples/cookbook/testing/widget/orientation_tests/pubspec.yaml index 4c8c062bff2..6f873bd68d2 100644 --- a/examples/cookbook/testing/widget/orientation_tests/pubspec.yaml +++ b/examples/cookbook/testing/widget/orientation_tests/pubspec.yaml @@ -4,7 +4,7 @@ publish_to: none resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/testing/widget/scrolling/pubspec.yaml b/examples/cookbook/testing/widget/scrolling/pubspec.yaml index ca0df746d5a..e5df2a05749 100644 --- a/examples/cookbook/testing/widget/scrolling/pubspec.yaml +++ b/examples/cookbook/testing/widget/scrolling/pubspec.yaml @@ -3,7 +3,7 @@ description: Scrollable widget testing. resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/cookbook/testing/widget/tap_drag/pubspec.yaml b/examples/cookbook/testing/widget/tap_drag/pubspec.yaml index 58d20d7d573..0ae2f1e6ade 100644 --- a/examples/cookbook/testing/widget/tap_drag/pubspec.yaml +++ b/examples/cookbook/testing/widget/tap_drag/pubspec.yaml @@ -3,7 +3,7 @@ description: Tap drag widget testing examples. resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/data-and-backend/json/pubspec.yaml b/examples/data-and-backend/json/pubspec.yaml index 00141908ad5..dadd5faedb5 100644 --- a/examples/data-and-backend/json/pubspec.yaml +++ b/examples/data-and-backend/json/pubspec.yaml @@ -6,7 +6,7 @@ version: 1.0.0+1 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: json_annotation: ^4.9.0 diff --git a/examples/deployment/obfuscate/pubspec.yaml b/examples/deployment/obfuscate/pubspec.yaml index 42c18945332..2eaa2f5b5ab 100644 --- a/examples/deployment/obfuscate/pubspec.yaml +++ b/examples/deployment/obfuscate/pubspec.yaml @@ -6,7 +6,7 @@ version: 1.0.0+1 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/get-started/flutter-for/android_devs/pubspec.yaml b/examples/get-started/flutter-for/android_devs/pubspec.yaml index 5e00dd10d66..d7571df7610 100644 --- a/examples/get-started/flutter-for/android_devs/pubspec.yaml +++ b/examples/get-started/flutter-for/android_devs/pubspec.yaml @@ -7,7 +7,7 @@ version: 1.0.0+1 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/get-started/flutter-for/declarative/pubspec.yaml b/examples/get-started/flutter-for/declarative/pubspec.yaml index f13e13ade0b..426207fca27 100644 --- a/examples/get-started/flutter-for/declarative/pubspec.yaml +++ b/examples/get-started/flutter-for/declarative/pubspec.yaml @@ -6,7 +6,7 @@ version: 1.0.0+1 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/get-started/flutter-for/ios_devs/lib/grid.dart b/examples/get-started/flutter-for/ios_devs/lib/grid.dart index d279c906f2f..3c2889ae845 100644 --- a/examples/get-started/flutter-for/ios_devs/lib/grid.dart +++ b/examples/get-started/flutter-for/ios_devs/lib/grid.dart @@ -15,7 +15,7 @@ class App extends StatelessWidget { } // #docregion grid-example -const widgets = [ +const widgets = [ Text('Row 1'), Icon(CupertinoIcons.arrow_down_square), Icon(CupertinoIcons.arrow_up_square), diff --git a/examples/get-started/flutter-for/ios_devs/lib/navigation.dart b/examples/get-started/flutter-for/ios_devs/lib/navigation.dart index ecffc29eef3..c791bc83fa6 100644 --- a/examples/get-started/flutter-for/ios_devs/lib/navigation.dart +++ b/examples/get-started/flutter-for/ios_devs/lib/navigation.dart @@ -33,8 +33,8 @@ class Person { const Person({required this.name, required this.age}); } -// Next, create a list of 100 Persons. -final mockPersons = Iterable.generate( +// Next, create a list of 100 persons. +final List mockPersons = List.generate( 100, (index) => Person(name: 'Person #${index + 1}', age: 10 + index), ); diff --git a/examples/get-started/flutter-for/ios_devs/lib/popback.dart b/examples/get-started/flutter-for/ios_devs/lib/popback.dart index ee858040d2b..f9c75d544d2 100644 --- a/examples/get-started/flutter-for/ios_devs/lib/popback.dart +++ b/examples/get-started/flutter-for/ios_devs/lib/popback.dart @@ -38,7 +38,7 @@ class Person { } // Next, create a list of 100 persons. -final mockPersons = Iterable.generate( +final List mockPersons = List.generate( 100, (index) => Person(name: 'Person #${index + 1}', age: 10 + index), ); diff --git a/examples/get-started/flutter-for/ios_devs/lib/scroll.dart b/examples/get-started/flutter-for/ios_devs/lib/scroll.dart index 641599014aa..41fb91f4a50 100644 --- a/examples/get-started/flutter-for/ios_devs/lib/scroll.dart +++ b/examples/get-started/flutter-for/ios_devs/lib/scroll.dart @@ -40,8 +40,8 @@ class PersonView extends StatelessWidget { } } -// then we create a list of people -final mockPersons = Iterable.generate( +// Next, create a list of 100 persons. +final List mockPersons = List.generate( 100, (index) => Person(name: 'Person #${index + 1}', age: 10 + index), ); diff --git a/examples/get-started/flutter-for/ios_devs/pubspec.yaml b/examples/get-started/flutter-for/ios_devs/pubspec.yaml index ca9b25e3ba3..ff56336dac2 100644 --- a/examples/get-started/flutter-for/ios_devs/pubspec.yaml +++ b/examples/get-started/flutter-for/ios_devs/pubspec.yaml @@ -6,7 +6,7 @@ version: 1.0.0+1 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/get-started/flutter-for/react_native_devs/lib/examples.dart b/examples/get-started/flutter-for/react_native_devs/lib/examples.dart index 7068c6ba82f..159f4f33219 100644 --- a/examples/get-started/flutter-for/react_native_devs/lib/examples.dart +++ b/examples/get-started/flutter-for/react_native_devs/lib/examples.dart @@ -324,8 +324,8 @@ class HttpExample extends StatefulWidget { class _HttpExampleState extends State { String _ipAddress = ''; // #docregion http - final url = Uri.parse('https://httpbin.org/ip'); - final httpClient = HttpClient(); + final Uri url = Uri.parse('https://httpbin.org/ip'); + final HttpClient httpClient = HttpClient(); Future getIPAddress() async { final request = await httpClient.getUrl(url); diff --git a/examples/get-started/flutter-for/react_native_devs/my_widgets/pubspec.yaml b/examples/get-started/flutter-for/react_native_devs/my_widgets/pubspec.yaml index 15d4471a5ef..2f17ed340ac 100644 --- a/examples/get-started/flutter-for/react_native_devs/my_widgets/pubspec.yaml +++ b/examples/get-started/flutter-for/react_native_devs/my_widgets/pubspec.yaml @@ -4,4 +4,4 @@ version: 1.0.0 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 diff --git a/examples/get-started/flutter-for/react_native_devs/pubspec.yaml b/examples/get-started/flutter-for/react_native_devs/pubspec.yaml index 66926b1ee54..40e12dcbcde 100644 --- a/examples/get-started/flutter-for/react_native_devs/pubspec.yaml +++ b/examples/get-started/flutter-for/react_native_devs/pubspec.yaml @@ -6,7 +6,7 @@ version: 1.0.0+1 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 workspace: - my_widgets diff --git a/examples/get-started/flutter-for/web_devs/pubspec.yaml b/examples/get-started/flutter-for/web_devs/pubspec.yaml index 756b3bb7793..ecf0bcaa1cd 100644 --- a/examples/get-started/flutter-for/web_devs/pubspec.yaml +++ b/examples/get-started/flutter-for/web_devs/pubspec.yaml @@ -6,7 +6,7 @@ version: 1.0.0+1 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/get-started/flutter-for/xamarin_devs/pubspec.yaml b/examples/get-started/flutter-for/xamarin_devs/pubspec.yaml index 06f17a58542..bf0c113be1c 100644 --- a/examples/get-started/flutter-for/xamarin_devs/pubspec.yaml +++ b/examples/get-started/flutter-for/xamarin_devs/pubspec.yaml @@ -6,7 +6,7 @@ version: 1.0.0+1 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/googleapis/lib/main.dart b/examples/googleapis/lib/main.dart index 3be01725049..981dae7b399 100644 --- a/examples/googleapis/lib/main.dart +++ b/examples/googleapis/lib/main.dart @@ -42,7 +42,7 @@ class _LikedVideosWidgetState extends State<_LikedVideosWidget> { List? _favoriteVideos; // #docregion init - final _googleSignIn = GoogleSignIn.instance; + final GoogleSignIn _googleSignIn = GoogleSignIn.instance; // #docregion post-init @override diff --git a/examples/googleapis/pubspec.yaml b/examples/googleapis/pubspec.yaml index dbe37d8ba1a..035d0e01c3d 100644 --- a/examples/googleapis/pubspec.yaml +++ b/examples/googleapis/pubspec.yaml @@ -3,13 +3,13 @@ publish_to: none resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: collection: any # Pull the version of package:collection from Flutter. extension_google_sign_in_as_googleapis_auth: ^3.0.0 flutter: sdk: flutter - google_sign_in: ^7.1.1 - googleapis: ^15.0.0 + google_sign_in: ^7.2.0 + googleapis: ^16.0.0 http: ^1.5.0 diff --git a/examples/integration_test/pubspec.yaml b/examples/integration_test/pubspec.yaml index 13e225551e1..d6156628b43 100644 --- a/examples/integration_test/pubspec.yaml +++ b/examples/integration_test/pubspec.yaml @@ -4,7 +4,7 @@ version: 0.0.1 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/integration_test_migration/pubspec.yaml b/examples/integration_test_migration/pubspec.yaml index 6e094c4a425..6015641ad9e 100644 --- a/examples/integration_test_migration/pubspec.yaml +++ b/examples/integration_test_migration/pubspec.yaml @@ -6,7 +6,7 @@ version: 1.0.0+1 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/internationalization/add_language/lib/nn_intl.dart b/examples/internationalization/add_language/lib/nn_intl.dart index cde7ccb005b..d02e162fa70 100644 --- a/examples/internationalization/add_language/lib/nn_intl.dart +++ b/examples/internationalization/add_language/lib/nn_intl.dart @@ -65,7 +65,7 @@ const nnLocaleDatePatterns = { /// These are not accurate and are just a clone of the date symbols for the /// `no` locale to demonstrate how one would write and use custom date symbols. // #docregion date-symbols -const nnDateSymbols = { +const Map nnDateSymbols = { 'NAME': 'nn', 'ERAS': ['f.Kr.', 'e.Kr.'], // #enddocregion date-symbols diff --git a/examples/internationalization/add_language/pubspec.yaml b/examples/internationalization/add_language/pubspec.yaml index 71f6cf3387a..0243772c466 100644 --- a/examples/internationalization/add_language/pubspec.yaml +++ b/examples/internationalization/add_language/pubspec.yaml @@ -3,7 +3,7 @@ description: An i18n app example that adds a supported language resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/internationalization/gen_l10n_example/pubspec.yaml b/examples/internationalization/gen_l10n_example/pubspec.yaml index ccef77f1001..f30b1e4d4a9 100644 --- a/examples/internationalization/gen_l10n_example/pubspec.yaml +++ b/examples/internationalization/gen_l10n_example/pubspec.yaml @@ -5,7 +5,7 @@ description: >- resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 # #docregion flutter-localizations dependencies: diff --git a/examples/internationalization/intl_example/pubspec.yaml b/examples/internationalization/intl_example/pubspec.yaml index f0b3563d5a6..c267678a67c 100644 --- a/examples/internationalization/intl_example/pubspec.yaml +++ b/examples/internationalization/intl_example/pubspec.yaml @@ -3,7 +3,7 @@ description: Example of a Flutter app using the intl library services. resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/internationalization/minimal/pubspec.yaml b/examples/internationalization/minimal/pubspec.yaml index 014f312acdf..eb845ff4f22 100644 --- a/examples/internationalization/minimal/pubspec.yaml +++ b/examples/internationalization/minimal/pubspec.yaml @@ -3,7 +3,7 @@ description: A minimal example of a localized Flutter app resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/layout/base/pubspec.yaml b/examples/layout/base/pubspec.yaml index aeac66d9315..e430dad6b40 100644 --- a/examples/layout/base/pubspec.yaml +++ b/examples/layout/base/pubspec.yaml @@ -5,7 +5,7 @@ version: 1.0.0 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/layout/card_and_stack/pubspec.yaml b/examples/layout/card_and_stack/pubspec.yaml index 3b1460f11a6..f855ee91cdd 100644 --- a/examples/layout/card_and_stack/pubspec.yaml +++ b/examples/layout/card_and_stack/pubspec.yaml @@ -5,7 +5,7 @@ version: 1.0.0 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/layout/constraints/lib/main.dart b/examples/layout/constraints/lib/main.dart index eb1a2e73368..057b113e89d 100644 --- a/examples/layout/constraints/lib/main.dart +++ b/examples/layout/constraints/lib/main.dart @@ -2,10 +2,10 @@ import 'package:flutter/material.dart'; void main() => runApp(const HomePage()); -const red = Colors.red; -const green = Colors.green; -const blue = Colors.blue; -const big = TextStyle(fontSize: 30); +const Color red = Colors.red; +const Color green = Colors.green; +const Color blue = Colors.blue; +const TextStyle big = TextStyle(fontSize: 30); ////////////////////////////////////////////////// diff --git a/examples/layout/constraints/pubspec.yaml b/examples/layout/constraints/pubspec.yaml index fec894af0b5..6df5d7b51af 100644 --- a/examples/layout/constraints/pubspec.yaml +++ b/examples/layout/constraints/pubspec.yaml @@ -4,7 +4,7 @@ version: 1.0.0 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/layout/container/pubspec.yaml b/examples/layout/container/pubspec.yaml index 571cd67faf0..e7eaa85278d 100644 --- a/examples/layout/container/pubspec.yaml +++ b/examples/layout/container/pubspec.yaml @@ -5,7 +5,7 @@ version: 1.0.0 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/layout/gallery/pubspec.yaml b/examples/layout/gallery/pubspec.yaml index 753756131eb..5e63b7e1611 100644 --- a/examples/layout/gallery/pubspec.yaml +++ b/examples/layout/gallery/pubspec.yaml @@ -6,7 +6,7 @@ version: 1.0.0 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: animations: ^2.0.11 diff --git a/examples/layout/grid_and_list/pubspec.yaml b/examples/layout/grid_and_list/pubspec.yaml index d64a4df2259..8e0179ee444 100644 --- a/examples/layout/grid_and_list/pubspec.yaml +++ b/examples/layout/grid_and_list/pubspec.yaml @@ -5,7 +5,7 @@ version: 1.0.0 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/layout/lakes/interactive/pubspec.yaml b/examples/layout/lakes/interactive/pubspec.yaml index acf31e7a7e2..989669353aa 100644 --- a/examples/layout/lakes/interactive/pubspec.yaml +++ b/examples/layout/lakes/interactive/pubspec.yaml @@ -6,7 +6,7 @@ version: 1.0.0 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/layout/lakes/step2/pubspec.yaml b/examples/layout/lakes/step2/pubspec.yaml index c9b72d03484..ac5bdd470ad 100644 --- a/examples/layout/lakes/step2/pubspec.yaml +++ b/examples/layout/lakes/step2/pubspec.yaml @@ -5,7 +5,7 @@ version: 1.0.0 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/layout/lakes/step3/pubspec.yaml b/examples/layout/lakes/step3/pubspec.yaml index 527c6ceb944..0f6d17ddedb 100644 --- a/examples/layout/lakes/step3/pubspec.yaml +++ b/examples/layout/lakes/step3/pubspec.yaml @@ -5,7 +5,7 @@ version: 1.0.0 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/layout/lakes/step4/pubspec.yaml b/examples/layout/lakes/step4/pubspec.yaml index 106faf36bca..d331ae3b053 100644 --- a/examples/layout/lakes/step4/pubspec.yaml +++ b/examples/layout/lakes/step4/pubspec.yaml @@ -5,7 +5,7 @@ version: 1.0.0 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/layout/lakes/step5/pubspec.yaml b/examples/layout/lakes/step5/pubspec.yaml index 68a9bf4b1f5..ce0445c4af8 100644 --- a/examples/layout/lakes/step5/pubspec.yaml +++ b/examples/layout/lakes/step5/pubspec.yaml @@ -5,7 +5,7 @@ version: 1.0.0 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/layout/lakes/step6/pubspec.yaml b/examples/layout/lakes/step6/pubspec.yaml index 61e24485ad5..930535164b0 100644 --- a/examples/layout/lakes/step6/pubspec.yaml +++ b/examples/layout/lakes/step6/pubspec.yaml @@ -5,7 +5,7 @@ version: 1.0.0 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/layout/non_material/pubspec.yaml b/examples/layout/non_material/pubspec.yaml index 4aec841fe8c..76d2b91d092 100644 --- a/examples/layout/non_material/pubspec.yaml +++ b/examples/layout/non_material/pubspec.yaml @@ -5,7 +5,7 @@ version: 1.0.0 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/layout/pavlova/pubspec.yaml b/examples/layout/pavlova/pubspec.yaml index 870039cc3e3..e968a1a3069 100644 --- a/examples/layout/pavlova/pubspec.yaml +++ b/examples/layout/pavlova/pubspec.yaml @@ -5,7 +5,7 @@ version: 1.0.0 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/layout/row_column/pubspec.yaml b/examples/layout/row_column/pubspec.yaml index 75da5d49f4f..97630e10955 100644 --- a/examples/layout/row_column/pubspec.yaml +++ b/examples/layout/row_column/pubspec.yaml @@ -5,7 +5,7 @@ version: 1.0.0 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/layout/sizing/pubspec.yaml b/examples/layout/sizing/pubspec.yaml index 752ebc9417c..490a2aae360 100644 --- a/examples/layout/sizing/pubspec.yaml +++ b/examples/layout/sizing/pubspec.yaml @@ -5,7 +5,7 @@ version: 1.0.0 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/perf/concurrency/isolates/pubspec.yaml b/examples/perf/concurrency/isolates/pubspec.yaml index 83a8d8afe2b..1765394076b 100644 --- a/examples/perf/concurrency/isolates/pubspec.yaml +++ b/examples/perf/concurrency/isolates/pubspec.yaml @@ -6,7 +6,7 @@ version: 1.0.0+1 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/perf/deferred_components/pubspec.yaml b/examples/perf/deferred_components/pubspec.yaml index 8cebecc54f1..086db234988 100644 --- a/examples/perf/deferred_components/pubspec.yaml +++ b/examples/perf/deferred_components/pubspec.yaml @@ -4,7 +4,7 @@ publish_to: none resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/platform_integration/compose_activities/pubspec.yaml b/examples/platform_integration/compose_activities/pubspec.yaml index 54257e9f10f..eff123fc1c8 100644 --- a/examples/platform_integration/compose_activities/pubspec.yaml +++ b/examples/platform_integration/compose_activities/pubspec.yaml @@ -7,7 +7,7 @@ version: 1.0.0+1 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/platform_integration/pigeon/pubspec.yaml b/examples/platform_integration/pigeon/pubspec.yaml index e3fdb448dad..61bb624e334 100644 --- a/examples/platform_integration/pigeon/pubspec.yaml +++ b/examples/platform_integration/pigeon/pubspec.yaml @@ -7,7 +7,7 @@ version: 1.0.0+1 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/platform_integration/platform_channels/pubspec.yaml b/examples/platform_integration/platform_channels/pubspec.yaml index f04afb5548e..e6c350f14bf 100644 --- a/examples/platform_integration/platform_channels/pubspec.yaml +++ b/examples/platform_integration/platform_channels/pubspec.yaml @@ -9,7 +9,7 @@ version: 1.0.0+1 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/platform_integration/platform_views/pubspec.yaml b/examples/platform_integration/platform_views/pubspec.yaml index 3437282be3f..f697fca2e28 100644 --- a/examples/platform_integration/platform_views/pubspec.yaml +++ b/examples/platform_integration/platform_views/pubspec.yaml @@ -7,7 +7,7 @@ version: 1.0.0+1 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/platform_integration/plugin_api_migration/pubspec.yaml b/examples/platform_integration/plugin_api_migration/pubspec.yaml index 7db4d3fcb48..73229464a8c 100644 --- a/examples/platform_integration/plugin_api_migration/pubspec.yaml +++ b/examples/platform_integration/plugin_api_migration/pubspec.yaml @@ -7,7 +7,7 @@ version: 1.0.0+1 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/pubspec.yaml b/examples/pubspec.yaml index 84c09df27e9..23ab4600674 100644 --- a/examples/pubspec.yaml +++ b/examples/pubspec.yaml @@ -2,7 +2,7 @@ name: flutter_docs_examples publish_to: none environment: - sdk: ^3.10.0 + sdk: ^3.11.0 workspace: - _animation/basic_hero_animation diff --git a/examples/resources/architectural_overview/pubspec.yaml b/examples/resources/architectural_overview/pubspec.yaml index d6435a57d01..c598856dc0b 100644 --- a/examples/resources/architectural_overview/pubspec.yaml +++ b/examples/resources/architectural_overview/pubspec.yaml @@ -4,7 +4,7 @@ publish_to: none resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/resources/dart_swift_concurrency/pubspec.yaml b/examples/resources/dart_swift_concurrency/pubspec.yaml index 167733984dc..1f35a42ac39 100644 --- a/examples/resources/dart_swift_concurrency/pubspec.yaml +++ b/examples/resources/dart_swift_concurrency/pubspec.yaml @@ -4,7 +4,7 @@ publish_to: none resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/state_mgmt/simple/pubspec.yaml b/examples/state_mgmt/simple/pubspec.yaml index d1e5bf7bcf7..294557d15a7 100644 --- a/examples/state_mgmt/simple/pubspec.yaml +++ b/examples/state_mgmt/simple/pubspec.yaml @@ -4,7 +4,7 @@ publish_to: none resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/testing/code_debugging/pubspec.yaml b/examples/testing/code_debugging/pubspec.yaml index 188cafe886c..a834e893a84 100644 --- a/examples/testing/code_debugging/pubspec.yaml +++ b/examples/testing/code_debugging/pubspec.yaml @@ -4,7 +4,7 @@ publish_to: none resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/testing/common_errors/pubspec.yaml b/examples/testing/common_errors/pubspec.yaml index fd7e42e98e4..ef32a56a216 100644 --- a/examples/testing/common_errors/pubspec.yaml +++ b/examples/testing/common_errors/pubspec.yaml @@ -4,7 +4,7 @@ publish_to: none resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/testing/errors/pubspec.yaml b/examples/testing/errors/pubspec.yaml index 55db60b25d9..54cd00fc0f0 100644 --- a/examples/testing/errors/pubspec.yaml +++ b/examples/testing/errors/pubspec.yaml @@ -4,7 +4,7 @@ publish_to: none resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/testing/integration_tests/how_to/pubspec.yaml b/examples/testing/integration_tests/how_to/pubspec.yaml index 1afe013f603..61c34c4669e 100644 --- a/examples/testing/integration_tests/how_to/pubspec.yaml +++ b/examples/testing/integration_tests/how_to/pubspec.yaml @@ -4,7 +4,7 @@ publish_to: none resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/testing/native_debugging/pubspec.yaml b/examples/testing/native_debugging/pubspec.yaml index 2886d224ddd..6483cd8472b 100644 --- a/examples/testing/native_debugging/pubspec.yaml +++ b/examples/testing/native_debugging/pubspec.yaml @@ -5,7 +5,7 @@ version: 1.0.0+1 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/tools/lib/hot-reload/after.dart b/examples/tools/lib/hot-reload/after.dart index 29a5755ef9e..9a0f973bc69 100644 --- a/examples/tools/lib/hot-reload/after.dart +++ b/examples/tools/lib/hot-reload/after.dart @@ -1,4 +1,4 @@ -// ignore_for_file: avoid_print, prefer_const_declarations +// ignore_for_file: specify_nonobvious_property_types, avoid_print, prefer_const_declarations import 'package:flutter/material.dart'; diff --git a/examples/tools/lib/hot-reload/before.dart b/examples/tools/lib/hot-reload/before.dart index 4d6b419afaf..d0ee66ac610 100644 --- a/examples/tools/lib/hot-reload/before.dart +++ b/examples/tools/lib/hot-reload/before.dart @@ -1,4 +1,4 @@ -// ignore_for_file: avoid_print, prefer_const_declarations, prefer_const_constructors +// ignore_for_file: specify_nonobvious_property_types, avoid_print, prefer_const_declarations, prefer_const_constructors // #docregion build import 'package:flutter/material.dart'; diff --git a/examples/tools/lib/hot-reload/foo_const.dart b/examples/tools/lib/hot-reload/foo_const.dart index 8b59f2c1a9a..fd183a5f5cc 100644 --- a/examples/tools/lib/hot-reload/foo_const.dart +++ b/examples/tools/lib/hot-reload/foo_const.dart @@ -1,4 +1,4 @@ -// ignore_for_file: avoid_print +// ignore_for_file: specify_nonobvious_property_types, avoid_print // #docregion const const foo = 1; diff --git a/examples/tools/pubspec.yaml b/examples/tools/pubspec.yaml index 85088494442..f4484444073 100644 --- a/examples/tools/pubspec.yaml +++ b/examples/tools/pubspec.yaml @@ -7,7 +7,7 @@ version: 1.0.0+1 resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/ui/actions_and_shortcuts/pubspec.yaml b/examples/ui/actions_and_shortcuts/pubspec.yaml index b17f8ab2ea5..e373510d40a 100644 --- a/examples/ui/actions_and_shortcuts/pubspec.yaml +++ b/examples/ui/actions_and_shortcuts/pubspec.yaml @@ -4,7 +4,7 @@ publish_to: none resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/ui/adaptive_app_demos/pubspec.yaml b/examples/ui/adaptive_app_demos/pubspec.yaml index c1b1bb794ac..7a466a4e1de 100644 --- a/examples/ui/adaptive_app_demos/pubspec.yaml +++ b/examples/ui/adaptive_app_demos/pubspec.yaml @@ -4,7 +4,7 @@ publish_to: none resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/ui/assets_and_images/pubspec.yaml b/examples/ui/assets_and_images/pubspec.yaml index 25a5354e19c..31e8cc3542b 100644 --- a/examples/ui/assets_and_images/pubspec.yaml +++ b/examples/ui/assets_and_images/pubspec.yaml @@ -4,7 +4,7 @@ publish_to: none resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/ui/focus/pubspec.yaml b/examples/ui/focus/pubspec.yaml index 05756969cdf..2c134233514 100644 --- a/examples/ui/focus/pubspec.yaml +++ b/examples/ui/focus/pubspec.yaml @@ -4,7 +4,7 @@ publish_to: none resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/ui/interactive/pubspec.yaml b/examples/ui/interactive/pubspec.yaml index eb8e66d4e6c..65d4a388d0d 100644 --- a/examples/ui/interactive/pubspec.yaml +++ b/examples/ui/interactive/pubspec.yaml @@ -3,7 +3,7 @@ description: Sample code for interactive.md resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/ui/navigation/pubspec.yaml b/examples/ui/navigation/pubspec.yaml index 64d247ce820..442d5d683f9 100644 --- a/examples/ui/navigation/pubspec.yaml +++ b/examples/ui/navigation/pubspec.yaml @@ -4,7 +4,7 @@ publish_to: none resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/ui/widgets_intro/pubspec.yaml b/examples/ui/widgets_intro/pubspec.yaml index 9feac8c2e2b..3fd65854b98 100644 --- a/examples/ui/widgets_intro/pubspec.yaml +++ b/examples/ui/widgets_intro/pubspec.yaml @@ -4,7 +4,7 @@ publish_to: none resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/examples/visual_debugging/pubspec.yaml b/examples/visual_debugging/pubspec.yaml index bbf4a76d276..73c889985eb 100644 --- a/examples/visual_debugging/pubspec.yaml +++ b/examples/visual_debugging/pubspec.yaml @@ -4,7 +4,7 @@ description: Examples of visual debugging. resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: flutter: diff --git a/pubspec.yaml b/pubspec.yaml index bacdf43b4e8..39826b981e5 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -2,7 +2,7 @@ name: docs_flutter_dev publish_to: none environment: - sdk: ^3.10.0 + sdk: ^3.11.0 workspace: - site diff --git a/site/pubspec.yaml b/site/pubspec.yaml index 0d7fe6d2666..487797b18ec 100644 --- a/site/pubspec.yaml +++ b/site/pubspec.yaml @@ -4,7 +4,7 @@ homepage: https://docs.flutter.dev resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: build: ^4.0.4 diff --git a/src/content/cookbook/effects/staggered-menu-animation.md b/src/content/cookbook/effects/staggered-menu-animation.md index 7462a90f269..4002eb49850 100644 --- a/src/content/cookbook/effects/staggered-menu-animation.md +++ b/src/content/cookbook/effects/staggered-menu-animation.md @@ -157,7 +157,7 @@ class _MenuState extends State with SingleTickerProviderStateMixin { static const _staggerTime = Duration(milliseconds: 50); static const _buttonDelayTime = Duration(milliseconds: 150); static const _buttonTime = Duration(milliseconds: 500); - final _animationDuration = + final Duration _animationDuration = _initialDelayTime + (_staggerTime * _menuTitles.length) + _buttonDelayTime + @@ -483,7 +483,7 @@ class _MenuState extends State with SingleTickerProviderStateMixin { static const _staggerTime = Duration(milliseconds: 50); static const _buttonDelayTime = Duration(milliseconds: 150); static const _buttonTime = Duration(milliseconds: 500); - final _animationDuration = + final Duration _animationDuration = _initialDelayTime + (_staggerTime * _menuTitles.length) + _buttonDelayTime + diff --git a/src/content/cookbook/games/firestore-multiplayer.md b/src/content/cookbook/games/firestore-multiplayer.md index db511bd9cf0..34d1e788e1a 100644 --- a/src/content/cookbook/games/firestore-multiplayer.md +++ b/src/content/cookbook/games/firestore-multiplayer.md @@ -219,9 +219,11 @@ class FirestoreController { /// For now, there is only one match. But in order to be ready /// for match-making, put it in a Firestore collection called matches. - late final _matchRef = instance.collection('matches').doc('match_1'); + late final DocumentReference> _matchRef = instance + .collection('matches') + .doc('match_1'); - late final _areaOneRef = _matchRef + late final DocumentReference> _areaOneRef = _matchRef .collection('areas') .doc('area_one') .withConverter>( @@ -229,7 +231,7 @@ class FirestoreController { toFirestore: _cardsToFirestore, ); - late final _areaTwoRef = _matchRef + late final DocumentReference> _areaTwoRef = _matchRef .collection('areas') .doc('area_two') .withConverter>( diff --git a/src/content/cookbook/networking/web-sockets.md b/src/content/cookbook/networking/web-sockets.md index a9413709db0..9a6c9fe150c 100644 --- a/src/content/cookbook/networking/web-sockets.md +++ b/src/content/cookbook/networking/web-sockets.md @@ -34,7 +34,7 @@ create a `WebSocketChannel` that connects to a server: ```dart -final channel = WebSocketChannel.connect( +final WebSocketChannel channel = WebSocketChannel.connect( Uri.parse('wss://echo.websocket.events'), ); ``` @@ -136,7 +136,7 @@ class MyHomePage extends StatefulWidget { class _MyHomePageState extends State { final TextEditingController _controller = TextEditingController(); - final _channel = WebSocketChannel.connect( + final WebSocketChannel _channel = WebSocketChannel.connect( Uri.parse('wss://echo.websocket.events'), ); diff --git a/src/content/data-and-backend/google-apis.md b/src/content/data-and-backend/google-apis.md index 6dfb1649304..aef5da907c5 100644 --- a/src/content/data-and-backend/google-apis.md +++ b/src/content/data-and-backend/google-apis.md @@ -113,7 +113,7 @@ the `initialize` method must be called and allowed to complete. ```dart -final _googleSignIn = GoogleSignIn.instance; +final GoogleSignIn _googleSignIn = GoogleSignIn.instance; @override void initState() { diff --git a/src/content/flutter-for/react-native-devs.md b/src/content/flutter-for/react-native-devs.md index 908f80109a1..f35ccc3ee2b 100644 --- a/src/content/flutter-for/react-native-devs.md +++ b/src/content/flutter-for/react-native-devs.md @@ -2003,8 +2003,8 @@ GET, POST, PUT, and DELETE. ```dart -final url = Uri.parse('https://httpbin.org/ip'); -final httpClient = HttpClient(); +final Uri url = Uri.parse('https://httpbin.org/ip'); +final HttpClient httpClient = HttpClient(); Future getIPAddress() async { final request = await httpClient.getUrl(url); diff --git a/src/content/flutter-for/swiftui-devs.md b/src/content/flutter-for/swiftui-devs.md index 3a8b47a1821..31f689b197b 100644 --- a/src/content/flutter-for/swiftui-devs.md +++ b/src/content/flutter-for/swiftui-devs.md @@ -443,7 +443,7 @@ The following example uses the `.builder()` initializer: ```dart dartpad="d6b9174f33db94164e457b3da80da933" -const widgets = [ +const widgets = [ Text('Row 1'), Icon(CupertinoIcons.arrow_down_square), Icon(CupertinoIcons.arrow_up_square), diff --git a/src/content/tools/pubspec.md b/src/content/tools/pubspec.md index 30fe2ab3bc2..670457d97e3 100644 --- a/src/content/tools/pubspec.md +++ b/src/content/tools/pubspec.md @@ -63,7 +63,7 @@ publish_to: none version: 1.0.0+1 environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: [!flutter:!] # Required for every Flutter project diff --git a/src/content/ui/internationalization/index.md b/src/content/ui/internationalization/index.md index bfd1121b3b1..61209cc847a 100644 --- a/src/content/ui/internationalization/index.md +++ b/src/content/ui/internationalization/index.md @@ -1068,7 +1068,7 @@ RegEx adds last two lines with commented out code and closing bracket. ```dart -const nnDateSymbols = { +const Map nnDateSymbols = { 'NAME': 'nn', 'ERAS': ['f.Kr.', 'e.Kr.'], ``` diff --git a/src/content/ui/layout/constraints.md b/src/content/ui/layout/constraints.md index c15ac3627a6..0c3acc35d9e 100644 --- a/src/content/ui/layout/constraints.md +++ b/src/content/ui/layout/constraints.md @@ -167,10 +167,10 @@ import 'package:flutter/material.dart'; void main() => runApp(const HomePage()); -const red = Colors.red; -const green = Colors.green; -const blue = Colors.blue; -const big = TextStyle(fontSize: 30); +const Color red = Colors.red; +const Color green = Colors.green; +const Color blue = Colors.blue; +const TextStyle big = TextStyle(fontSize: 30); ////////////////////////////////////////////////// diff --git a/tool/dash_site/pubspec.yaml b/tool/dash_site/pubspec.yaml index 85510a74bab..3ec572948af 100644 --- a/tool/dash_site/pubspec.yaml +++ b/tool/dash_site/pubspec.yaml @@ -4,7 +4,7 @@ publish_to: none resolution: workspace environment: - sdk: ^3.10.0 + sdk: ^3.11.0 dependencies: args: ^2.7.0