Flutter demo project based on Enel Energia App.
use flutter 2.2.1
channel stable and Dart 2.13.1
.
flutter pub get
flutter run
- viewModel, Repository, with
Stacked
package that has: View - ViewModel - Services- A complete description here: https://pub.dev/packages/stacked
use 'flutter run --flavor dev' or 'stg' or 'prod'
- install Mockoon (available here: https://mockoon.com/)
- go to
lib/mocks/enel-mock.json
and import this json file in mockoon and run it (you can access to localhost:3000/) - run with
flutter run -t lib/main_dev.dart
in order,
flutter clean
flutter build ios --release --flavor prod -t lib/main_prod.dart
- Open Xcode and create Archive
in case of error Flutter.framework or Pod install try to:
Delete the Flutter.framework folder , Podfile.lock file and then run flutter clean.
flutter pub get
rm -rf ios/Podfile.lock
rm -rf ios/Pods
flutter clean
flutter run