-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[go_router] Update generated output format #9817
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[go_router] Update generated output format #9817
Conversation
The Dart 3.7+ formatter does not remove all blank lines in function calls split across multile lines, so the generated+formatted output no longer matched expetations once the example app was changed to use a minimum SDK of 3.7. This updates the example app, and changes the code generator such that running the new formatter on the output has the same results as it did with the previous formatter. Unblocks flutter#9816
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request updates the go_router_builder to be compatible with the new Dart 3.7+ formatter. The main changes are in the code generator to adjust the whitespace in the generated output. This prevents the new formatter from leaving unwanted blank lines. The PR also includes updates to the example applications, reformatting them with the new formatter and updating their minimum SDK constraint. The changes look good and achieve the stated goal. I have one suggestion to improve the readability of the code generator.
| String get routeConstructorParameters => | ||
| 'path: ${escapeDartString(path)},' | ||
| '${name != null ? 'name: ${escapeDartString(name!)},' : ''}' | ||
| '${caseSensitive ? '' : 'caseSensitive: $caseSensitive,'}' | ||
| '${parentNavigatorKey == null ? '' : 'parentNavigatorKey: $parentNavigatorKey,'}'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For better readability and maintainability, you could build the list of parameters using a List and then join them. This makes it easier to add or remove parameters in the future.
String get routeConstructorParameters {
final List<String> params = <String>[
'path: ${escapeDartString(path)}',
if (name != null) 'name: ${escapeDartString(name!)}',
if (!caseSensitive) 'caseSensitive: $caseSensitive',
if (parentNavigatorKey != null) 'parentNavigatorKey: $parentNavigatorKey',
];
return '${params.join(', ')},';
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chunhtai Something to consider for future changes; I actually wrote it this way originally, and then noticed that other versions of this method used direct string concatenation so I switched to that for consistency to minimize churn in this PR. I think adopting list conditionals everywhere instead would be a good change.
chunhtai
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* main: (24 commits) Roll Flutter from 0a2906b81d5e to b3fb4c786d80 (5 revisions) (flutter#9840) Update repo for 3.35 stable release (flutter#9816) Roll Flutter from 52af7a504025 to 0a2906b81d5e (16 revisions) (flutter#9836) [image_picker] Updates min SDK to 3.29 (flutter#9830) [image_picker] Add the ability to pick multiple videos (flutter#9775) [image_picker] Add the ability to pick multiple videos - platform implementations (flutter#9818) [various] Updates min SDK for third_party/packages to 3.29 (flutter#9819) [vector_graphics] Updates min SDK to 3.29 (flutter#9820) [google_maps_flutter] Updates min SDK to 3.29 (flutter#9821) [video_player] Updates min SDK to 3.29 (flutter#9826) [shared_preferences] Updates min SDK to 3.29 (flutter#9829) [image_picker_ios] Add photo to simulator Photos library during test (flutter#9759) [interactive_media_ads] Updates `README` with information about enabling desugaring on Android (flutter#9790) [in_app_purchase] Updates min SDK to 3.29 (flutter#9825) Roll Flutter from f4334d27934b to 52af7a504025 (29 revisions) (flutter#9832) [go_router] Update generated output format (flutter#9817) [video_player] Move Android buffer updates to Dart (flutter#9771) [webview_flutter] Add support for payment requests on Android (flutter#9679) [vector_graphics_compiler] Set the m4_10 (Z scale) value to 1 when constructing an AffineMatrix from an SVG matrix (flutter#9813) [url_launcher_ios] Fix test button text to work on iOS 26 (flutter#9766) ... # Conflicts: # packages/go_router_builder/CHANGELOG.md # packages/go_router_builder/example/lib/all_types.g.dart # packages/go_router_builder/example/lib/main.g.dart # packages/go_router_builder/example/lib/shell_route_with_keys_example.g.dart # packages/go_router_builder/example/lib/shell_route_with_observers_example.g.dart
flutter/packages@5c52c55...953cae0 2025-08-19 [email protected] Add com.android.tools.build:gradle to dependabot gradle-plugin group (flutter/packages#9848) 2025-08-19 [email protected] [flutter_migrate] Remove source (flutter/packages#9847) 2025-08-18 [email protected] [go_router]: Add `RelativeGoRouteData` and `TypedRelativeGoRoute` (flutter/packages#9732) 2025-08-18 [email protected] Roll Flutter (stable) from edada7c to 20f8274 (1474 revisions) (flutter/packages#9837) 2025-08-18 [email protected] Roll Flutter from b3fb4c7 to 2265d94 (7 revisions) (flutter/packages#9845) 2025-08-18 [email protected] Disable SwiftPM for `xcode-analyze` (flutter/packages#9666) 2025-08-17 [email protected] Roll Flutter from 0a2906b to b3fb4c7 (5 revisions) (flutter/packages#9840) 2025-08-16 [email protected] Update repo for 3.35 stable release (flutter/packages#9816) 2025-08-16 [email protected] Roll Flutter from 52af7a5 to 0a2906b (16 revisions) (flutter/packages#9836) 2025-08-16 [email protected] [image_picker] Updates min SDK to 3.29 (flutter/packages#9830) 2025-08-16 [email protected] [image_picker] Add the ability to pick multiple videos (flutter/packages#9775) 2025-08-16 [email protected] [image_picker] Add the ability to pick multiple videos - platform implementations (flutter/packages#9818) 2025-08-16 [email protected] [various] Updates min SDK for third_party/packages to 3.29 (flutter/packages#9819) 2025-08-16 [email protected] [vector_graphics] Updates min SDK to 3.29 (flutter/packages#9820) 2025-08-16 [email protected] [google_maps_flutter] Updates min SDK to 3.29 (flutter/packages#9821) 2025-08-16 [email protected] [video_player] Updates min SDK to 3.29 (flutter/packages#9826) 2025-08-15 [email protected] [shared_preferences] Updates min SDK to 3.29 (flutter/packages#9829) 2025-08-15 [email protected] [image_picker_ios] Add photo to simulator Photos library during test (flutter/packages#9759) 2025-08-15 [email protected] [interactive_media_ads] Updates `README` with information about enabling desugaring on Android (flutter/packages#9790) 2025-08-15 [email protected] [in_app_purchase] Updates min SDK to 3.29 (flutter/packages#9825) 2025-08-15 [email protected] Roll Flutter from f4334d2 to 52af7a5 (29 revisions) (flutter/packages#9832) 2025-08-15 [email protected] [go_router] Update generated output format (flutter/packages#9817) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC [email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
The Dart 3.7+ formatter does not remove all blank lines in function calls split across multile lines, so the generated+formatted output no longer matched expetations once the example app was changed to use a minimum SDK of 3.7. This updates the example app's min SDK (thus updating the autoformatting of all of its code), and changes the code generator such that running the new formatter on the output has the same results as it did with the previous formatter.
Unblocks flutter#9816
## Pre-Review Checklist
**Note**: The Flutter team is currently trialing the use of [Gemini Code Assist for GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code). Comments from the `gemini-code-assist` bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.
[^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
flutter/packages@5c52c55...953cae0 2025-08-19 [email protected] Add com.android.tools.build:gradle to dependabot gradle-plugin group (flutter/packages#9848) 2025-08-19 [email protected] [flutter_migrate] Remove source (flutter/packages#9847) 2025-08-18 [email protected] [go_router]: Add `RelativeGoRouteData` and `TypedRelativeGoRoute` (flutter/packages#9732) 2025-08-18 [email protected] Roll Flutter (stable) from edada7c to 20f8274 (1474 revisions) (flutter/packages#9837) 2025-08-18 [email protected] Roll Flutter from b3fb4c7 to 2265d94 (7 revisions) (flutter/packages#9845) 2025-08-18 [email protected] Disable SwiftPM for `xcode-analyze` (flutter/packages#9666) 2025-08-17 [email protected] Roll Flutter from 0a2906b to b3fb4c7 (5 revisions) (flutter/packages#9840) 2025-08-16 [email protected] Update repo for 3.35 stable release (flutter/packages#9816) 2025-08-16 [email protected] Roll Flutter from 52af7a5 to 0a2906b (16 revisions) (flutter/packages#9836) 2025-08-16 [email protected] [image_picker] Updates min SDK to 3.29 (flutter/packages#9830) 2025-08-16 [email protected] [image_picker] Add the ability to pick multiple videos (flutter/packages#9775) 2025-08-16 [email protected] [image_picker] Add the ability to pick multiple videos - platform implementations (flutter/packages#9818) 2025-08-16 [email protected] [various] Updates min SDK for third_party/packages to 3.29 (flutter/packages#9819) 2025-08-16 [email protected] [vector_graphics] Updates min SDK to 3.29 (flutter/packages#9820) 2025-08-16 [email protected] [google_maps_flutter] Updates min SDK to 3.29 (flutter/packages#9821) 2025-08-16 [email protected] [video_player] Updates min SDK to 3.29 (flutter/packages#9826) 2025-08-15 [email protected] [shared_preferences] Updates min SDK to 3.29 (flutter/packages#9829) 2025-08-15 [email protected] [image_picker_ios] Add photo to simulator Photos library during test (flutter/packages#9759) 2025-08-15 [email protected] [interactive_media_ads] Updates `README` with information about enabling desugaring on Android (flutter/packages#9790) 2025-08-15 [email protected] [in_app_purchase] Updates min SDK to 3.29 (flutter/packages#9825) 2025-08-15 [email protected] Roll Flutter from f4334d2 to 52af7a5 (29 revisions) (flutter/packages#9832) 2025-08-15 [email protected] [go_router] Update generated output format (flutter/packages#9817) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC [email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
flutter/packages@5c52c55...953cae0 2025-08-19 [email protected] Add com.android.tools.build:gradle to dependabot gradle-plugin group (flutter/packages#9848) 2025-08-19 [email protected] [flutter_migrate] Remove source (flutter/packages#9847) 2025-08-18 [email protected] [go_router]: Add `RelativeGoRouteData` and `TypedRelativeGoRoute` (flutter/packages#9732) 2025-08-18 [email protected] Roll Flutter (stable) from edada7c to 20f8274 (1474 revisions) (flutter/packages#9837) 2025-08-18 [email protected] Roll Flutter from b3fb4c7 to 2265d94 (7 revisions) (flutter/packages#9845) 2025-08-18 [email protected] Disable SwiftPM for `xcode-analyze` (flutter/packages#9666) 2025-08-17 [email protected] Roll Flutter from 0a2906b to b3fb4c7 (5 revisions) (flutter/packages#9840) 2025-08-16 [email protected] Update repo for 3.35 stable release (flutter/packages#9816) 2025-08-16 [email protected] Roll Flutter from 52af7a5 to 0a2906b (16 revisions) (flutter/packages#9836) 2025-08-16 [email protected] [image_picker] Updates min SDK to 3.29 (flutter/packages#9830) 2025-08-16 [email protected] [image_picker] Add the ability to pick multiple videos (flutter/packages#9775) 2025-08-16 [email protected] [image_picker] Add the ability to pick multiple videos - platform implementations (flutter/packages#9818) 2025-08-16 [email protected] [various] Updates min SDK for third_party/packages to 3.29 (flutter/packages#9819) 2025-08-16 [email protected] [vector_graphics] Updates min SDK to 3.29 (flutter/packages#9820) 2025-08-16 [email protected] [google_maps_flutter] Updates min SDK to 3.29 (flutter/packages#9821) 2025-08-16 [email protected] [video_player] Updates min SDK to 3.29 (flutter/packages#9826) 2025-08-15 [email protected] [shared_preferences] Updates min SDK to 3.29 (flutter/packages#9829) 2025-08-15 [email protected] [image_picker_ios] Add photo to simulator Photos library during test (flutter/packages#9759) 2025-08-15 [email protected] [interactive_media_ads] Updates `README` with information about enabling desugaring on Android (flutter/packages#9790) 2025-08-15 [email protected] [in_app_purchase] Updates min SDK to 3.29 (flutter/packages#9825) 2025-08-15 [email protected] Roll Flutter from f4334d2 to 52af7a5 (29 revisions) (flutter/packages#9832) 2025-08-15 [email protected] [go_router] Update generated output format (flutter/packages#9817) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC [email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
flutter/packages@5c52c55...953cae0 2025-08-19 [email protected] Add com.android.tools.build:gradle to dependabot gradle-plugin group (flutter/packages#9848) 2025-08-19 [email protected] [flutter_migrate] Remove source (flutter/packages#9847) 2025-08-18 [email protected] [go_router]: Add `RelativeGoRouteData` and `TypedRelativeGoRoute` (flutter/packages#9732) 2025-08-18 [email protected] Roll Flutter (stable) from edada7c to 20f8274 (1474 revisions) (flutter/packages#9837) 2025-08-18 [email protected] Roll Flutter from b3fb4c7 to 2265d94 (7 revisions) (flutter/packages#9845) 2025-08-18 [email protected] Disable SwiftPM for `xcode-analyze` (flutter/packages#9666) 2025-08-17 [email protected] Roll Flutter from 0a2906b to b3fb4c7 (5 revisions) (flutter/packages#9840) 2025-08-16 [email protected] Update repo for 3.35 stable release (flutter/packages#9816) 2025-08-16 [email protected] Roll Flutter from 52af7a5 to 0a2906b (16 revisions) (flutter/packages#9836) 2025-08-16 [email protected] [image_picker] Updates min SDK to 3.29 (flutter/packages#9830) 2025-08-16 [email protected] [image_picker] Add the ability to pick multiple videos (flutter/packages#9775) 2025-08-16 [email protected] [image_picker] Add the ability to pick multiple videos - platform implementations (flutter/packages#9818) 2025-08-16 [email protected] [various] Updates min SDK for third_party/packages to 3.29 (flutter/packages#9819) 2025-08-16 [email protected] [vector_graphics] Updates min SDK to 3.29 (flutter/packages#9820) 2025-08-16 [email protected] [google_maps_flutter] Updates min SDK to 3.29 (flutter/packages#9821) 2025-08-16 [email protected] [video_player] Updates min SDK to 3.29 (flutter/packages#9826) 2025-08-15 [email protected] [shared_preferences] Updates min SDK to 3.29 (flutter/packages#9829) 2025-08-15 [email protected] [image_picker_ios] Add photo to simulator Photos library during test (flutter/packages#9759) 2025-08-15 [email protected] [interactive_media_ads] Updates `README` with information about enabling desugaring on Android (flutter/packages#9790) 2025-08-15 [email protected] [in_app_purchase] Updates min SDK to 3.29 (flutter/packages#9825) 2025-08-15 [email protected] Roll Flutter from f4334d2 to 52af7a5 (29 revisions) (flutter/packages#9832) 2025-08-15 [email protected] [go_router] Update generated output format (flutter/packages#9817) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC [email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
flutter/packages@5c52c55...953cae0 2025-08-19 [email protected] Add com.android.tools.build:gradle to dependabot gradle-plugin group (flutter/packages#9848) 2025-08-19 [email protected] [flutter_migrate] Remove source (flutter/packages#9847) 2025-08-18 [email protected] [go_router]: Add `RelativeGoRouteData` and `TypedRelativeGoRoute` (flutter/packages#9732) 2025-08-18 [email protected] Roll Flutter (stable) from edada7c to 20f8274 (1474 revisions) (flutter/packages#9837) 2025-08-18 [email protected] Roll Flutter from b3fb4c7 to 2265d94 (7 revisions) (flutter/packages#9845) 2025-08-18 [email protected] Disable SwiftPM for `xcode-analyze` (flutter/packages#9666) 2025-08-17 [email protected] Roll Flutter from 0a2906b to b3fb4c7 (5 revisions) (flutter/packages#9840) 2025-08-16 [email protected] Update repo for 3.35 stable release (flutter/packages#9816) 2025-08-16 [email protected] Roll Flutter from 52af7a5 to 0a2906b (16 revisions) (flutter/packages#9836) 2025-08-16 [email protected] [image_picker] Updates min SDK to 3.29 (flutter/packages#9830) 2025-08-16 [email protected] [image_picker] Add the ability to pick multiple videos (flutter/packages#9775) 2025-08-16 [email protected] [image_picker] Add the ability to pick multiple videos - platform implementations (flutter/packages#9818) 2025-08-16 [email protected] [various] Updates min SDK for third_party/packages to 3.29 (flutter/packages#9819) 2025-08-16 [email protected] [vector_graphics] Updates min SDK to 3.29 (flutter/packages#9820) 2025-08-16 [email protected] [google_maps_flutter] Updates min SDK to 3.29 (flutter/packages#9821) 2025-08-16 [email protected] [video_player] Updates min SDK to 3.29 (flutter/packages#9826) 2025-08-15 [email protected] [shared_preferences] Updates min SDK to 3.29 (flutter/packages#9829) 2025-08-15 [email protected] [image_picker_ios] Add photo to simulator Photos library during test (flutter/packages#9759) 2025-08-15 [email protected] [interactive_media_ads] Updates `README` with information about enabling desugaring on Android (flutter/packages#9790) 2025-08-15 [email protected] [in_app_purchase] Updates min SDK to 3.29 (flutter/packages#9825) 2025-08-15 [email protected] Roll Flutter from f4334d2 to 52af7a5 (29 revisions) (flutter/packages#9832) 2025-08-15 [email protected] [go_router] Update generated output format (flutter/packages#9817) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC [email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
flutter/packages@5c52c55...953cae0 2025-08-19 [email protected] Add com.android.tools.build:gradle to dependabot gradle-plugin group (flutter/packages#9848) 2025-08-19 [email protected] [flutter_migrate] Remove source (flutter/packages#9847) 2025-08-18 [email protected] [go_router]: Add `RelativeGoRouteData` and `TypedRelativeGoRoute` (flutter/packages#9732) 2025-08-18 [email protected] Roll Flutter (stable) from edada7c to 20f8274 (1474 revisions) (flutter/packages#9837) 2025-08-18 [email protected] Roll Flutter from b3fb4c7 to 2265d94 (7 revisions) (flutter/packages#9845) 2025-08-18 [email protected] Disable SwiftPM for `xcode-analyze` (flutter/packages#9666) 2025-08-17 [email protected] Roll Flutter from 0a2906b to b3fb4c7 (5 revisions) (flutter/packages#9840) 2025-08-16 [email protected] Update repo for 3.35 stable release (flutter/packages#9816) 2025-08-16 [email protected] Roll Flutter from 52af7a5 to 0a2906b (16 revisions) (flutter/packages#9836) 2025-08-16 [email protected] [image_picker] Updates min SDK to 3.29 (flutter/packages#9830) 2025-08-16 [email protected] [image_picker] Add the ability to pick multiple videos (flutter/packages#9775) 2025-08-16 [email protected] [image_picker] Add the ability to pick multiple videos - platform implementations (flutter/packages#9818) 2025-08-16 [email protected] [various] Updates min SDK for third_party/packages to 3.29 (flutter/packages#9819) 2025-08-16 [email protected] [vector_graphics] Updates min SDK to 3.29 (flutter/packages#9820) 2025-08-16 [email protected] [google_maps_flutter] Updates min SDK to 3.29 (flutter/packages#9821) 2025-08-16 [email protected] [video_player] Updates min SDK to 3.29 (flutter/packages#9826) 2025-08-15 [email protected] [shared_preferences] Updates min SDK to 3.29 (flutter/packages#9829) 2025-08-15 [email protected] [image_picker_ios] Add photo to simulator Photos library during test (flutter/packages#9759) 2025-08-15 [email protected] [interactive_media_ads] Updates `README` with information about enabling desugaring on Android (flutter/packages#9790) 2025-08-15 [email protected] [in_app_purchase] Updates min SDK to 3.29 (flutter/packages#9825) 2025-08-15 [email protected] Roll Flutter from f4334d2 to 52af7a5 (29 revisions) (flutter/packages#9832) 2025-08-15 [email protected] [go_router] Update generated output format (flutter/packages#9817) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC [email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
flutter/packages@5c52c55...953cae0 2025-08-19 [email protected] Add com.android.tools.build:gradle to dependabot gradle-plugin group (flutter/packages#9848) 2025-08-19 [email protected] [flutter_migrate] Remove source (flutter/packages#9847) 2025-08-18 [email protected] [go_router]: Add `RelativeGoRouteData` and `TypedRelativeGoRoute` (flutter/packages#9732) 2025-08-18 [email protected] Roll Flutter (stable) from edada7c to 20f8274 (1474 revisions) (flutter/packages#9837) 2025-08-18 [email protected] Roll Flutter from b3fb4c7 to 2265d94 (7 revisions) (flutter/packages#9845) 2025-08-18 [email protected] Disable SwiftPM for `xcode-analyze` (flutter/packages#9666) 2025-08-17 [email protected] Roll Flutter from 0a2906b to b3fb4c7 (5 revisions) (flutter/packages#9840) 2025-08-16 [email protected] Update repo for 3.35 stable release (flutter/packages#9816) 2025-08-16 [email protected] Roll Flutter from 52af7a5 to 0a2906b (16 revisions) (flutter/packages#9836) 2025-08-16 [email protected] [image_picker] Updates min SDK to 3.29 (flutter/packages#9830) 2025-08-16 [email protected] [image_picker] Add the ability to pick multiple videos (flutter/packages#9775) 2025-08-16 [email protected] [image_picker] Add the ability to pick multiple videos - platform implementations (flutter/packages#9818) 2025-08-16 [email protected] [various] Updates min SDK for third_party/packages to 3.29 (flutter/packages#9819) 2025-08-16 [email protected] [vector_graphics] Updates min SDK to 3.29 (flutter/packages#9820) 2025-08-16 [email protected] [google_maps_flutter] Updates min SDK to 3.29 (flutter/packages#9821) 2025-08-16 [email protected] [video_player] Updates min SDK to 3.29 (flutter/packages#9826) 2025-08-15 [email protected] [shared_preferences] Updates min SDK to 3.29 (flutter/packages#9829) 2025-08-15 [email protected] [image_picker_ios] Add photo to simulator Photos library during test (flutter/packages#9759) 2025-08-15 [email protected] [interactive_media_ads] Updates `README` with information about enabling desugaring on Android (flutter/packages#9790) 2025-08-15 [email protected] [in_app_purchase] Updates min SDK to 3.29 (flutter/packages#9825) 2025-08-15 [email protected] Roll Flutter from f4334d2 to 52af7a5 (29 revisions) (flutter/packages#9832) 2025-08-15 [email protected] [go_router] Update generated output format (flutter/packages#9817) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC [email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
The Dart 3.7+ formatter does not remove all blank lines in function calls split across multile lines, so the generated+formatted output no longer matched expetations once the example app was changed to use a minimum SDK of 3.7. This updates the example app's min SDK (thus updating the autoformatting of all of its code), and changes the code generator such that running the new formatter on the output has the same results as it did with the previous formatter.
Unblocks #9816
Pre-Review Checklist
[shared_preferences]pubspec.yamlwith an appropriate new version according to the pub versioning philosophy, or I have commented below to indicate which version change exemption this PR falls under1.CHANGELOG.mdto add a description of the change, following repository CHANGELOG style, or I have commented below to indicate which CHANGELOG exemption this PR falls under1.///).Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the
gemini-code-assistbot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.Footnotes
Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. ↩ ↩2 ↩3