Skip to content

Add home screen widget and optional fast-end notification - #6

Merged
YarinQuapi merged 1 commit into
masterfrom
home-widget-and-fast-reminders
Nov 12, 2026
Merged

YarinQuapi merged 1 commit into
masterfrom
home-widget-and-fast-reminders

Conversation

@YarinQuapi

Copy link
Copy Markdown
Owner

What

  • iOS home screen widget (apps/mobile/ios/DropItWidget, small + medium): today's calories (consumed / target) and the fasting timer (live countdown, or the scheduled window when no fast is running). Uses system semantic colours (light/dark) and follows the app language/RTL.
  • Data flow: lib/widget_sync.dart (home_widget) writes into the App Group group.dev.yarinlevi.dropit from syncReminders(), which now also fetches /api/days/today. It runs on launch, resume, fast start/stop, add/delete entry, logout and toggle changes.
  • Fast-end notification: new Settings switch (default off, stored locally in prefs.json). Schedules a local notification at endsAt while a fast is running; cancelled on stop or when toggled off. Existing window reminders no longer cancelAll(), so they don't wipe it.
  • EN/HE strings added in copy.dart; README documents setup.

Reviewer notes

  • Xcode project gained a DropItWidget target (scripted via xcodeproj). flutter build ios --simulator --no-codesign passes; flutter analyze shows only pre-existing infos.
  • Not run on a device/simulator, so widget appearance and notification firing are untested.
  • Needs the App Groups capability for dev.yarinlevi.dropit and dev.yarinlevi.dropit.DropItWidget in the Apple developer portal. A free Personal Team may need the IDs changed.
  • No android/ project exists, so no Android widget; README describes what to add.
  • Branched from local master (older than origin/master), so a rebase may be needed.

🤖 Generated with Claude Code

iOS WidgetKit extension shows today's calories and the fasting timer, fed
through an App Group by home_widget on every sync. Settings gets a toggle
(default off) that schedules a local notification for the fast's endsAt.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@YarinQuapi
YarinQuapi force-pushed the home-widget-and-fast-reminders branch from 8b26551 to 98b285d Compare November 12, 2026 11:56
@YarinQuapi
YarinQuapi merged commit b5a5608 into master Nov 12, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant