Flutter Cheat Sheet — Terminal

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/lcov.info
flutter pub pub cache repair
export 'unsupported.dart'

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

if (dart.library.io) 'mobile.dart';
killall -9 dart


Since you've made it this far, sharing this article on your favorite social media network would be highly appreciated 💖! For feedback, please ping me on Twitter.