Rody Davis

Flutter Cheat Sheet — Terminal

Table of Contents

Run Flutter web with SKIA

flutter run -d web --release --dart-define=FLUTTER_WEB_USE_SKIA=true
flutter run -d chrome --release --dart-define=FLUTTER_WEB_USE_EXPERIMENTAL_CANVAS_TEXT=true
flutter build web && rm -rf ./docs && mkdir ./docs && cp -a ./build/web/. ./docs/
cd ios && pod deintegrate && pod cache clean —all && pod install && cd ..

Sometimes with firebase you need to run: pod update Firebase

flutter create -t plugin . && flutter create -i swift -a kotlin --androidx example
flutter packages pub run build_runner watch  -—delete-conflicting-outputs
flutter packages pub run build_runner build  -—delete-conflicting-outputs
flutter run —bug-report
flutter test --coverage && genhtml -o coverage coverage/
flutter pub pub cache repair
export 'unsupported.dart'

if (dart.library.html) 'web.dart'

if ( 'mobile.dart';
killall -9 dart