Refactor: Implement multi-item inventory for Pad Tracker and dynamic navigation
This commit is contained in:
@@ -84,7 +84,7 @@ class CycleEntry extends HiveObject {
|
||||
@HiveField(1)
|
||||
DateTime date;
|
||||
|
||||
@HiveField(2)
|
||||
@HiveField(2, defaultValue: false)
|
||||
bool isPeriodDay;
|
||||
|
||||
@HiveField(3)
|
||||
@@ -99,34 +99,34 @@ class CycleEntry extends HiveObject {
|
||||
@HiveField(6)
|
||||
int? crampIntensity; // 1-5
|
||||
|
||||
@HiveField(7)
|
||||
@HiveField(7, defaultValue: false)
|
||||
bool hasHeadache;
|
||||
|
||||
@HiveField(8)
|
||||
@HiveField(8, defaultValue: false)
|
||||
bool hasBloating;
|
||||
|
||||
@HiveField(9)
|
||||
@HiveField(9, defaultValue: false)
|
||||
bool hasBreastTenderness;
|
||||
|
||||
@HiveField(10)
|
||||
@HiveField(10, defaultValue: false)
|
||||
bool hasFatigue;
|
||||
|
||||
@HiveField(11)
|
||||
@HiveField(11, defaultValue: false)
|
||||
bool hasAcne;
|
||||
|
||||
@HiveField(22)
|
||||
@HiveField(22, defaultValue: false)
|
||||
bool hasLowerBackPain;
|
||||
|
||||
@HiveField(23)
|
||||
@HiveField(23, defaultValue: false)
|
||||
bool hasConstipation;
|
||||
|
||||
@HiveField(24)
|
||||
@HiveField(24, defaultValue: false)
|
||||
bool hasDiarrhea;
|
||||
|
||||
@HiveField(25)
|
||||
int? stressLevel; // 1-5
|
||||
|
||||
@HiveField(26)
|
||||
@HiveField(26, defaultValue: false)
|
||||
bool hasInsomnia;
|
||||
|
||||
@HiveField(12)
|
||||
@@ -147,10 +147,10 @@ class CycleEntry extends HiveObject {
|
||||
@HiveField(17)
|
||||
int? waterIntake; // glasses
|
||||
|
||||
@HiveField(18)
|
||||
@HiveField(18, defaultValue: false)
|
||||
bool hadExercise;
|
||||
|
||||
@HiveField(19)
|
||||
@HiveField(19, defaultValue: false)
|
||||
bool hadIntimacy; // For married users only
|
||||
|
||||
@HiveField(20)
|
||||
@@ -338,7 +338,7 @@ extension FlowIntensityExtension on FlowIntensity {
|
||||
case FlowIntensity.light:
|
||||
return 'Light';
|
||||
case FlowIntensity.medium:
|
||||
return 'Medium';
|
||||
return 'Regular';
|
||||
case FlowIntensity.heavy:
|
||||
return 'Heavy';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user