Skip to content

frankylee/flutter-template

Repository files navigation

flutter_template

A new Flutter project.

Table of Contents


Getting Started

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.


fvm - Flutter Version Manager

FVM streamlines Flutter version management. It allows per-project SDK versions, ensuring consistent app builds and easier testing of new releases, thereby boosting the efficiency of your Flutter project tasks.

We use fvm to manage the Flutter version of our applications. For more information, please refer to the official documentation. For a quick-start, please continue reading.

Homebrew

Install

brew tap leoafarias/fvm
brew install fvm

Uninstall

brew uninstall fvm
brew untap leoafarias/fvm

Install.sh

curl -fsSL https://fvm.app/install.sh | bash

Powershell

choco install fvm

Usage

fvm use [version] [options]

For example, fvm use 3.22.2 will install the Flutter version if it has not already been downloaded and then set the current project repository to use the specified version.

Global Configuration

If you are configuring a global version, FVM will check if the global version is set in your environment path. If it is not, it will provide you with the path that needs to be configured.

Link a global Flutter version

fvm global [version]

For example, fvm global 3.22.2 will set the Flutter version 3.22.2 as the global version on your machine.

Troubleshooting

Build scripts are failing due to a different Flutter version than what is set for the project

This is often due to having a global version set by fvm that does not match the active project. This is caused by tooling which does not play nicely with multiple Flutter versions.

To remedy, temporarily update your global version to match the project and re-run the scripts.

fvm is unregistered and symlinks are broken

This occurs when there is a conflict between a globally installed fvm and a Dart pub package install. To remedy, run dart pub global activate fvm or uninstall the Dart pub package with pub uninstall fvm.


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published