mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
We thought it would be OK to call the create command offline-only, but it turns out that isn't a great idea because not all of the create template dependencies are cached by running flutter_tool. This PR makes it go online by default when running pub get after creating a project, and adds an "--offline" flag to the create command so that offline users can use it offline if their cache is warm.
Flutter tools
Tools for building Flutter applications.
To run the tests, ensure that no devices are connected,
then navigate to flutter_tools and execute:
DART_VM_OPTIONS=--assert-initializer ../../bin/cache/dart-sdk/bin/pub run test