# Health Tracker - Free Version 🏥

A privacy-first Flutter health tracking app for Android with **all premium features hidden** for direct APK distribution.

## 🎯 About This Version

This is a **completely free version** of Health Tracker with all premium features and upgrade prompts removed. Perfect for users who want a simple, no-nonsense health tracking app without any subscription model.

## ✅ Available Features

- **Weight Tracking**: Record and monitor your weight over time
- **Blood Pressure Monitoring**: Track systolic and diastolic readings with category indicators
- **Mood Tracking**: Log your daily mood with emoji-based selection
- **Data Visualization**: View your health data with interactive charts and graphs
- **Statistics Dashboard**: Get insights into your health trends
- **Data Export/Import**: Backup and restore your data locally (CSV format)
- **Themes**: Switch between light and dark modes
- **Privacy First**: All data stored locally on your device

## 🚫 Removed Features

The following premium features have been completely hidden:
- Cloud backup and sync
- Local data encryption
- Advanced correlation analysis
- Premium upgrade prompts
- Subscription management
- Premium status indicators

## 📱 Installation

### Option 1: Direct APK Install
1. Download the APK file
2. Enable "Install from Unknown Sources" in your Android settings
3. Install the APK file
4. Open Health Tracker and start tracking!

### Option 2: Alternative App Stores
This APK can be distributed through alternative app stores like:
- F-Droid
- APKPure
- Amazon Appstore
- Samsung Galaxy Store

## 🔧 Building from Source

To build this free version yourself:

```bash
# Clone the repository
git clone [your-repo-url]
cd healthTracker

# Run the free version build script
./build_free_version.sh
```

The script will:
- Clean previous builds
- Install dependencies
- Build a release APK with premium features disabled
- Output the APK to `build/app/outputs/flutter-apk/app-release.apk`

## 🛠 Technical Details

### App Configuration
Premium features are controlled by the `AppConfig` class in `lib/utils/app_config.dart`:

```dart
class AppConfig {
  static const bool showPremiumFeatures = false;      // Hides premium UI elements
  static const bool showUpgradePrompts = false;       // Disables upgrade dialogs
  static const bool showPremiumSettings = false;      // Hides premium settings
  static const bool showPremiumStatusCards = false;   // Hides premium status cards
}
```

### Architecture
- **Framework**: Flutter 3.x with Dart
- **State Management**: BLoC pattern
- **Database**: SQLite with sqflite (local storage only)
- **Design**: Material 3 with health-focused theming
- **No Network**: No internet permissions or cloud services

## 🔒 Privacy & Security

- **100% Local**: All data stays on your device
- **No Tracking**: No analytics or telemetry
- **No Accounts**: No sign-up or login required
- **No Permissions**: Minimal Android permissions required
- **Open Source**: Full source code available for review

## 📊 Data Management

### Export Your Data
- Go to Settings → Backup & Export
- Choose "Export Data"
- Select CSV format
- Save to your device storage

### Import Data
- Go to Settings → Backup & Export  
- Choose "Import Data"
- Select your CSV backup file
- Review and confirm import

## 🆘 Support & Issues

Since this is a free, self-distributed version:
- No official support channels
- Community support through GitHub issues
- Documentation available in the repository
- Source code available for modifications

## 📄 License

This project is licensed under the Apache License 2.0 - see the [LICENSE](LICENSE) file for details.

Copyright 2026 Private By Design

## 🙏 Acknowledgments

This free version maintains all the core functionality of Health Tracker while removing commercial elements, making it perfect for users who prefer a simple, ad-free, subscription-free health tracking experience.

---

**Health Tracker Free** - Simple health tracking, no strings attached! 🎯
