Skip to content

This Bash script helps you easily switch between different versions of Flutter using git tags

Notifications You must be signed in to change notification settings

erf/flutter-version

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

flutter-version

This Bash script helps you easily switch between different Flutter versions by using a Git tag specified in a .flutter-version file.

Compared with asdf you don't download the whole Flutter repo for each version you want to use and thus save space

Prerequisites

  • Flutter: Ensure that Flutter is installed on your system and is accessible via the command line.
  • Git: The script requires Git to be installed to switch between versions using tags.

Getting Started

Run chmod +x flutter-version.sh to make it executable.

Make a link to access it globally with ln -s path/to/flutter-version.sh path/in/PATH/flutter-version

In the project root, create a file named .flutter-version which should contain the Git tag of the Flutter version you want to use. E.g: 3.19.0

Run flutter-version to checkout the version tag and precache dependencies.

About

This Bash script helps you easily switch between different versions of Flutter using git tags

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages