├── linux
├── .gitignore
├── main.cc
├── my_application.h
├── flutter
│ └── CMakeLists.txt
└── my_application.cc
├── ios
├── Flutter
│ ├── Debug.xcconfig
│ ├── Release.xcconfig
│ └── AppFrameworkInfo.plist
├── Runner
│ ├── Runner-Bridging-Header.h
│ ├── Assets.xcassets
│ │ ├── LaunchImage.imageset
│ │ │ ├── LaunchImage.png
│ │ │ ├── LaunchImage@2x.png
│ │ │ ├── LaunchImage@3x.png
│ │ │ ├── README.md
│ │ │ └── Contents.json
│ │ └── AppIcon.appiconset
│ │ │ ├── Icon-App-20x20@1x.png
│ │ │ ├── Icon-App-20x20@2x.png
│ │ │ ├── Icon-App-20x20@3x.png
│ │ │ ├── Icon-App-29x29@1x.png
│ │ │ ├── Icon-App-29x29@2x.png
│ │ │ ├── Icon-App-29x29@3x.png
│ │ │ ├── Icon-App-40x40@1x.png
│ │ │ ├── Icon-App-40x40@2x.png
│ │ │ ├── Icon-App-40x40@3x.png
│ │ │ ├── Icon-App-60x60@2x.png
│ │ │ ├── Icon-App-60x60@3x.png
│ │ │ ├── Icon-App-76x76@1x.png
│ │ │ ├── Icon-App-76x76@2x.png
│ │ │ ├── Icon-App-1024x1024@1x.png
│ │ │ ├── Icon-App-83.5x83.5@2x.png
│ │ │ └── Contents.json
│ ├── AppDelegate.swift
│ ├── Base.lproj
│ │ ├── Main.storyboard
│ │ └── LaunchScreen.storyboard
│ └── Info.plist
├── Runner.xcodeproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ ├── WorkspaceSettings.xcsettings
│ │ │ └── IDEWorkspaceChecks.plist
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ ├── WorkspaceSettings.xcsettings
│ │ └── IDEWorkspaceChecks.plist
└── .gitignore
├── web
├── favicon.png
├── icons
│ ├── Icon-192.png
│ ├── Icon-512.png
│ ├── Icon-maskable-192.png
│ └── Icon-maskable-512.png
├── manifest.json
└── index.html
├── macos
├── Flutter
│ ├── Flutter-Debug.xcconfig
│ └── Flutter-Release.xcconfig
├── Runner
│ ├── Configs
│ │ ├── Debug.xcconfig
│ │ ├── Release.xcconfig
│ │ ├── Warnings.xcconfig
│ │ └── AppInfo.xcconfig
│ ├── Assets.xcassets
│ │ └── AppIcon.appiconset
│ │ │ ├── app_icon_128.png
│ │ │ ├── app_icon_16.png
│ │ │ ├── app_icon_256.png
│ │ │ ├── app_icon_32.png
│ │ │ ├── app_icon_512.png
│ │ │ ├── app_icon_64.png
│ │ │ ├── app_icon_1024.png
│ │ │ └── Contents.json
│ ├── AppDelegate.swift
│ ├── Release.entitlements
│ ├── DebugProfile.entitlements
│ ├── MainFlutterWindow.swift
│ └── Info.plist
├── .gitignore
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ └── IDEWorkspaceChecks.plist
└── Runner.xcodeproj
│ ├── project.xcworkspace
│ └── xcshareddata
│ │ └── IDEWorkspaceChecks.plist
│ └── xcshareddata
│ └── xcschemes
│ └── Runner.xcscheme
├── screenshots
├── title.png
├── Screens.png
└── dynamic_theme.gif
├── android
├── gradle.properties
├── app
│ ├── src
│ │ ├── main
│ │ │ ├── res
│ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ ├── ic_launcher.png
│ │ │ │ │ ├── ic_launcher_background.png
│ │ │ │ │ ├── ic_launcher_foreground.png
│ │ │ │ │ └── ic_launcher_monochrome.png
│ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ ├── ic_launcher.png
│ │ │ │ │ ├── ic_launcher_background.png
│ │ │ │ │ ├── ic_launcher_foreground.png
│ │ │ │ │ └── ic_launcher_monochrome.png
│ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ ├── ic_launcher.png
│ │ │ │ │ ├── ic_launcher_background.png
│ │ │ │ │ ├── ic_launcher_foreground.png
│ │ │ │ │ └── ic_launcher_monochrome.png
│ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ ├── ic_launcher.png
│ │ │ │ │ ├── ic_launcher_background.png
│ │ │ │ │ ├── ic_launcher_foreground.png
│ │ │ │ │ └── ic_launcher_monochrome.png
│ │ │ │ ├── mipmap-xxxhdpi
│ │ │ │ │ ├── ic_launcher.png
│ │ │ │ │ ├── ic_launcher_background.png
│ │ │ │ │ ├── ic_launcher_foreground.png
│ │ │ │ │ └── ic_launcher_monochrome.png
│ │ │ │ ├── mipmap-anydpi-v26
│ │ │ │ │ └── ic_launcher.xml
│ │ │ │ ├── drawable
│ │ │ │ │ └── launch_background.xml
│ │ │ │ ├── drawable-v21
│ │ │ │ │ └── launch_background.xml
│ │ │ │ ├── values
│ │ │ │ │ └── styles.xml
│ │ │ │ └── values-night
│ │ │ │ │ └── styles.xml
│ │ │ ├── kotlin
│ │ │ │ └── com
│ │ │ │ │ └── example
│ │ │ │ │ └── odyssey_2
│ │ │ │ │ └── MainActivity.kt
│ │ │ └── AndroidManifest.xml
│ │ ├── debug
│ │ │ └── AndroidManifest.xml
│ │ └── profile
│ │ │ └── AndroidManifest.xml
│ └── build.gradle
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
├── .gitignore
├── settings.gradle
└── build.gradle
├── windows
├── runner
│ ├── resources
│ │ └── app_icon.ico
│ ├── resource.h
│ ├── utils.h
│ ├── runner.exe.manifest
│ ├── flutter_window.h
│ ├── main.cpp
│ ├── CMakeLists.txt
│ ├── utils.cpp
│ ├── flutter_window.cpp
│ ├── Runner.rc
│ └── win32_window.h
├── .gitignore
├── flutter
│ └── CMakeLists.txt
└── CMakeLists.txt
├── l10n.yaml
├── lib
├── src
│ ├── localization
│ │ ├── app_en.arb
│ │ └── string_hardcoded.dart
│ ├── routing
│ │ ├── app_routes.dart
│ │ ├── not_found_screen.dart
│ │ └── app_router.dart
│ ├── constants
│ │ ├── breakpoints.dart
│ │ └── app_sizes.dart
│ ├── features
│ │ ├── mood_records
│ │ │ ├── domain
│ │ │ │ ├── add_mood_record
│ │ │ │ │ └── mood_option.dart
│ │ │ │ └── mood_log
│ │ │ │ │ ├── mood_record.dart
│ │ │ │ │ └── mood_record.g.dart
│ │ │ ├── data
│ │ │ │ ├── add_mood_record
│ │ │ │ │ └── mood_configurations.dart
│ │ │ │ └── mood_log
│ │ │ │ │ └── mood_record_repository.dart
│ │ │ └── presentation
│ │ │ │ ├── mood_log
│ │ │ │ ├── mood_log_screen_controller.dart
│ │ │ │ ├── mood_record_group.dart
│ │ │ │ ├── mood_record_card_options.dart
│ │ │ │ └── mood_log_screen.dart
│ │ │ │ └── add_mood_record
│ │ │ │ ├── mood_option.dart
│ │ │ │ └── add_mood_record_form_controller.dart
│ │ ├── activities
│ │ │ ├── model
│ │ │ │ ├── activity.dart
│ │ │ │ └── activity.g.dart
│ │ │ ├── data
│ │ │ │ ├── activity_repository.dart
│ │ │ │ └── activity_categories.dart
│ │ │ └── presentation
│ │ │ │ ├── activity_group.dart
│ │ │ │ ├── activity_chips.dart
│ │ │ │ └── activity_selector_screen.dart
│ │ └── analytics
│ │ │ └── presentation
│ │ │ ├── analytics_screen.dart
│ │ │ ├── chart_frame_controller.dart
│ │ │ ├── chart_frame_card.dart
│ │ │ └── mood_count_bar_chart.dart
│ ├── utils
│ │ └── widgets
│ │ │ ├── scafforld_with_botto_navigation_bar_item.dart
│ │ │ ├── responsive_centered.dart
│ │ │ └── scafforld_with_botto_navigation_bar.dart
│ └── app.dart
└── main.dart
├── test
└── src
│ └── features
│ └── mood_entries
│ └── presentation
│ └── add_mood_record_form_controller_test.dart
├── assets
└── mood_icons
│ ├── neutral.svg
│ ├── nervous.svg
│ ├── confused.svg
│ ├── angry.svg
│ ├── sad.svg
│ ├── bandaged.svg
│ ├── dizzy.svg
│ ├── crying.svg
│ ├── calm.svg
│ ├── tongue.svg
│ ├── frown.svg
│ ├── glasses.svg
│ ├── fever.svg
│ ├── sweating.svg
│ ├── woozy.svg
│ ├── nauseous.svg
│ ├── loudly_crying.svg
│ ├── smile.svg
│ ├── sleepy.svg
│ ├── expectorate.svg
│ ├── vomitting.svg
│ ├── happy.svg
│ └── coughing.svg
├── README.md
├── pubspec.yaml
├── analysis_options.yaml
└── .gitignore
/linux/.gitignore:
--------------------------------------------------------------------------------
1 | flutter/ephemeral
2 |
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/web/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/web/favicon.png
--------------------------------------------------------------------------------
/macos/Flutter/Flutter-Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "ephemeral/Flutter-Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/macos/Flutter/Flutter-Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "ephemeral/Flutter-Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/screenshots/title.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/screenshots/title.png
--------------------------------------------------------------------------------
/web/icons/Icon-192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/web/icons/Icon-192.png
--------------------------------------------------------------------------------
/web/icons/Icon-512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/web/icons/Icon-512.png
--------------------------------------------------------------------------------
/screenshots/Screens.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/screenshots/Screens.png
--------------------------------------------------------------------------------
/screenshots/dynamic_theme.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/screenshots/dynamic_theme.gif
--------------------------------------------------------------------------------
/web/icons/Icon-maskable-192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/web/icons/Icon-maskable-192.png
--------------------------------------------------------------------------------
/web/icons/Icon-maskable-512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/web/icons/Icon-maskable-512.png
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/macos/Runner/Configs/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "../../Flutter/Flutter-Debug.xcconfig"
2 | #include "Warnings.xcconfig"
3 |
--------------------------------------------------------------------------------
/windows/runner/resources/app_icon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/windows/runner/resources/app_icon.ico
--------------------------------------------------------------------------------
/macos/Runner/Configs/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "../../Flutter/Flutter-Release.xcconfig"
2 | #include "Warnings.xcconfig"
3 |
--------------------------------------------------------------------------------
/l10n.yaml:
--------------------------------------------------------------------------------
1 | arb-dir: lib/src/localization
2 | template-arb-file: app_en.arb
3 | output-localization-file: app_localizations.dart
4 |
--------------------------------------------------------------------------------
/macos/.gitignore:
--------------------------------------------------------------------------------
1 | # Flutter-related
2 | **/Flutter/ephemeral/
3 | **/Pods/
4 |
5 | # Xcode-related
6 | **/dgph
7 | **/xcuserdata/
8 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/lib/src/localization/app_en.arb:
--------------------------------------------------------------------------------
1 | {
2 | "appTitle": "odyssey_2",
3 | "@appTitle": {
4 | "description": "The title of the application"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/lib/src/routing/app_routes.dart:
--------------------------------------------------------------------------------
1 | enum AppRoute {
2 | moodRecords,
3 | analytics,
4 | calendar,
5 | settings,
6 | addRecord,
7 | selectActivities,
8 | }
9 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher_background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher_background.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher_monochrome.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher_monochrome.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher_background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher_background.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher_monochrome.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher_monochrome.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher_background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher_background.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher_monochrome.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher_monochrome.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_background.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_monochrome.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_monochrome.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_background.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_monochrome.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_monochrome.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png
--------------------------------------------------------------------------------
/lib/src/constants/breakpoints.dart:
--------------------------------------------------------------------------------
1 | /// Layout breakpoints used in the app.
2 | class Breakpoint {
3 | static const double desktop = 900;
4 | static const double tablet = 600;
5 | }
6 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jccb15/happio/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/example/odyssey_2/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.odyssey
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/test/src/features/mood_entries/presentation/add_mood_record_form_controller_test.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_test/flutter_test.dart';
2 |
3 | void main() {
4 | test("note updated succes", () {});
5 | }
6 |
--------------------------------------------------------------------------------
/linux/main.cc:
--------------------------------------------------------------------------------
1 | #include "my_application.h"
2 |
3 | int main(int argc, char** argv) {
4 | g_autoptr(MyApplication) app = my_application_new();
5 | return g_application_run(G_APPLICATION(app), argc, argv);
6 | }
7 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/macos/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | zipStoreBase=GRADLE_USER_HOME
4 | zipStorePath=wrapper/dists
5 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
6 |
--------------------------------------------------------------------------------
/lib/src/localization/string_hardcoded.dart:
--------------------------------------------------------------------------------
1 | /// A simple placeholder that can be used to search all the hardcoded strings
2 | /// in the code (useful to identify strings that need to be localized).
3 | extension StringHardcoded on String {
4 | String get hardcoded => this;
5 | }
6 |
--------------------------------------------------------------------------------
/macos/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import Cocoa
2 | import FlutterMacOS
3 |
4 | @NSApplicationMain
5 | class AppDelegate: FlutterAppDelegate {
6 | override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
7 | return true
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/macos/Runner/Release.entitlements:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | com.apple.security.app-sandbox
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
9 | # Remember to never publicly share your keystore.
10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11 | key.properties
12 | **/*.keystore
13 | **/*.jks
14 |
--------------------------------------------------------------------------------
/windows/.gitignore:
--------------------------------------------------------------------------------
1 | flutter/ephemeral/
2 |
3 | # Visual Studio user-specific files.
4 | *.suo
5 | *.user
6 | *.userosscache
7 | *.sln.docstates
8 |
9 | # Visual Studio build-related files.
10 | x64/
11 | x86/
12 |
13 | # Visual Studio cache files
14 | # files ending in .cache can be ignored
15 | *.[Cc]ache
16 | # but keep track of directories ending in .cache
17 | !*.[Cc]ache/
18 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/lib/src/features/mood_records/domain/add_mood_record/mood_option.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class MoodConfiguration {
4 | String label;
5 | String iconPath;
6 | Color color;
7 | int score;
8 |
9 | MoodConfiguration({
10 | required this.label,
11 | required this.iconPath,
12 | required this.color,
13 | required this.score,
14 | });
15 | }
16 |
--------------------------------------------------------------------------------
/macos/Runner/DebugProfile.entitlements:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | com.apple.security.app-sandbox
6 |
7 | com.apple.security.cs.allow-jit
8 |
9 | com.apple.security.network.server
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import UIKit
2 | import Flutter
3 |
4 | @UIApplicationMain
5 | @objc class AppDelegate: FlutterAppDelegate {
6 | override func application(
7 | _ application: UIApplication,
8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
9 | ) -> Bool {
10 | GeneratedPluginRegistrant.register(with: self)
11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/linux/my_application.h:
--------------------------------------------------------------------------------
1 | #ifndef FLUTTER_MY_APPLICATION_H_
2 | #define FLUTTER_MY_APPLICATION_H_
3 |
4 | #include
5 |
6 | G_DECLARE_FINAL_TYPE(MyApplication, my_application, MY, APPLICATION,
7 | GtkApplication)
8 |
9 | /**
10 | * my_application_new:
11 | *
12 | * Creates a new Flutter-based application.
13 | *
14 | * Returns: a new #MyApplication.
15 | */
16 | MyApplication* my_application_new();
17 |
18 | #endif // FLUTTER_MY_APPLICATION_H_
19 |
--------------------------------------------------------------------------------
/macos/Runner/MainFlutterWindow.swift:
--------------------------------------------------------------------------------
1 | import Cocoa
2 | import FlutterMacOS
3 |
4 | class MainFlutterWindow: NSWindow {
5 | override func awakeFromNib() {
6 | let flutterViewController = FlutterViewController.init()
7 | let windowFrame = self.frame
8 | self.contentViewController = flutterViewController
9 | self.setFrame(windowFrame, display: true)
10 |
11 | RegisterGeneratedPlugins(registry: flutterViewController)
12 |
13 | super.awakeFromNib()
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/windows/runner/resource.h:
--------------------------------------------------------------------------------
1 | //{{NO_DEPENDENCIES}}
2 | // Microsoft Visual C++ generated include file.
3 | // Used by Runner.rc
4 | //
5 | #define IDI_APP_ICON 101
6 |
7 | // Next default values for new objects
8 | //
9 | #ifdef APSTUDIO_INVOKED
10 | #ifndef APSTUDIO_READONLY_SYMBOLS
11 | #define _APS_NEXT_RESOURCE_VALUE 102
12 | #define _APS_NEXT_COMMAND_VALUE 40001
13 | #define _APS_NEXT_CONTROL_VALUE 1001
14 | #define _APS_NEXT_SYMED_VALUE 101
15 | #endif
16 | #endif
17 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4 | def properties = new Properties()
5 |
6 | assert localPropertiesFile.exists()
7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
8 |
9 | def flutterSdkPath = properties.getProperty("flutter.sdk")
10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
12 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-v21/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchImage.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchImage@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchImage@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/macos/Runner/Configs/Warnings.xcconfig:
--------------------------------------------------------------------------------
1 | WARNING_CFLAGS = -Wall -Wconditional-uninitialized -Wnullable-to-nonnull-conversion -Wmissing-method-return-type -Woverlength-strings
2 | GCC_WARN_UNDECLARED_SELECTOR = YES
3 | CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES
4 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE
5 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES
6 | CLANG_WARN_PRAGMA_PACK = YES
7 | CLANG_WARN_STRICT_PROTOTYPES = YES
8 | CLANG_WARN_COMMA = YES
9 | GCC_WARN_STRICT_SELECTOR_MATCH = YES
10 | CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES
11 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES
12 | GCC_WARN_SHADOW = YES
13 | CLANG_WARN_UNREACHABLE_CODE = YES
14 |
--------------------------------------------------------------------------------
/lib/src/utils/widgets/scafforld_with_botto_navigation_bar_item.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:odyssey/src/routing/app_routes.dart';
3 |
4 | class ScaffoldWithBottomNavigationBarItem extends NavigationDestination {
5 | const ScaffoldWithBottomNavigationBarItem(
6 | {super.key, required this.route, required Widget icon, required Widget selectedIcon, required String label})
7 | : super(
8 | icon: icon,
9 | selectedIcon: selectedIcon,
10 | label: label,
11 | );
12 | final AppRoute route;
13 |
14 | // String get location =>
15 | // GoRouter.of(context).namedLocation(initialRouteName.name);
16 | }
17 |
--------------------------------------------------------------------------------
/macos/Runner/Configs/AppInfo.xcconfig:
--------------------------------------------------------------------------------
1 | // Application-level settings for the Runner target.
2 | //
3 | // This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the
4 | // future. If not, the values below would default to using the project name when this becomes a
5 | // 'flutter create' template.
6 |
7 | // The application's name. By default this is also the title of the Flutter window.
8 | PRODUCT_NAME = odyssey_2
9 |
10 | // The application's bundle identifier
11 | PRODUCT_BUNDLE_IDENTIFIER = com.example.odyssey2
12 |
13 | // The copyright displayed in application information
14 | PRODUCT_COPYRIGHT = Copyright © 2023 com.example. All rights reserved.
15 |
--------------------------------------------------------------------------------
/lib/src/routing/not_found_screen.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:go_router/go_router.dart';
3 | import 'app_routes.dart';
4 |
5 | class NotFoundScreen extends StatelessWidget {
6 | const NotFoundScreen({Key? key}) : super(key: key);
7 |
8 | @override
9 | Widget build(BuildContext context) {
10 | return Scaffold(
11 | appBar: AppBar(),
12 | body: Center(
13 | child: Column(
14 | children: [
15 | const Text("Not Found"),
16 | ElevatedButton(onPressed: () => context.goNamed(AppRoute.moodRecords.name), child: const Text("Go Home"))
17 | ],
18 | ),
19 | ),
20 | );
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/ios/.gitignore:
--------------------------------------------------------------------------------
1 | **/dgph
2 | *.mode1v3
3 | *.mode2v3
4 | *.moved-aside
5 | *.pbxuser
6 | *.perspectivev3
7 | **/*sync/
8 | .sconsign.dblite
9 | .tags*
10 | **/.vagrant/
11 | **/DerivedData/
12 | Icon?
13 | **/Pods/
14 | **/.symlinks/
15 | profile
16 | xcuserdata
17 | **/.generated/
18 | Flutter/App.framework
19 | Flutter/Flutter.framework
20 | Flutter/Flutter.podspec
21 | Flutter/Generated.xcconfig
22 | Flutter/ephemeral/
23 | Flutter/app.flx
24 | Flutter/app.zip
25 | Flutter/flutter_assets/
26 | Flutter/flutter_export_environment.sh
27 | ServiceDefinitions.json
28 | Runner/GeneratedPluginRegistrant.*
29 |
30 | # Exceptions to above rules.
31 | !default.mode1v3
32 | !default.mode2v3
33 | !default.pbxuser
34 | !default.perspectivev3
35 |
--------------------------------------------------------------------------------
/lib/src/features/activities/model/activity.dart:
--------------------------------------------------------------------------------
1 | import 'package:freezed_annotation/freezed_annotation.dart';
2 | import 'package:hive/hive.dart';
3 |
4 | part "activity.g.dart";
5 | part "activity.freezed.dart";
6 |
7 | @freezed
8 | abstract class Activity with _$Activity {
9 | @HiveType(typeId: 1)
10 | const factory Activity({
11 | @HiveField(0) required String activityName,
12 | @HiveField(1) required int iconCode,
13 | }) = _Activity;
14 |
15 | // final String activityName;
16 | // final int iconCode;
17 | }
18 |
19 | class ActivityCategory {
20 | ActivityCategory({required this.categoryName, required this.activityList});
21 |
22 | final String categoryName;
23 | final List activityList;
24 | }
25 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.7.10'
3 | repositories {
4 | google()
5 | mavenCentral()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:4.1.0'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | }
12 | }
13 |
14 | allprojects {
15 | repositories {
16 | google()
17 | mavenCentral()
18 | }
19 | }
20 |
21 | rootProject.buildDir = '../build'
22 | subprojects {
23 | project.buildDir = "${rootProject.buildDir}/${project.name}"
24 | }
25 | subprojects {
26 | project.evaluationDependsOn(':app')
27 | }
28 |
29 | tasks.register("clean", Delete) {
30 | delete rootProject.buildDir
31 | }
32 |
--------------------------------------------------------------------------------
/windows/runner/utils.h:
--------------------------------------------------------------------------------
1 | #ifndef RUNNER_UTILS_H_
2 | #define RUNNER_UTILS_H_
3 |
4 | #include
5 | #include
6 |
7 | // Creates a console for the process, and redirects stdout and stderr to
8 | // it for both the runner and the Flutter library.
9 | void CreateAndAttachConsole();
10 |
11 | // Takes a null-terminated wchar_t* encoded in UTF-16 and returns a std::string
12 | // encoded in UTF-8. Returns an empty std::string on failure.
13 | std::string Utf8FromUtf16(const wchar_t* utf16_string);
14 |
15 | // Gets the command line arguments passed in as a std::vector,
16 | // encoded in UTF-8. Returns an empty std::vector on failure.
17 | std::vector GetCommandLineArguments();
18 |
19 | #endif // RUNNER_UTILS_H_
20 |
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 11.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/lib/src/features/activities/data/activity_repository.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_riverpod/flutter_riverpod.dart';
2 | import 'package:hive/hive.dart';
3 | import 'package:odyssey/src/features/activities/data/activity_categories.dart';
4 | import 'package:odyssey/src/features/activities/model/activity.dart';
5 |
6 | class ActivityRepository {
7 | ActivityRepository(this._activityCategoriesbox);
8 | final Box _activityCategoriesbox;
9 |
10 | Box get box => _activityCategoriesbox;
11 |
12 | List getCategories() {
13 | return kActivityCategories;
14 | }
15 | }
16 |
17 | final activityRepositoryProvider = FutureProvider(
18 | (ref) async {
19 | final box = await Hive.openBox("activity_categories");
20 |
21 | ref.onDispose(() => box.close());
22 |
23 | return ActivityRepository(box);
24 | },
25 | );
26 |
--------------------------------------------------------------------------------
/assets/mood_icons/neutral.svg:
--------------------------------------------------------------------------------
1 |
7 |
--------------------------------------------------------------------------------
/lib/src/features/mood_records/domain/mood_log/mood_record.dart:
--------------------------------------------------------------------------------
1 | import 'package:freezed_annotation/freezed_annotation.dart';
2 | import 'package:hive/hive.dart';
3 | import 'package:odyssey/src/features/activities/model/activity.dart';
4 |
5 | part "mood_record.g.dart";
6 | part "mood_record.freezed.dart";
7 |
8 | @freezed
9 | abstract class MoodRecord with _$MoodRecord {
10 | @HiveType(typeId: 0)
11 | const factory MoodRecord({
12 | // @HiveField(0) required int? id,
13 | @HiveField(0) required String label,
14 | @HiveField(1) required int score,
15 | @HiveField(2) required String iconPath,
16 | @HiveField(3) required int color,
17 | @HiveField(4) required DateTime date,
18 | @HiveField(5) String? note,
19 | @HiveField(6) @Default([]) List activities,
20 | }) = _MoodRecord;
21 |
22 | // factory MoodRecord.fromJson(Map json) => _$MoodRecordFromJson(json);
23 | }
24 |
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_riverpod/flutter_riverpod.dart';
3 | import 'package:hive_flutter/hive_flutter.dart';
4 | import 'package:odyssey/src/features/activities/model/activity.dart';
5 | import 'package:odyssey/src/features/mood_records/data/mood_log/mood_record_repository.dart';
6 | import 'package:odyssey/src/features/mood_records/domain/mood_log/mood_record.dart';
7 |
8 | import 'src/app.dart';
9 |
10 | void main() async {
11 | WidgetsFlutterBinding.ensureInitialized();
12 |
13 | await Hive.initFlutter();
14 | Hive.registerAdapter(MoodRecordAdapter());
15 | Hive.registerAdapter(ActivityAdapter());
16 |
17 | final moodRecordsRepository = await MoodRecordRepository.createRepository();
18 |
19 | runApp(
20 | ProviderScope(
21 | overrides: [moodRecordRepositoryProvider.overrideWithValue(moodRecordsRepository)],
22 | child: const MyApp(),
23 | ),
24 | );
25 | }
26 |
--------------------------------------------------------------------------------
/lib/src/features/mood_records/data/add_mood_record/mood_configurations.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:odyssey/gen/assets.gen.dart';
3 | import 'package:odyssey/src/features/mood_records/domain/add_mood_record/mood_option.dart';
4 |
5 | //TODO: provide these list with a provider, grouped by score to allow different mood options
6 | final List kMoodConfigurations = [
7 | MoodConfiguration(iconPath: Assets.moodIcons.happy, color: Colors.green, label: "Great", score: 5),
8 | MoodConfiguration(iconPath: Assets.moodIcons.smile, color: Colors.cyan, label: "Positive", score: 4),
9 | MoodConfiguration(iconPath: Assets.moodIcons.neutral, color: Colors.blue, label: "Alright", score: 3),
10 | MoodConfiguration(iconPath: Assets.moodIcons.confused, color: Colors.orange, label: "Bad", score: 2),
11 | MoodConfiguration(iconPath: Assets.moodIcons.crying, color: Colors.red, label: "Awful", score: 1),
12 | ];
13 |
--------------------------------------------------------------------------------
/windows/runner/runner.exe.manifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PerMonitorV2
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/web/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "odyssey_2",
3 | "short_name": "odyssey_2",
4 | "start_url": ".",
5 | "display": "standalone",
6 | "background_color": "#0175C2",
7 | "theme_color": "#0175C2",
8 | "description": "A new Flutter project.",
9 | "orientation": "portrait-primary",
10 | "prefer_related_applications": false,
11 | "icons": [
12 | {
13 | "src": "icons/Icon-192.png",
14 | "sizes": "192x192",
15 | "type": "image/png"
16 | },
17 | {
18 | "src": "icons/Icon-512.png",
19 | "sizes": "512x512",
20 | "type": "image/png"
21 | },
22 | {
23 | "src": "icons/Icon-maskable-192.png",
24 | "sizes": "192x192",
25 | "type": "image/png",
26 | "purpose": "maskable"
27 | },
28 | {
29 | "src": "icons/Icon-maskable-512.png",
30 | "sizes": "512x512",
31 | "type": "image/png",
32 | "purpose": "maskable"
33 | }
34 | ]
35 | }
36 |
--------------------------------------------------------------------------------
/windows/runner/flutter_window.h:
--------------------------------------------------------------------------------
1 | #ifndef RUNNER_FLUTTER_WINDOW_H_
2 | #define RUNNER_FLUTTER_WINDOW_H_
3 |
4 | #include
5 | #include
6 |
7 | #include
8 |
9 | #include "win32_window.h"
10 |
11 | // A window that does nothing but host a Flutter view.
12 | class FlutterWindow : public Win32Window {
13 | public:
14 | // Creates a new FlutterWindow hosting a Flutter view running |project|.
15 | explicit FlutterWindow(const flutter::DartProject& project);
16 | virtual ~FlutterWindow();
17 |
18 | protected:
19 | // Win32Window:
20 | bool OnCreate() override;
21 | void OnDestroy() override;
22 | LRESULT MessageHandler(HWND window, UINT const message, WPARAM const wparam,
23 | LPARAM const lparam) noexcept override;
24 |
25 | private:
26 | // The project to run.
27 | flutter::DartProject project_;
28 |
29 | // The Flutter instance hosted by this window.
30 | std::unique_ptr flutter_controller_;
31 | };
32 |
33 | #endif // RUNNER_FLUTTER_WINDOW_H_
34 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Happio - Mood Tracker
3 |
4 |
5 |
6 | A simple **Mood Tracker** application designed to monitor and analyze your daily mood fluctuations with a few taps.
7 |
8 | Built with the Flutter Framework utilizing [Hive](https://github.com/hivedb/hive/tree/master/hive) for persistent storage, [Riverpod](https://riverpod.dev) for state management and [GoRouter](https://pub.dev/packages/go_router) for routing.
9 |
10 |
11 | ## Features
12 |
13 | - Log your daily mood
14 | - Multiple mood entries in a day
15 | - Track activities that influence your mood
16 | - Graph your mood for better insights
17 | - Material You dynamic theming
18 | ## Screenshots
19 |
20 |
21 |
22 | ##### Dynamic Theming
23 |
24 |
25 |
26 | ## Roadmap
27 |
28 | - Customizable moods and activities
29 | - Calendar view
30 | - Activity counter
31 | - Streaks
32 | - Image attachment
33 | - Daily quotes
34 |
35 | ## Author
36 | [José Castelo](https://github.com/jccb15)
37 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values-night/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/lib/src/features/analytics/presentation/analytics_screen.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:odyssey/src/features/analytics/presentation/chart_frame_card.dart';
3 | import 'package:odyssey/src/utils/widgets/responsive_centered.dart';
4 |
5 | class AnalyticsScreen extends StatelessWidget {
6 | const AnalyticsScreen({super.key});
7 |
8 | @override
9 | Widget build(BuildContext context) {
10 | return Scaffold(
11 | appBar: AppBar(
12 | title: const Text("Insights"),
13 | ),
14 | body: ResponsiveCenter(
15 | child: Column(
16 | children: [
17 | Expanded(
18 | child: ListView(
19 | padding: const EdgeInsets.fromLTRB(12, 12, 12, kFloatingActionButtonMargin * 2 + 48),
20 | children: const [
21 | ChartFrame(chartType: ChartType.moodCount, title: "Mood Count"),
22 | ChartFrame(chartType: ChartType.moodVariation, title: "Mood Fluctuation"),
23 | ],
24 | ),
25 | )
26 | ],
27 | ),
28 | ),
29 | );
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: odyssey
2 | description: A simple mood tracker application.
3 |
4 | # Prevent accidental publishing to pub.dev.
5 | publish_to: 'none'
6 |
7 | version: 1.0.0+1
8 |
9 | environment:
10 | sdk: '>=3.0.0 <4.0.0'
11 |
12 | dependencies:
13 |
14 | collection: ^1.17.0
15 | dynamic_color: ^1.6.3
16 | fl_chart: ^0.62.0
17 | flutter:
18 | sdk: flutter
19 |
20 | flutter_localizations:
21 | sdk: flutter
22 | flutter_riverpod: ^2.3.5
23 | flutter_svg: ^2.0.5
24 | freezed_annotation: ^2.2.0
25 | go_router: ^7.1.1
26 | hive: ^2.2.3
27 | hive_flutter: ^1.1.0
28 | intl: ^0.18.0
29 | timeline_tile: ^2.0.0
30 |
31 |
32 |
33 | dev_dependencies:
34 | flutter_test:
35 | sdk: flutter
36 | freezed: ^2.3.2
37 | build_runner: ^2.3.3
38 | hive_generator: ^2.0.0
39 | flutter_lints: ^2.0.0
40 | json_serializable: ^6.6.1
41 | flutter_gen_runner: ^5.3.0
42 |
43 | flutter:
44 | uses-material-design: true
45 |
46 | # Enable generation of localized Strings from arb files.
47 | generate: true
48 |
49 | assets:
50 | # Add assets from the images directory to the application.
51 | - assets/mood_icons/
52 |
--------------------------------------------------------------------------------
/assets/mood_icons/nervous.svg:
--------------------------------------------------------------------------------
1 |
6 |
--------------------------------------------------------------------------------
/macos/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIconFile
10 |
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | $(PRODUCT_NAME)
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | $(FLUTTER_BUILD_NAME)
21 | CFBundleVersion
22 | $(FLUTTER_BUILD_NUMBER)
23 | LSMinimumSystemVersion
24 | $(MACOSX_DEPLOYMENT_TARGET)
25 | NSHumanReadableCopyright
26 | $(PRODUCT_COPYRIGHT)
27 | NSMainNibFile
28 | MainMenu
29 | NSPrincipalClass
30 | NSApplication
31 |
32 |
33 |
--------------------------------------------------------------------------------
/lib/src/features/activities/presentation/activity_group.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:odyssey/src/features/activities/model/activity.dart';
3 | import 'package:odyssey/src/features/activities/presentation/activity_chips.dart';
4 |
5 | class ActivityGroup extends StatelessWidget {
6 | const ActivityGroup({super.key, required this.activityCategory, required this.selectedActivities, required this.onSelectedActivity});
7 |
8 | final ActivityCategory activityCategory;
9 | final List selectedActivities;
10 | final Function(Activity) onSelectedActivity;
11 |
12 | @override
13 | Widget build(BuildContext context) {
14 | return Card(
15 | clipBehavior: Clip.antiAlias,
16 | child: ExpansionTile(
17 | childrenPadding: const EdgeInsets.all(12),
18 | initiallyExpanded: true,
19 | title: Text(activityCategory.categoryName),
20 | shape: const RoundedRectangleBorder(),
21 | children: [
22 | ActivityChips(
23 | activityCategory.activityList,
24 | onActivitySelected: onSelectedActivity,
25 | selectedActivities: selectedActivities,
26 | ),
27 | ],
28 | ),
29 | );
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/assets/mood_icons/confused.svg:
--------------------------------------------------------------------------------
1 |
6 |
--------------------------------------------------------------------------------
/lib/src/features/activities/model/activity.g.dart:
--------------------------------------------------------------------------------
1 | // GENERATED CODE - DO NOT MODIFY BY HAND
2 |
3 | part of 'activity.dart';
4 |
5 | // **************************************************************************
6 | // TypeAdapterGenerator
7 | // **************************************************************************
8 |
9 | class ActivityAdapter extends TypeAdapter<_$_Activity> {
10 | @override
11 | final int typeId = 1;
12 |
13 | @override
14 | _$_Activity read(BinaryReader reader) {
15 | final numOfFields = reader.readByte();
16 | final fields = {
17 | for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
18 | };
19 | return _$_Activity(
20 | activityName: fields[0] as String,
21 | iconCode: fields[1] as int,
22 | );
23 | }
24 |
25 | @override
26 | void write(BinaryWriter writer, _$_Activity obj) {
27 | writer
28 | ..writeByte(2)
29 | ..writeByte(0)
30 | ..write(obj.activityName)
31 | ..writeByte(1)
32 | ..write(obj.iconCode);
33 | }
34 |
35 | @override
36 | int get hashCode => typeId.hashCode;
37 |
38 | @override
39 | bool operator ==(Object other) =>
40 | identical(this, other) || other is ActivityAdapter && runtimeType == other.runtimeType && typeId == other.typeId;
41 | }
42 |
--------------------------------------------------------------------------------
/lib/src/utils/widgets/responsive_centered.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:odyssey/src/constants/breakpoints.dart';
3 |
4 | /// Reusable widget for showing a child with a maximum content width constraint.
5 | /// If available width is larger than the maximum width, the child will be
6 | /// centered.
7 | /// If available width is smaller than the maximum width, the child use all the
8 | /// available width.
9 | class ResponsiveCenter extends StatelessWidget {
10 | const ResponsiveCenter({
11 | super.key,
12 | this.maxContentWidth = Breakpoint.desktop,
13 | this.padding = EdgeInsets.zero,
14 | required this.child,
15 | });
16 | final double maxContentWidth;
17 | final EdgeInsetsGeometry padding;
18 | final Widget child;
19 |
20 | @override
21 | Widget build(BuildContext context) {
22 | // Use Center as it has *unconstrained* width (loose constraints)
23 | return Center(
24 | // together with SizedBox to specify the max width (tight constraints)
25 | // See this thread for more info:
26 | // https://twitter.com/biz84/status/1445400059894542337
27 | child: SizedBox(
28 | width: maxContentWidth,
29 | child: Padding(
30 | padding: padding,
31 | child: child,
32 | ),
33 | ),
34 | );
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/lib/src/constants/app_sizes.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | /// Constant sizes to be used in the app (paddings, gaps, rounded corners etc.)
4 | class Sizes {
5 | static const p4 = 4.0;
6 | static const p8 = 8.0;
7 | static const p12 = 12.0;
8 | static const p16 = 16.0;
9 | static const p20 = 20.0;
10 | static const p24 = 24.0;
11 | static const p32 = 32.0;
12 | static const p48 = 48.0;
13 | static const p64 = 64.0;
14 | }
15 |
16 | /// Constant gap widths
17 | const gapW4 = SizedBox(width: Sizes.p4);
18 | const gapW8 = SizedBox(width: Sizes.p8);
19 | const gapW12 = SizedBox(width: Sizes.p12);
20 | const gapW16 = SizedBox(width: Sizes.p16);
21 | const gapW20 = SizedBox(width: Sizes.p20);
22 | const gapW24 = SizedBox(width: Sizes.p24);
23 | const gapW32 = SizedBox(width: Sizes.p32);
24 | const gapW48 = SizedBox(width: Sizes.p48);
25 | const gapW64 = SizedBox(width: Sizes.p64);
26 |
27 | /// Constant gap heights
28 | const gapH4 = SizedBox(height: Sizes.p4);
29 | const gapH8 = SizedBox(height: Sizes.p8);
30 | const gapH12 = SizedBox(height: Sizes.p12);
31 | const gapH16 = SizedBox(height: Sizes.p16);
32 | const gapH20 = SizedBox(height: Sizes.p20);
33 | const gapH24 = SizedBox(height: Sizes.p24);
34 | const gapH32 = SizedBox(height: Sizes.p32);
35 | const gapH48 = SizedBox(height: Sizes.p48);
36 | const gapH64 = SizedBox(height: Sizes.p64);
37 |
--------------------------------------------------------------------------------
/lib/src/features/mood_records/presentation/mood_log/mood_log_screen_controller.dart:
--------------------------------------------------------------------------------
1 | // import 'dart:async';
2 | import 'dart:collection';
3 |
4 | import 'package:collection/collection.dart';
5 |
6 | import 'package:flutter_riverpod/flutter_riverpod.dart';
7 | import 'package:intl/intl.dart';
8 | import 'package:odyssey/src/features/mood_records/data/mood_log/mood_record_repository.dart';
9 | import 'package:odyssey/src/features/mood_records/domain/mood_log/mood_record.dart';
10 |
11 | class MoodRecordsScreenController extends Notifier {
12 | late final MoodRecordRepository _repository;
13 |
14 | @override
15 | MoodRecordRepository build() {
16 | _repository = ref.watch(moodRecordRepositoryProvider);
17 | return _repository;
18 | }
19 |
20 | MoodRecordRepository get repository => _repository;
21 |
22 | SplayTreeMap>> groupMoodRecordsByDay(Map boxMap) {
23 | // final records = _repository.box.toMap().entries;
24 | final groups = groupBy(boxMap.entries, (record) => DateFormat("yyyy-MM-dd").format(record.value.date));
25 | return SplayTreeMap.from(
26 | groups,
27 | (key1, key2) => key2.compareTo(key1),
28 | );
29 | }
30 | }
31 |
32 | final moodRecordScreenControllerProvider =
33 | NotifierProvider(MoodRecordsScreenController.new);
34 |
--------------------------------------------------------------------------------
/windows/runner/main.cpp:
--------------------------------------------------------------------------------
1 | #include
2 | #include
3 | #include
4 |
5 | #include "flutter_window.h"
6 | #include "utils.h"
7 |
8 | int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,
9 | _In_ wchar_t *command_line, _In_ int show_command) {
10 | // Attach to console when present (e.g., 'flutter run') or create a
11 | // new console when running with a debugger.
12 | if (!::AttachConsole(ATTACH_PARENT_PROCESS) && ::IsDebuggerPresent()) {
13 | CreateAndAttachConsole();
14 | }
15 |
16 | // Initialize COM, so that it is available for use in the library and/or
17 | // plugins.
18 | ::CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED);
19 |
20 | flutter::DartProject project(L"data");
21 |
22 | std::vector command_line_arguments =
23 | GetCommandLineArguments();
24 |
25 | project.set_dart_entrypoint_arguments(std::move(command_line_arguments));
26 |
27 | FlutterWindow window(project);
28 | Win32Window::Point origin(10, 10);
29 | Win32Window::Size size(1280, 720);
30 | if (!window.Create(L"odyssey_2", origin, size)) {
31 | return EXIT_FAILURE;
32 | }
33 | window.SetQuitOnClose(true);
34 |
35 | ::MSG msg;
36 | while (::GetMessage(&msg, nullptr, 0, 0)) {
37 | ::TranslateMessage(&msg);
38 | ::DispatchMessage(&msg);
39 | }
40 |
41 | ::CoUninitialize();
42 | return EXIT_SUCCESS;
43 | }
44 |
--------------------------------------------------------------------------------
/lib/src/features/mood_records/presentation/mood_log/mood_record_group.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:intl/intl.dart';
3 | import 'package:odyssey/src/features/mood_records/domain/mood_log/mood_record.dart';
4 | import 'package:odyssey/src/features/mood_records/presentation/mood_log/mood_record_card.dart';
5 |
6 | class MoodRecordGroup extends StatelessWidget {
7 | const MoodRecordGroup({super.key, required this.groupDate, required this.moodList});
8 | final DateTime groupDate;
9 | final List> moodList;
10 |
11 | @override
12 | Widget build(BuildContext context) {
13 | return Card(
14 | child: Column(
15 | crossAxisAlignment: CrossAxisAlignment.start,
16 | children: [
17 | if (moodList.length > 1)
18 | Container(
19 | margin: const EdgeInsets.only(top: 15, left: 15),
20 | child: Text(
21 | DateFormat('EEEE, MMMM d').format(groupDate),
22 | style: Theme.of(context).textTheme.titleMedium,
23 | ),
24 | ),
25 | ...moodList.map(
26 | (record) => MoodRecordCard(
27 | recordEntry: record,
28 | isFirst: record == moodList.first,
29 | isLast: record == moodList.last,
30 | showDate: moodList.length == 1,
31 | ),
32 | )
33 | ],
34 | ),
35 | );
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/assets/mood_icons/angry.svg:
--------------------------------------------------------------------------------
1 |
7 |
--------------------------------------------------------------------------------
/assets/mood_icons/sad.svg:
--------------------------------------------------------------------------------
1 |
7 |
--------------------------------------------------------------------------------
/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | # This file configures the analyzer, which statically analyzes Dart code to
2 | # check for errors, warnings, and lints.
3 | #
4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6 | # invoked from the command line by running `flutter analyze`.
7 |
8 | # The following line activates a set of recommended lints for Flutter apps,
9 | # packages, and plugins designed to encourage good coding practices.
10 | include: package:flutter_lints/flutter.yaml
11 |
12 | linter:
13 | # The lint rules applied to this project can be customized in the
14 | # section below to disable rules from the `package:flutter_lints/flutter.yaml`
15 | # included above or to enable additional rules. A list of all available lints
16 | # and their documentation is published at
17 | # https://dart-lang.github.io/linter/lints/index.html.
18 | #
19 | # Instead of disabling a lint rule for the entire project in the
20 | # section below, it can also be suppressed for a single line of code
21 | # or a specific dart file by using the `// ignore: name_of_lint` and
22 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file
23 | # producing the lint.
24 | rules:
25 | # avoid_print: false # Uncomment to disable the `avoid_print` rule
26 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
27 |
28 | # Additional information about this file can be found at
29 | # https://dart.dev/guides/language/analysis-options
30 |
--------------------------------------------------------------------------------
/assets/mood_icons/bandaged.svg:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "16x16",
5 | "idiom" : "mac",
6 | "filename" : "app_icon_16.png",
7 | "scale" : "1x"
8 | },
9 | {
10 | "size" : "16x16",
11 | "idiom" : "mac",
12 | "filename" : "app_icon_32.png",
13 | "scale" : "2x"
14 | },
15 | {
16 | "size" : "32x32",
17 | "idiom" : "mac",
18 | "filename" : "app_icon_32.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "32x32",
23 | "idiom" : "mac",
24 | "filename" : "app_icon_64.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "128x128",
29 | "idiom" : "mac",
30 | "filename" : "app_icon_128.png",
31 | "scale" : "1x"
32 | },
33 | {
34 | "size" : "128x128",
35 | "idiom" : "mac",
36 | "filename" : "app_icon_256.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "256x256",
41 | "idiom" : "mac",
42 | "filename" : "app_icon_256.png",
43 | "scale" : "1x"
44 | },
45 | {
46 | "size" : "256x256",
47 | "idiom" : "mac",
48 | "filename" : "app_icon_512.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "512x512",
53 | "idiom" : "mac",
54 | "filename" : "app_icon_512.png",
55 | "scale" : "1x"
56 | },
57 | {
58 | "size" : "512x512",
59 | "idiom" : "mac",
60 | "filename" : "app_icon_1024.png",
61 | "scale" : "2x"
62 | }
63 | ],
64 | "info" : {
65 | "version" : 1,
66 | "author" : "xcode"
67 | }
68 | }
69 |
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/lib/src/features/mood_records/presentation/add_mood_record/mood_option.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_svg/flutter_svg.dart';
3 | import 'package:odyssey/src/constants/app_sizes.dart';
4 | import 'package:odyssey/src/features/mood_records/domain/add_mood_record/mood_option.dart';
5 |
6 | class MoodOption extends StatelessWidget {
7 | const MoodOption({
8 | super.key,
9 | required this.moodConfiguration,
10 | required this.isSelected,
11 | // required this.onTap,
12 | });
13 |
14 | final MoodConfiguration moodConfiguration;
15 | final bool isSelected;
16 | // final Function onTap;
17 |
18 | @override
19 | Widget build(BuildContext context) {
20 | return SizedBox(
21 | width: 80,
22 | child: Card(
23 | elevation: isSelected ? 4 : 0,
24 | color: isSelected ? moodConfiguration.color : Theme.of(context).colorScheme.surfaceVariant,
25 | child: Padding(
26 | padding: const EdgeInsets.all(4),
27 | child: Column(
28 | children: [
29 | SvgPicture.asset(
30 | moodConfiguration.iconPath,
31 | color: isSelected ? Theme.of(context).colorScheme.surface : moodConfiguration.color,
32 | height: Sizes.p64,
33 | width: Sizes.p64,
34 | ),
35 | gapH4,
36 | Text(
37 | moodConfiguration.label,
38 | style: TextStyle(
39 | color: isSelected ? Theme.of(context).colorScheme.surface : moodConfiguration.color,
40 | ),
41 | )
42 | ],
43 | ),
44 | ),
45 | ),
46 | );
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/assets/mood_icons/dizzy.svg:
--------------------------------------------------------------------------------
1 |
7 |
--------------------------------------------------------------------------------
/assets/mood_icons/crying.svg:
--------------------------------------------------------------------------------
1 |
8 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
7 |
15 |
19 |
23 |
24 |
25 |
26 |
27 |
28 |
30 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/lib/src/features/mood_records/domain/mood_log/mood_record.g.dart:
--------------------------------------------------------------------------------
1 | // GENERATED CODE - DO NOT MODIFY BY HAND
2 |
3 | part of 'mood_record.dart';
4 |
5 | // **************************************************************************
6 | // TypeAdapterGenerator
7 | // **************************************************************************
8 |
9 | class MoodRecordAdapter extends TypeAdapter<_$_MoodRecord> {
10 | @override
11 | final int typeId = 0;
12 |
13 | @override
14 | _$_MoodRecord read(BinaryReader reader) {
15 | final numOfFields = reader.readByte();
16 | final fields = {
17 | for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
18 | };
19 | return _$_MoodRecord(
20 | label: fields[0] as String,
21 | score: fields[1] as int,
22 | iconPath: fields[2] as String,
23 | color: fields[3] as int,
24 | date: fields[4] as DateTime,
25 | note: fields[5] as String?,
26 | activities: (fields[6] as List).cast(),
27 | );
28 | }
29 |
30 | @override
31 | void write(BinaryWriter writer, _$_MoodRecord obj) {
32 | writer
33 | ..writeByte(7)
34 | ..writeByte(0)
35 | ..write(obj.label)
36 | ..writeByte(1)
37 | ..write(obj.score)
38 | ..writeByte(2)
39 | ..write(obj.iconPath)
40 | ..writeByte(3)
41 | ..write(obj.color)
42 | ..writeByte(4)
43 | ..write(obj.date)
44 | ..writeByte(5)
45 | ..write(obj.note)
46 | ..writeByte(6)
47 | ..write(obj.activities);
48 | }
49 |
50 | @override
51 | int get hashCode => typeId.hashCode;
52 |
53 | @override
54 | bool operator ==(Object other) =>
55 | identical(this, other) ||
56 | other is MoodRecordAdapter &&
57 | runtimeType == other.runtimeType &&
58 | typeId == other.typeId;
59 | }
60 |
--------------------------------------------------------------------------------
/lib/src/features/mood_records/data/mood_log/mood_record_repository.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_riverpod/flutter_riverpod.dart';
2 | import 'package:hive/hive.dart';
3 | import 'package:odyssey/src/features/mood_records/domain/mood_log/mood_record.dart';
4 |
5 | class MoodRecordRepository {
6 | MoodRecordRepository(this._moodRecordBox);
7 | final Box _moodRecordBox;
8 |
9 | Box get box => _moodRecordBox;
10 |
11 | static Future createRepository() async {
12 | final box = await Hive.openBox("mood_records");
13 | // ref.onDispose(() => box.close());
14 | return MoodRecordRepository(box);
15 | }
16 |
17 | Future createMoodRecord(MoodRecord record) {
18 | return _moodRecordBox.add(record);
19 | }
20 |
21 | Map fetchMoodRecords() {
22 | return _moodRecordBox.toMap();
23 | }
24 |
25 | Future updateMoodRecord(int key, MoodRecord record) {
26 | return _moodRecordBox.put(key, record);
27 | }
28 |
29 | Future deleteMoodRecord(int key) {
30 | return _moodRecordBox.delete(key);
31 | }
32 |
33 | Map fetchMoodRecordsByDate({required DateTime before, required DateTime after}) {
34 | final map = _moodRecordBox.toMap();
35 | map.removeWhere((key, value) => (value.date.compareTo(before) >= 0 || value.date.compareTo(after) <= 0));
36 | return map;
37 | }
38 | }
39 |
40 | final moodRecordRepositoryProvider = Provider((ref) {
41 | // to acces this provider synchronously, this provider is overriden at the ProviderScope
42 | throw UnimplementedError();
43 | });
44 |
45 | final moodRecordsProvider = Provider