Commit Graph

26 Commits

Author SHA1 Message Date
109d3e23de Fix bug that left PerDate widget empty when popped to.
Previously, when you would navigate to a PerDate widget that already
exists on the Navigation stack, a food that is entered will not be
visible when popping to the PerDate widget with the same date.

This is because the state is not updated (the BLoC exists per PerDate
widget, and a change in one widget does not cause firing an event in the previous widget's BLoC).

With this fix, we call setState() and update the entries for the widget
from storage.
2024-09-13 16:52:47 +02:00
54157f6dec style Snackbar. still need to find a solution for async gaps in onPressed() for ScanButton 2024-09-08 15:07:39 +02:00
df6e5dd8cb Add error handling for food scanning and make sum widget have different colors depending on difference to limit setting. 2024-09-08 01:57:40 +02:00
1a4614f331 Remove go_router because I could not figure out why initState() was called on my widget, thus clearing state when I did not expect it 2024-09-07 01:38:03 +02:00
4afb3ca319 Make it work with relying the data for 'EnterFoodWidget' onto the InheritedWidget 2024-09-07 00:02:07 +02:00
3493790598 wip introduce scanner 2024-09-06 19:03:41 +02:00
1f06e7b936 Fixed project. Now it builds 2024-09-06 19:00:25 +02:00
45f44099a1 Refactor code 2024-09-06 13:48:56 +02:00
6552756702 Remove the card-like design for food entries and make the 'delete' button dynamically appear 2024-09-06 02:23:47 +02:00
1db4e5e351 Make shit pretty 2024-09-05 16:36:35 +02:00
b83f547f6b Implement food entry lookup on entering a food name.
Now, an on-the-fly food lookup is created from existing entries on startup. Those entries are used to make suggestions when the user is typing to enter new food entries.
2024-09-04 22:47:37 +02:00
fb0dbef158 Make the theme switcher icon change depending on the theme. 2024-06-13 21:49:04 +02:00
402de821a0 change package name to de.swgross.calodiary 2024-06-13 21:12:26 +02:00
8e1cf835e4 Introduce themebloc and persist theme 2024-06-12 14:42:29 +02:00
000bd9a413 change name from kalodings to calodiary 2024-06-11 19:32:25 +02:00
9953635ad3 round numbers to next integer 2024-06-11 19:11:23 +02:00
be2ab69a3f Instead of a global FoodEntryBloc, every PerDateWidget has one 2024-06-11 19:05:42 +02:00
d2ab82aaf5 fix paddings of buttons and other widgets 2024-06-10 17:35:21 +02:00
0080e39605 Change some paddings 2024-06-10 03:31:06 +02:00
7a6062fd95 Introduce settings for daily kcal limit 2024-06-10 03:06:56 +02:00
7b0947f93f many many many changes 2024-06-09 23:25:18 +02:00
2a707e51e4 ensureInitialized() 2024-06-09 20:11:54 +02:00
d59f09eed4 Make persistence work 2024-06-09 19:06:10 +02:00
2298c12704 Many ui changes. Add some navigation 2024-06-09 14:45:58 +02:00
a5afda8de6 improve ui 2024-06-01 12:41:58 +02:00
7712373388 fist commit, that has the groundwork for the app 2024-05-30 00:58:26 +02:00