Mguy13 fb0902652e | ||
---|---|---|
.. | ||
.fvm | ||
.idea | ||
android | ||
assets | ||
ios | ||
lib | ||
test | ||
.gitattributes | ||
.gitignore | ||
.metadata | ||
CHANGELOG.md | ||
LICENSE | ||
README.md | ||
analysis_options.yaml | ||
flavorizr.yaml | ||
flutter_launcher_icons-develop.yaml | ||
flutter_launcher_icons-prod.yaml | ||
flutter_native_splash.yaml | ||
pubspec.yaml |
README.md
A new Flutter project.
Getting Started
General 'random' Project errors
Change the minSdkVersion in flutter-directory/packages/flutter_tools/gradle/flutter.gradle to 23
every time there is an update.
If intl throws an error about not being able to find a package, generate with flutter gen-l10n
.
Use this link as workaround
for rendering MD content in Android Studio
Flutter Version Manager (FVM)
Inspiration
To containerize the setup of a flutter project, as much as possible, without involving actual Docker.
Setup
- Overview
- Install a standalone (since it is to be used globally)
- Install the Sidekick GUI for your platform. Use that to download, install and manage versions
- Opening a project should create/read(in case already existing) the .fvm folder with versioning
- Point the Flutter SDK location (per your IDE-specific settings) to the symlink(shortcut) inside the flutter_sdk folder.
- Create the aliases for short-circuiting
fvm [flutter|dart] <...>
to just[flutter|dart] <...>
- For Linux, just an alias
- For Windows/Powershell, download my profile from my Github .
FVM error
If a simple flutter command fails with a git not found in your PATH
due to the new fvm, do the
following:
- Check if you have git installed properly, with
git --version
- Skip the git check in flutter
a) Go to 'flutter_sdk/bin/internal/shared.bat'
b) Find a line where something like
SET git_exists=false
is used (~line 56) and set it to true. - Confirm that that flutter command works
Errors while building Pods (iOS + MacOS)
- Usually resolvable by deleting the Podfile.lock.
- For CDN-trunk out-of-date-error, try updating the precompiled Firestore SDK (Check the comments in Podfile, under 'targets' section).