Training web/mobile app.
SDK-version v2.8.1
MacOS: https://flutter.dev/docs/get-started/install/macos
Windows: https://flutter.dev/docs/get-started/install/windows
version 2.15.1
- Use
flutter pub upgradebasicallyflutter pub getcan't get newest library because of pubspec.lock
- Flutter
- Dart
- Bracket Pair Colorizer
- Install Homebrew
- Install Ruby version manager which can handle .ruby-version e.g. rbenv
- Install Ruby by Ruby version manager
- Install Bundler
gem install bundler bundle install --path vendor/bundlecd ios,bundle exec fastlane match development- Passphrase: (insert passphrase)
- If you encountered an error,
bundle exec fastlane match nuke developmentmay resolve it.
flutter pub run build_runner buildflutter build ios --no-codesign --simulator- If you want to run the app on a device, run
flutter build ios --no-codesign
- If you want to run the app on a device, run
open ios/Runner.xcworkspaceand run the app- Alternatively,
open -a Simulatorandflutter run
- Alternatively,
- Run
flutter build apk --releasein the project console to build an apk file. - Upload the apk to google play, or Firebase app distribution depending on the need.
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.
Typically, if there is a build error of some kind, run flutter clean then flutter pub get.
To generate the chopper and freeze files, run flutter pub run build_runner build --delete-conflicting-outputs in the terminal.