Skip to content

Instantly share code, notes, and snippets.

@keskinonur
Created April 14, 2024 16:55
Show Gist options
  • Select an option

  • Save keskinonur/a4e5f5c8084026634daf915775bf69aa to your computer and use it in GitHub Desktop.

Select an option

Save keskinonur/a4e5f5c8084026634daf915775bf69aa to your computer and use it in GitHub Desktop.
A fast way of creating Flutter project

Install Flutter Fast CLI

For more details, https://codeotr.github.io/flutter-fast-guide/start/installation/

dart pub global activate flutter_fast_cli

Insert dart global bin path, if not

export PATH="$PATH":"$HOME/.pub-cache/bin"

Install Firebase CLI

For more details, https://firebase.google.com/docs/flutter/setup

curl -sL https://firebase.tools | bash
firebase login

Install FlutterFire CLI for Flutter apps

dart pub global activate flutterfire_cli

List global pub packages

dart pub global list

Use Flutter Fast wizard

fast wizard

Replace the App Logo

In the assets/images folder there is a placeholder image called logo.png. Replace this image with your own but keep the name the same (“logo.png”). Then:

flutter pub run flutter_launcher_icons

Useful commands

Get packages

flutter pub get

Clean and pub get

rm pubspec.lock && flutter pub get

Build for Android

flutter build appbundle --dart-define-from-file=assets/config.json

If you need fastlane please check their docs, https://docs.fastlane.tools/getting-started/ios/setup/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment