Flutter Commands

Table of Contents

Getting started with Flutter

Installing:

  1. Install Flutter from here. I’m on Fedora I’ll follow Linux one.

  2. Download the zip / .exe

  3. Extracting the file to /opt

$ tar -xvf flutter_linux_3.16.0-stable.tar.xz -C /opt/
  1. Adding flutter to the path:
$ nano ~/.bashrc

Add:

export PATH="$PATH:/opt/flutter/bin"

Disable analytics:

$ flutter config --no-analytics

System Check:

$ flutter doctor

Flutter requires Android SDK

How to setup android studio will in other blog post.

Create new app:

flutter create app_name

Update the packages:

flutter pub get

Run the web app in browser:

flutter run -d web-server

Enable web for project

flutter config --enable-web

For running flutter with No null Safety:

flutter run --no-sound-null-safety

Flutter firebase setup

Using Flutterfire

From here

Flutter Hive type adaptor

Frome here