Skip to content

wildan-pratama/flutter-install

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Notes

This script will install android sdk and flutter sdk on ~/Android. If you select install with Android Studio, Android Studio will installed on /opt/android-studio

Flutter installer

Requirements

Arch linux based OS (Pacman).

Debian 11 based OS, Ubuntu 20.04 LTS based OS or newer (APT).

bash, zsh or fish shell.

To Install

  1. Clone this repository and run install.sh
git clone https://github.com/wildan-pratama/flutter-install.git
cd flutter-install

./install.sh
  1. Follow step installation on script

image

After installation

If you want change your shell, you must put your path manualy

# from fish to bash/zsh
## add this line to your .bashrc or .zshrc, if already exits you can skip
source $HOME/Android/flutterrc

# from bash/zsh to fish
## add this line to ~/.config/fish/config.fish, if already exits you can skip
source $HOME/Android/flutter.fish

You can set browser for flutter web on ~Android/flutterrc or ~/Android/flutter.fish

# fish
## remove comment (#) and edit this line on ~/Android/flutter.fish
set -x CHROME_EXECUTABLE "/path/to/your/browser"

# bash/zsh
## remove comment (#) and edit this line on ~Android/flutterrc
export CHROME_EXECUTABLE="/path/to/your/browser"

If you want install AVD witout Android Studio you can install emulator

# Install emulator
sdkmanager --install emulator

# For more instruction about emulator you can tipe --help
emulator --help

# Example for installing a emulator
## Search system image you want install
sdkmanager --list
## Download system image, exp:
sdkmanager --install "system-images;android-33;google_apis_playstore;x86_64"
## Create Emulator
avdmanager create avd -n Emulatorname -k "system-images;android-33;google_apis_playstore;x86_64" --device "pixel"
## Exp to start Emulator with gpu and 2048MB memory
emulator -avd Emulatorname -gpu host -memory 2048

About

Flutter installer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages