Closed pranitsh closed 4 years ago
you can export FLUTTER_ROOT
variable in your .bashrc
. I use vscode and it detects my flutter installation
export FLUTTER_ROOT="$(asdf where flutter)"
It worked, you made my day, it worked.
I believe you should add this to the read me: if I didn’t miss it there. Anyways, for anyone who needs it in the future. I followed the command: asdf where flutter. I exported it to my bash profile above the asdf parts. I then restarted my Mac for it to work. (And I selected the flutter shim for the flutter plugin but it didn’t work so that’s why I restarted my computer). And it worked
@oae FLUTTER_ROOT
does not feature in the Flutter setup documentation so adding it to the README here would be great.
This doesn't appear to be a problem with asdf, so, if it is, tell me.
Expected Behavior: Choose flutter shim for vsocde of vscodium flutter plugin. Use asdf Flutter installation for vscode allowing easy use of shortcuts.
Actual Behavior: Choosed flutter shim 1.17.1-stable (i believe that's the name) for flutter plugin and 2 results poped up. Flutter shim not in path and the name not being flutter.
I don't think it's possible to have a flutter installation be in bash but one step in the right direction would be to have the version name contain a folder named flutter. Then this would allow you to pass that into vscode and because vscode flutter plugin only allows the name to be flutter for the plugin.