# ๐ŸŒŠ LifeFlow - Personal Life Management System > Transform your daily routines into enjoyable habits [![Flutter](https://img.shields.io/badge/Flutter-3.19+-blue.svg)](https://flutter.dev) [![License](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE) ## ๐Ÿ“ฑ Overview LifeFlow is a comprehensive life management app that helps you track: - ๐Ÿ’Š Medications & Vitamins - ๐Ÿ“… Appointments & Meetings - ๐Ÿ˜ด Sleep Schedule - ๐ŸŽ Food & Nutrition - ๐Ÿ’ง Hydration - ๐Ÿƒ Exercise - ๐Ÿงผ Hygiene - ๐Ÿง˜ Self Care ### โœจ Features - **Easy Logging** - One-tap routine completion - **Smart Notifications** - Never miss a routine - **Gamification** - Points, streaks, badges, levels - **Home Assistant** - Full integration with sensors & buttons - **SMS Parsing** - Auto-detect appointments from texts - **Cross-Platform** - Android, PC app, Web --- ## ๐Ÿš€ Quick Start ### Prerequisites - Flutter SDK 3.19 or higher - Android Studio (for Android SDK) - Git ### Installation 1. **Clone the repository** ```bash git clone https://git.lemonlink.eu/impulsivefps/LifeFlow.git cd LifeFlow ``` 2. **Install Flutter** (if not already installed) ```bash # Option 1: Use the provided script bash scripts/install_flutter.sh source ~/.bashrc # Option 2: Manual installation # Download from: https://docs.flutter.dev/get-started/install ``` 3. **Navigate to Android app** ```bash cd android ``` 4. **Get dependencies** ```bash flutter pub get ``` 5. **Build APK** ```bash # Debug APK (for testing) flutter build apk --debug # Release APK (for distribution) flutter build apk --release ``` 6. **Find your APK** ``` build/app/outputs/flutter-apk/app-release.apk ``` --- ## ๐Ÿ“‚ Project Structure ``` LifeFlow/ โ”œโ”€โ”€ android/ # Flutter Android App โ”‚ โ”œโ”€โ”€ lib/ โ”‚ โ”‚ โ”œโ”€โ”€ main.dart # App entry point โ”‚ โ”‚ โ”œโ”€โ”€ models/ # Data models โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ routine.dart # Routine, Schedule, Reminder โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ activity.dart # Activity logging โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ gamification.dart # Points, badges, levels โ”‚ โ”‚ โ”œโ”€โ”€ repositories/ # Data access layer โ”‚ โ”‚ โ”œโ”€โ”€ screens/ # UI screens โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ dashboard/ # Main dashboard โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ routines/ # Routine management โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ calendar/ # Calendar view โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ stats/ # Statistics & progress โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ settings/ # App settings โ”‚ โ”‚ โ”œโ”€โ”€ services/ # Business logic โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ database_service.dart # Hive database โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ notification_service.dart # Local notifications โ”‚ โ”‚ โ””โ”€โ”€ theme/ # App theming โ”‚ โ””โ”€โ”€ pubspec.yaml # Dependencies โ”‚ โ”œโ”€โ”€ home-assistant/ # Home Assistant Integration โ”‚ โ””โ”€โ”€ custom_components/ โ”‚ โ””โ”€โ”€ lifeflow/ โ”‚ โ”œโ”€โ”€ __init__.py โ”‚ โ”œโ”€โ”€ sensor.py # 6 sensors โ”‚ โ”œโ”€โ”€ button.py # 4 buttons โ”‚ โ”œโ”€โ”€ config_flow.py โ”‚ โ””โ”€โ”€ manifest.json โ”‚ โ”œโ”€โ”€ scripts/ # Build scripts โ”‚ โ””โ”€โ”€ install_flutter.sh # Flutter SDK installer โ”‚ โ””โ”€โ”€ docs/ # Documentation โ””โ”€โ”€ DEVELOPMENT_PLAN.md ``` --- ## ๐Ÿ› ๏ธ Development ### Running in Debug Mode ```bash cd android flutter run ``` ### Running Tests ```bash flutter test ``` ### Building for Different Platforms ```bash # Android APK flutter build apk --release # Android App Bundle (for Play Store) flutter build appbundle --release # Windows flutter build windows --release # Linux flutter build linux --release # macOS flutter build macos --release ``` --- ## ๐Ÿ  Home Assistant Integration ### Installation 1. Copy the `home-assistant/custom_components/lifeflow` folder to your Home Assistant `config/custom_components/` directory 2. Restart Home Assistant 3. Go to Settings > Devices & Services > Add Integration 4. Search for "LifeFlow" ### Available Entities **Sensors:** - `sensor.lifeflow_medications_today` - Medications taken today - `sensor.lifeflow_water_intake` - Water consumed (mL) - `sensor.lifeflow_sleep_quality` - Sleep quality (%) - `sensor.lifeflow_daily_progress` - Daily completion (%) - `sensor.lifeflow_current_streak` - Current streak (days) - `sensor.lifeflow_total_points` - Total points **Buttons:** - `button.lifeflow_log_vitamins` - Log vitamins - `button.lifeflow_log_water` - Log water - `button.lifeflow_log_medication` - Log medication - `button.lifeflow_complete_routine` - Complete routine ### Example Automation ```yaml automation: - alias: "Morning Routine Complete" trigger: - platform: numeric_state entity_id: sensor.lifeflow_daily_progress above: 50 condition: - condition: time after: "06:00:00" before: "09:00:00" action: - service: light.turn_on target: entity_id: light.bedroom data: brightness_pct: 100 ``` --- ## ๐Ÿ“‹ Feature Checklist - [x] Flutter app structure - [x] Data models (Routine, Activity, Gamification) - [x] Repository layer with Riverpod - [x] Dashboard UI with progress ring - [x] Routine cards with categories - [x] Light/Dark theme support - [x] Local notifications service - [x] Hive database setup - [x] Home Assistant integration - [ ] SMS parsing implementation - [ ] PC app (Flutter Desktop) - [ ] Cloud sync - [ ] AI suggestions --- ## ๐Ÿค Contributing 1. Fork the repository 2. Create a feature branch: `git checkout -b feature/amazing-feature` 3. Commit your changes: `git commit -m 'Add amazing feature'` 4. Push to the branch: `git push origin feature/amazing-feature` 5. Open a Pull Request --- ## ๐Ÿ“„ License This project is licensed under the MIT License. --- ## ๐Ÿ™ Acknowledgments - Flutter Team for the amazing framework - Home Assistant Community for the integration platform --- **Ready to transform your daily routines? Let's flow! ๐ŸŒŠ**