Implement husband-wife connection dialogue and theme support for learn articles
This commit is contained in:
@@ -56,6 +56,60 @@ class NotificationSettingsScreen extends ConsumerWidget {
|
||||
.updateProfile(userProfile.copyWith(notifyLowSupply: value));
|
||||
},
|
||||
),
|
||||
if (userProfile.isPadTrackingEnabled) ...[
|
||||
const Divider(),
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 8.0, horizontal: 16.0),
|
||||
child: Text(
|
||||
'Pad Change Reminders',
|
||||
style: Theme.of(context).textTheme.titleMedium?.copyWith(
|
||||
color: Theme.of(context).colorScheme.primary,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
),
|
||||
CheckboxListTile(
|
||||
title: const Text('2 Hours Before'),
|
||||
value: userProfile.notifyPad2Hours,
|
||||
onChanged: (value) async {
|
||||
if (value != null) {
|
||||
await ref.read(userProfileProvider.notifier).updateProfile(
|
||||
userProfile.copyWith(notifyPad2Hours: value));
|
||||
}
|
||||
},
|
||||
),
|
||||
CheckboxListTile(
|
||||
title: const Text('1 Hour Before'),
|
||||
value: userProfile.notifyPad1Hour,
|
||||
onChanged: (value) async {
|
||||
if (value != null) {
|
||||
await ref.read(userProfileProvider.notifier).updateProfile(
|
||||
userProfile.copyWith(notifyPad1Hour: value));
|
||||
}
|
||||
},
|
||||
),
|
||||
CheckboxListTile(
|
||||
title: const Text('30 Minutes Before'),
|
||||
value: userProfile.notifyPad30Mins,
|
||||
onChanged: (value) async {
|
||||
if (value != null) {
|
||||
await ref.read(userProfileProvider.notifier).updateProfile(
|
||||
userProfile.copyWith(notifyPad30Mins: value));
|
||||
}
|
||||
},
|
||||
),
|
||||
CheckboxListTile(
|
||||
title: const Text('Change Now (Time\'s Up)'),
|
||||
subtitle: const Text('Get notified when it\'s recommended to change.'),
|
||||
value: userProfile.notifyPadNow,
|
||||
onChanged: (value) async {
|
||||
if (value != null) {
|
||||
await ref.read(userProfileProvider.notifier).updateProfile(
|
||||
userProfile.copyWith(notifyPadNow: value));
|
||||
}
|
||||
},
|
||||
),
|
||||
],
|
||||
],
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user