-
Notifications
You must be signed in to change notification settings - Fork 28.9k
Description
Use case
I don't want to be notified by Flutter tool when new version of Flutter becomes available. Not only I always stay up to date on latest Flutter releases, but I often have to switch between versions using fvm
, and I get notified about "new version" way too often.
I can do alias flutter="flutter --no-version-check"
, but I don't like it. I prefer to use environment variables for defining such options. Furthermore it's a usual approach followed by many CLI tools: you can configure the same setting in 3 places (config file -> env variable -> command-line flag).
I see that Flutter tool uses the cli_config
package, which provides some facilities to implement the behavior I want
Proposal
Teach flutter_tools
to handle FLUTTER_VERSION_CHECK
env variable. If this variable will be set to false
, behave as if --no-version-check
was passed.
I am willing to implement this once I get a buy-in from some other team members :)