mirror of
https://github.com/vleeuwenmenno/supplements.git
synced 2025-12-08 06:02:34 +00:00
Update notification message format to include total dosage and unit type
This commit is contained in:
@@ -61,7 +61,7 @@ class NotificationService {
|
|||||||
await _notifications.zonedSchedule(
|
await _notifications.zonedSchedule(
|
||||||
notificationId,
|
notificationId,
|
||||||
'Time for ${supplement.name}',
|
'Time for ${supplement.name}',
|
||||||
'Take ${supplement.dosage} ${supplement.unit}',
|
'Take ${supplement.numberOfUnits} ${supplement.unitType} (${supplement.totalDosagePerIntake} ${supplement.unit})',
|
||||||
_nextInstanceOfTime(hour, minute),
|
_nextInstanceOfTime(hour, minute),
|
||||||
const NotificationDetails(
|
const NotificationDetails(
|
||||||
android: AndroidNotificationDetails(
|
android: AndroidNotificationDetails(
|
||||||
|
|||||||
Reference in New Issue
Block a user