Skip to content

MindHaven is an Flutter based app for your personal sanctuary for mental wellness, self-care, and mindful journaling.

Notifications You must be signed in to change notification settings

LikhithSP/MindHaven

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

30 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿง˜๐Ÿป MindHaven

\

MindHaven is an app made using flutter which is Your personal sanctuary for mental wellness, self-care, and mindful journaling.


๐Ÿš€ Quick Start

  1. Clone the repository:
    git clone <repository-url>
    cd MindHaven
  2. Install dependencies:
    flutter pub get
  3. Run the app:
    flutter run

๐ŸŒฑ App Icon Setup

  1. Save your nature-themed image as assets/images/nature.png (1024x1024px recommended).
  2. Run:
    flutter pub get
    flutter pub run flutter_launcher_icons
    
  3. Icons will be generated for all platforms automatically.
    • Android: android/app/src/main/res/
    • iOS: ios/Runner/Assets.xcassets/AppIcon.appiconset/

โœจ Features

๐Ÿ”’ Privacy-First

  • Complete offline functionality
  • Local storage only
  • No account required
  • No data collection

๐Ÿ“ Smart Journaling

  • Daily journal entries
  • Modern text interface
  • Save / Edit Journals

๐Ÿ˜Š Mood Tracking

  • Log daily mood
  • 5 mood options with emojis
  • Mood trends & analytics
  • Visual indicators
  • Activity tracking
  • Historical visualization

๐ŸŒŸ Daily Affirmations

  • Curated positive affirmations
  • New affirmation each day
  • Favorite & browse affirmations
  • Animated card display
  • Share affirmations (coming soon)

๐Ÿ”” Smart Reminders

  • Journal, affirmation, and mood reminders
  • Customizable times
  • Native notifications

๐Ÿ“ฑ Modern UI/UX

  • Material Design 3
  • Dark/Light theme
  • Smooth animations
  • Intuitive navigation
  • Responsive & accessible

๐Ÿ›  Technical Architecture

Frontend

  • Flutter 3.x - Cross-platform
  • Provider - State management
  • Material Design 3 - UI
  • Google Fonts - Typography

Local Storage

  • SQLite - Local DB
  • SharedPreferences - Settings
  • Structured models

Notifications

  • Flutter Local Notifications
  • Timezone support
  • Custom channels

๐Ÿ“ Project Structure

lib/
โ”œโ”€โ”€ main.dart                 # App entry point
โ”œโ”€โ”€ models/                   # Data models
โ”‚   โ”œโ”€โ”€ journal_entry.dart
โ”‚   โ”œโ”€โ”€ mood_entry.dart
โ”‚   โ””โ”€โ”€ affirmation.dart
โ”œโ”€โ”€ providers/                # State management
โ”‚   โ”œโ”€โ”€ journal_provider.dart
โ”‚   โ”œโ”€โ”€ mood_provider.dart
โ”‚   โ”œโ”€โ”€ affirmation_provider.dart
โ”‚   โ””โ”€โ”€ notification_provider.dart
โ”œโ”€โ”€ services/                 # Business logic
โ”‚   โ”œโ”€โ”€ database_service.dart
โ”‚   โ”œโ”€โ”€ emotion_detection_service.dart
โ”‚   โ””โ”€โ”€ notification_service.dart
โ”œโ”€โ”€ screens/                  # UI screens
โ”‚   โ”œโ”€โ”€ splash_screen.dart
โ”‚   โ”œโ”€โ”€ home_screen.dart
โ”‚   โ”œโ”€โ”€ journal_screen.dart
โ”‚   โ”œโ”€โ”€ mood_tracker_screen.dart
โ”‚   โ”œโ”€โ”€ history_screen.dart
โ”‚   โ””โ”€โ”€ settings_screen.dart
โ”œโ”€โ”€ widgets/                  # Reusable components
โ”‚   โ”œโ”€โ”€ affirmation_card.dart
โ”‚   โ”œโ”€โ”€ journal_entry_card.dart
โ”‚   โ”œโ”€โ”€ mood_entry_card.dart
โ”‚   โ””โ”€โ”€ quick_stats_card.dart
โ””โ”€โ”€ utils/                    # Utilities
    โ””โ”€โ”€ app_theme.dart

โš™๏ธ Setup Instructions

Prerequisites

  • Flutter SDK 3.x
  • Dart SDK 3.x
  • Android Studio / VS Code
  • Android SDK (Android)
  • Xcode (iOS)

Installation

See Quick Start above.

Platform-Specific Setup

Android

  • Min SDK: 21
  • Target SDK: 34
  • Notification permissions configured

iOS

  • Min iOS: 12.0
  • Notification permissions auto-handled
  • Core ML ready

๐Ÿ“ฆ Key Dependencies

dependencies:
  flutter:
    sdk: flutter
  provider: ^6.0.5           # State management
  sqflite: ^2.3.0           # Local database
  google_fonts: ^6.1.0      # Typography
  flutter_local_notifications: ^16.3.0  # Notifications
  intl: ^0.18.1             # Internationalization
  shared_preferences: ^2.2.2 # Settings storage
  tflite_flutter: ^0.10.4   # TensorFlow Lite (Android)


๐Ÿ”ฎ Future Enhancements

Phase 2 Features

  • Data export functionality
  • Backup/restore options
  • Advanced analytics dashboard
  • Custom affirmation creation
  • Voice-to-text journaling
  • Meditation timer integration

Technical Improvements

  • Real ML model integration
  • Performance optimizations
  • Advanced security features
  • Accessibility improvements
  • Multi-language support

Analytics Enhancements

  • Mood correlation analysis
  • Goal setting and tracking
  • Progress milestones
  • Detailed trend analysis
  • Personalized insights

๐Ÿ” Privacy & Security

  • No Network Requests - App works completely offline
  • Local Encryption - Sensitive data is encrypted at rest
  • No Analytics - No user behavior tracking
  • No Ads - Clean, distraction-free experience
  • Open Source - Code is transparent and auditable

โš ๏ธ Mental Health Disclaimer

This app is designed for self-reflection and emotional awareness. It is not intended to replace professional mental health care, therapy, or medical advice. If you're experiencing severe mental health symptoms, please consult with a qualified healthcare provider.


๐Ÿค Contributing

We welcome contributions! Please read our contributing guidelines and code of conduct before submitting pull requests.


๐Ÿ“„ License

MIT License - see the LICENSE file for details.


๐Ÿ’ฌ Support

If you find this app helpful, please:

  • โญ Star the repository
  • ๐Ÿ› Report bugs
  • ๐Ÿ’ก Suggest features
  • ๐Ÿ“ฑ Share with others

Built with โค๏ธ for mental health awareness

About

MindHaven is an Flutter based app for your personal sanctuary for mental wellness, self-care, and mindful journaling.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published