UI tweaks for Samsung

This commit is contained in:
2023-07-08 16:26:02 -07:00
parent 03382d2cb9
commit b110ea0cb9
5 changed files with 147 additions and 64 deletions
+2 -2
View File
@@ -159,6 +159,8 @@ class DatabaseAPI extends ChangeNotifier {
data: {'hours': hours, 'mood': mood, 'comments': comments},
);
print("Updated $date.");
_entries.removeAt(entryIndex);
_entries.add(newEntry);
notifyListeners();
@@ -173,8 +175,6 @@ class DatabaseAPI extends ChangeNotifier {
if (hours.length == index) {
hours.add(num.parse(value));
} else {
print(List.generate(index - hours.length, (i) => -1));
hours.addAll(List.generate(index - hours.length, (i) => -1));
hours.add(num.parse(value));
}