any in order to resolve version conflicts.private-named-parameters in widget_preview_scaffold requiring 3.12.0), ask the user if that specific package should be targeted at the higher SDK version while the rest of the repository remains at the requested target.Follow these steps carefully to perform the bump, resolve dependencies, and verify the changes.
-0 pre-release suffix (e.g., ^3.13.0-0 instead of ^3.13.0).^3.13.0 exclude pre-release versions of that major/minor release. Since active development and CI run on pre-releases, omitting the -0 suffix will cause package resolution to fail. If the user provided a version without -0, append it or ask the user for confirmation.pubspec.yaml FilesRun the repository's Dart tool script to update matching pubspec.yaml files cross-platform:
dart dev/tools/bin/bump_version_constraints.dart <OLD_VERSION_CONSTRAINT> <NEW_VERSION_CONSTRAINT>
Example: dart dev/tools/bin/bump_version_constraints.dart ^3.10.0-0 ^3.11.0-0
<OLD_VERSION_CONSTRAINT>. If it encounters packages with deviating constraints (e.g. higher SDK versions like ^3.12.0 or custom ranges), it leaves them untouched and prints a message flagging them to the user.Flutter enforces dependency integrity via checksums. Run the update-packages tool to re-solve the package workspace, generate updated pubspec.lock files, and update the checksums:
flutter update-packages --force-upgrade --update-hashes
Verify the new constraints solve correctly and do not introduce any analyzer errors, warnings, lints (infos), or deprecations.
Run static analysis:
flutter analyze --flutter-repo
flutter analyze as a failure. Do not ignore info (lint) or warning diagnostics, as the Flutter repository requires all analysis issues to be clean. Pay close attention to newly firing lints or deprecated lint rule warnings.bump_results.md in the workspace root (e.g., <flutter_root>/bump_results.md). The file must include:pubspec.yaml files.update-packages and static analysis runs (highlighting any failures, warnings, or newly firing lints).info or warning diagnostics like prefer_initializing_formals or deprecated_lint), list the failures/warnings in bump_results.md, report them to the user, and ask for guidance (or proceed to fix them if instructed).bump_results.md in the workspace root, show a summary of modified files (git status), and prompt the user to commit the changes and prepare a pull request.