A new Flutter project.
###Setup Guide
- install flutter-sdk (https://flutter.dev/docs/get-started/install)
- install dart-sdk (https://dart.dev/get-dart)
- install android-studio (https://developer.android.com/studio)
- update dependencies
flutter pub get
- add a virtual device in Android Studio > Settings > ADV Manager, start the virtual device
- IntelliJ: choose 'sdk gphone x86(mobile)' and run
- VS Code: search for "Flutter run additional args" in user settings
flutter run --no-sound-null-safety
- go to 'first_time_login.dart', find the "// DUMMY USER BUTTON", uncomment it, enter user name followed the structure 'RNxxxx', and click 'Create User'.
- a user will be given a default password = "password", you can actually login with this password.
- during the "first time login" page, the new password enter will be updated after user login with the default "password".
- https://crello.com/ to generate icon
- place the new icon as assets/icon/icon.png
- run below command to update icon file
flutter pub run flutter_launcher_icons:main
- build apk, run
flutter build apk
Login page
- username : [email protected]
- password : lydiaTest
[email protected] toitoi
Device Preview
- when creating the UI, please use device preview to check on each phone size to make sure the designs work well
- by using device preview, change kReleaseMode from false to true in the main.dart and restart the emulator
Chatbot
- clone this repository into your local devices: https://github.com/lydia0423/TB_e_health_chatbot
- install python
- install some python packages to make sure you able to run the app: pip install flask gunicorn / pip3 install flask gunicorn
- create an account in Heroku and share the account to me in order to run the services