Refine: Add real-time countdown timer and display settings to Pad Tracker
This commit is contained in:
@@ -256,6 +256,12 @@ class UserProfile extends HiveObject {
|
||||
@HiveField(37, defaultValue: true)
|
||||
bool notifyLowSupply;
|
||||
|
||||
@HiveField(39, defaultValue: true)
|
||||
bool showPadTimerMinutes;
|
||||
|
||||
@HiveField(40, defaultValue: false)
|
||||
bool showPadTimerSeconds;
|
||||
|
||||
UserProfile({
|
||||
required this.id,
|
||||
required this.name,
|
||||
@@ -295,6 +301,8 @@ class UserProfile extends HiveObject {
|
||||
this.notifyLowSupply = true,
|
||||
this.lastPadChangeTime,
|
||||
this.padSupplies,
|
||||
this.showPadTimerMinutes = true,
|
||||
this.showPadTimerSeconds = false,
|
||||
});
|
||||
|
||||
/// Check if user is married
|
||||
@@ -359,6 +367,8 @@ class UserProfile extends HiveObject {
|
||||
bool? notifyLowSupply,
|
||||
DateTime? lastPadChangeTime,
|
||||
List<SupplyItem>? padSupplies,
|
||||
bool? showPadTimerMinutes,
|
||||
bool? showPadTimerSeconds,
|
||||
}) {
|
||||
return UserProfile(
|
||||
id: id ?? this.id,
|
||||
@@ -400,6 +410,8 @@ class UserProfile extends HiveObject {
|
||||
notifyLowSupply: notifyLowSupply ?? this.notifyLowSupply,
|
||||
lastPadChangeTime: lastPadChangeTime ?? this.lastPadChangeTime,
|
||||
padSupplies: padSupplies ?? this.padSupplies,
|
||||
showPadTimerMinutes: showPadTimerMinutes ?? this.showPadTimerMinutes,
|
||||
showPadTimerSeconds: showPadTimerSeconds ?? this.showPadTimerSeconds,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user