Skip to content

Loading, reading, writing file logic with dart

License

Notifications You must be signed in to change notification settings

laisiangtho/lidea

Repository files navigation

lidea

Loading, reading and writing file logic with dart plus flutter theme scope

alt text

Flutter

create, analyze, test, and run an app:

# create
flutter create app_name
cd app_name

# analyze
flutter analyze

# test
flutter test

# run
flutter run lib/main.dart

# package
flutter pub get
# check outdated
flutter pub outdated

# upgrade
flutter pub upgrade
# upgrade dependencies
flutter pub upgrade --major-version

# To view all commands that flutter supports
flutter --help --verbose

# See the current version of the Flutter SDK, framework, engine & tools
flutter --version

# build
flutter build appbundle --release

Flutter SDK command line tools

flutter channel stable
flutter upgrade
flutter config --enable-web
cd into project directory
flutter create .
flutter run -d chrome

# Update dependencies
flutter pub upgrade

Extension

... String

''.bracketsHack('0');
''.gitHack('0');
''.token('0');

Android

iOS

Tools

See Path configuration and keytool cli.

config(windows-android)

  • Powershell: $env:UserProfile
  • Command Prompt: %UserProfile%
# flutter config --android-studio-dir <android-studio-dir>
# flutter config --android-sdk <android-sdk-path>

# Powershell
flutter config --android-studio-dir="$env:ProgramFiles/Android/Android Studio"
# Command Prompt
flutter config --android-studio-dir="%ProgramFiles%/Android/Android Studio"

flutter config --android-sdk="$env:UserProfile/.dev/sdk"
flutter config --android-sdk="%UserProfile%/.dev/sdk"
flutter config --android-sdk="$ANDROID_SDK"