DamuCare a mobile app designed to guide and support first-time and regular blood donors through education, appointment scheduling, and impact tracking. Built to empower new donors in Tanzania
# DamuCare - Flutter
DamuCare is a mobile app designed to guide and support first-time and regular blood donors through learning about the process, appointment scheduling, and tracking, helping users overcome fear and stay committed to saving lives in Tanzania
## π Prerequisites
- Flutter SDK (^3.29.2)
- Dart SDK
- Android Studio / VS Code with Flutter extensions
- Android SDK / Xcode (for iOS development)
## π οΈ Installation
1. Install dependencies:
```bash
flutter pub get
```
2. Run the application:
To run the app with environment variables defined in an env.json file, follow the steps mentioned below:
1. Through CLI
```bash
flutter run --dart-define-from-file=env.json
```
2. For VSCode
- Open .vscode/launch.json (create it if it doesn't exist).
- Add or modify your launch configuration to include --dart-define-from-file:
```json
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"request": "launch",
"type": "dart",
"program": "lib/main.dart",
"args": [
"--dart-define-from-file",
"env.json"
]
}
]
}
```
3. For IntelliJ / Android Studio
- Go to Run > Edit Configurations.
- Select your Flutter configuration or create a new one.
- Add the following to the "Additional arguments" field:
```bash
--dart-define-from-file=env.json
```
## π Project Structure
```
flutter_app/
βββ android/ # Android-specific configuration
βββ ios/ # iOS-specific configuration
βββ lib/
β βββ core/ # Core utilities and services
β β βββ utils/ # Utility classes
β βββ presentation/ # UI screens and widgets
β β βββ splash_screen/ # Splash screen implementation
β βββ routes/ # Application routing
β βββ theme/ # Theme configuration
β βββ widgets/ # Reusable UI components
β βββ main.dart # Application entry point
βββ assets/ # Static assets (images, fonts, etc.)
βββ pubspec.yaml # Project dependencies and configuration
βββ README.md # Project documentation
```
# β¦