small app for optimism and positivity learning
- Ask for scenario from 3 classes of seriousness and from one life area.
- Think of N bad consequences resulting from the scenario
- Think of N+1 good consequences resulting from scenario
App will utilize spaced repetition to train positive outlook on life more efficiently =)
app runs on dotenv file, generating internal Env class for usage. So before running app with flutter run
do:
- make sure there is a
.env
in the root of the project
AUTH="SOME_TOKEN"
BASE_URL="SOME_URL"
- to generate all needed data classes, run following commands:
flutter pub add build_runner
(you can try using--dev
flag, but there is an ongoing bug)flutter pub add envied_generator
dart run build_runner clean
dart run build_runner build --delete-conflicting-outputs
It should create a file lib/env/env.g.dart
-
run app in debug mode:
flutter run
-
for building released package see flutter release