DoseBuddy: Your Medication Companion Inspiration

When my mum had back surgery, she had to manage several medications with different schedules. Keeping track of everything was overwhelming, and it made me realize how difficult medication management can be when someone is already recovering. My grandparents face similar challenges, and their caretakers still track doses on paper even though they use their phones for everything else. DoseBuddy grew out of wanting to make this process easier for them.

What I Built

DoseBuddy is a Flutter + Dart app designed to help users:

Track multiple medications and schedules

Receive reminders for each dose

Mark doses as taken

View daily and weekly history

Manage refills

Keep all medication information in one organized place

What I Learned

How to structure a Flutter project from scratch

State management and keeping data consistent across screens

Using Hive for persistent local storage

Implementing notifications reliably

Designing accessible interfaces for elderly users

Troubleshooting complex dependency and YAML issues

Challenges I Faced

  1. Dependencies

Getting all the required Flutter packages to work together was a challenge. Hive, notification plugins, and calendar packages often conflicted. Fixing version issues and troubleshooting YAML errors took time and patience.

  1. “Mark as Taken”

This feature was more complicated than expected. A medication might have several dose times in one day, so I had to track each scheduled instance and update the pill count accurately.

void markAsTakenOn(DateTime date, String scheduledTime) { takenLog!.add({ 'date': _formatDate(date), 'scheduledTime': scheduledTime, 'takenAt': DateTime.now().toIso8601String(), });

pillsRemaining = pillsRemaining! - pillsPerDose; }

Refill prediction uses:

Days Remaining

⌊ Pills Remaining Doses Per Day × Pills Per Dose ⌋ Days Remaining=⌊ Doses Per Day×Pills Per Dose Pills Remaining ​

  1. Logo Design

Creating a logo that felt clean, simple, and trustworthy took several iterations. I eventually settled on a rounded pill-bottle design with a calm gradient to match the app’s tone.

How to Build It

Clone and install

git clone https://github.com/yourusername/dosebuddy.git cd dosebuddy flutter pub get

Generate Hive adapters

flutter pub run build_runner build

Run the app

flutter run

Key Dependencies: hive, flutter_local_notifications, table_calendar, shared_preferences

Built With

Share this project:

Updates