- Usefull VSCode and Flutter CLI operations
Command-Shift-P > Dart: Open DevTools Network Page
Command-Shift-P > Dart: Restart Analysis Server
echo $FLUTTER_HOME/bin/cache/artifacts
ll $FLUTTER_HOME/bin/cache/artifacts
rm -rf $FLUTTER_HOME/bin/cache/artifacts
flutter doctor -v
which flutter
flutter clean
flutter pub get
flutter run
flutter test -r expanded
flutter test -r expanded test/features/game/letter.widget_test.dart
flutter test integration_test/app_test.dart
flutter test integration_test
Steps to see test coverage of the project:
# Generate code coverage (will be located at 'coverage/lcov.info')
flutter test --coverage
# Generate html for test coverage
# You will need to have lcov installed (`sudo apt install lcov`, `brew install lcov`)
genhtml coverage/lcov.info -o coverage/html
# Open the html that's generated
open coverage/html/index.html
If you want to see test coverage in vscode, take a look at following extensions that can help you out:
- Flutter Coverage : Calculates test coverage for flutter
- Coverage Gutters : Shows you covered and uncovered lines
emulator -list-avds
emulator -avd Pixel_5_API_29 -no-audio -no-window
adb kill-server
adb emu kill
If that's not enough, from Android Studio on the AVD panel, go to the down arrow and click on the "Show on Disk". You will get the list of all files, then remove the files "*.lock"
flutter pub run build_runner build
flutter pub run build_runner build --delete-conflicting-outputs
flutter packages pub run build_runner build
open -a Simulator
xcrun simctl list
flutter devices
flutter run -d "iPhone 13"
flutter run -d "SM A505W"