Flutter Env Setup
👒

Flutter Env Setup

Tag
Programming
Last Edited Time
Dec 20, 2021 08:34 PM
Created
Jul 12, 2020 05:06 PM

Enviroment

I am using zsh (Z shell), edit (vim) .zshrc in the / .
export PATH="$PATH:[PATH_TO_FLUTTER_GIT_DIRECTORY]/flutter/bin"
checking installation:
which flutter; which dart
 

Simulator

open -a Simulator

App Setup

flutter create my_app
cd my_app
flutter run

WorkSpace

open ios/Runner.xcworkspace

Fixing

Error: resource fork, Finder information, or similar detritus not allowed Command CodeSign failed with a nonzero exit code
Fix:
xattr -cr .

Android SDK Position

/Users/jimschenchen/Library/Android/sdk

Android hypervisor Check

/Users/jimschenchen/Library/Android/sdk/emulator/emulator -accel-check

Start

The app extends StatelessWidget, which makes the app itself a widget. In Flutter, almost everything is a widget, including alignment, padding, and layout.

Pub Get

flutter pub get
 
xattr -cr .

Loading Comments...