One way to do this would be for flutter update-packages --force-upgrade to read the dependencies & dev_depencencies from all the //packages/flutter_tools/templates/**/pubspec.yaml.tmpl files and add them to its global solve, and then write back the solved versions to the template files.