Running Flutter
There are a few ways you can interact with the Flutter SDK setup. These will depend primarily on preference.
#
Proxy CommandsYou are able to proxy any flutter
or dart
commands to the configured version by adding fvm
in front of it.
#
Flutter#
Darttip
Configure the following alias for a shorthand version of the command
#
Benefits- Find relative project configurations.
- Monorepo compatibility.
- Fallback to
global
configured version orPATH
configured.
#
RoutingWhen proxying commands, FVM
will look for an sdk in the following order.
- Project
- Ancestor directory
- Global (Set through FVM)
- Environment (Flutter version configured on
PATH
)
#
Call SDK DirectlyVersions installed by FVM are standard Flutter SDK installs. That means you are able to call them directly without proxying through FVM.
Using the symlink will dynamically call the configured version for the project.
tip
Configure the following alias to call the relative project version, without the need to proxy.
#
Spawn CommandSpawns a command on any installed Flutter SDK.
Example
The following will run flutter analyze
on the master
channel