Commit Graph

178 Commits

Author SHA1 Message Date
Roland Geider
b0d1bce9aa Consistently show the day and type name 2025-10-16 23:48:15 +02:00
Roland Geider
93a11a16e4 Recreate generated files and reformat the repo
Seems the default dart formatting rules changed recently, and this was causing
huge diffs in branches
2025-10-09 17:39:02 +02:00
rishad.n
9a801bd2b2 Refactor event type enum and improve loadEvents documentation 2025-10-09 17:19:57 +05:30
Roland Geider
d56c3b2e45 Handle corner cases with null values
While this should not happen, it seems there are situations when some people
do run into the "Null check operator used on a null value" error here.

Closes #878
2025-09-06 23:44:54 +02:00
Roland Geider
4330e51f86 Retrieve the current routine dynamically
This behaviour is now the same as the nutritional plans.
2025-09-05 22:47:27 +02:00
Roland Geider
92295c54b8 Merge branch 'master' into fix/timezone-problems 2025-08-28 22:19:31 +02:00
Roland Geider
3adebd15f4 Merge pull request #873 from afzal09/fix_Calendar_Future_Dates_issue872
changed calendar settings to allow to choose future days upto 112 days.
2025-08-25 19:42:31 +02:00
Roland Geider
b996b4b88b Bump last selectable date to 1 year in the future 2025-08-25 19:31:26 +02:00
Roland Geider
d2f38228fb Improvements in handling localized values in the UI 2025-08-13 21:02:34 +02:00
Afzal Momin
a78da55464 changed calender settings to allow to choose future days upto 112 days. 2025-07-23 21:32:15 +05:30
RahulShaw321
48b2c921b4 fix: defer loadEvents() to avoid context null crash 2025-06-22 21:17:35 +05:30
Roland Geider
70fba34f0c Better handling of time zones
We now send the current time zone to the server when serializing datetime objects.
This was causing entries to be saved some hours wrong or depending on the time, on
a different day.
2025-05-26 11:13:53 +02:00
Roland Geider
9ebaf58fea Refactor routine handling for the dashboard widgets
This makes sure that edits to the routine (such as changing the order
of the days, etc.) are properly reflected in the dashboard.
2025-05-03 15:39:46 +02:00
Roland Geider
6fd74f0f80 Use localized kcal message 2025-03-29 15:06:45 +01:00
Roland Geider
d6eba96e50 Remove again the "Till end of the week" message
This wasn't describing properly how the rest days are being handled
2025-03-19 22:24:21 +01:00
Roland Geider
d071d143df Update flutter to 3.29
The translations are not stored in a synthetic package anymore, but the
files are just copied to a specific folder so it can be more easily imported

Also, flutter_barcode_scanner was replaced by simple_barcode_scanner since
the first hasn't been updated in 3 years and was already causing problems
for some time
2025-03-18 17:28:19 +01:00
Roland Geider
b8f4167c9e Show special tile indicating end of the week 2025-03-18 16:14:22 +01:00
Roland Geider
1c2e988c82 Show the start and end dates for the current routine in the dashboard
The date in which the routine was created is not so important anymore
2025-03-17 21:03:12 +01:00
Roland Geider
140fe11e2a Mark the day in the routine for the current date 2025-03-11 21:03:20 +01:00
Roland Geider
2e62fdee83 Cleanup 2025-01-31 16:25:03 +01:00
Roland Geider
ef4db2c772 Pass the routine ID to the RoutineScreen widget 2025-01-31 16:24:21 +01:00
Roland Geider
c0935506ed Load the session data from the new API as well
Also, edit or add a session in the gym mode
2025-01-25 21:50:30 +01:00
Roland Geider
69ffdcfbc9 Don't overflow the set representation 2025-01-25 20:06:40 +01:00
Roland Geider
5a39c6c229 Rename some functions, a bit of cleanup 2025-01-10 15:52:26 +01:00
Roland Geider
462cc95979 Fix test 2025-01-06 22:01:33 +01:00
Roland Geider
ad5d1be306 Pass the necessary IDs to the gym mode and load the rest of the data 2025-01-05 16:35:16 +01:00
Roland Geider
8020bd21b6 More polish and i18n work
Also make sure that we don't update the routine while editing, since
some of the changes could pull the rug under our feet and felt strange.
Now there's a manual refresh button for the resulting routine
2024-11-16 22:21:27 +01:00
Roland Geider
23119e68d5 Allow users to reorder the days and the slots within the days 2024-11-15 16:44:41 +01:00
Roland Geider
1d93b2f8c0 Refactor forms into individual files 2024-11-12 14:15:49 +01:00
Roland Geider
a35336f57c Allow editing the fit in week toggle as well as start and end dates 2024-11-12 13:31:56 +01:00
Roland Geider
47e36eff48 More refactoring of routine screens and widgets 2024-11-10 15:13:30 +01:00
Roland Geider
12f22d214a Rename widget folder 2024-11-10 14:51:11 +01:00
Roland Geider
5c947375ee Rename provider 2024-11-10 14:48:03 +01:00
Roland Geider
05b13d880e Further work on rendering the new routines 2024-11-07 11:13:58 +01:00
Roland Geider
9ff2bba13a Load the new DayData entries and the regular data objects from structure endpoint 2024-10-30 23:19:10 +01:00
Roland Geider
a79b6d6b4e Start implementing new flexible routines 2024-10-30 19:17:51 +01:00
Roland Geider
7db93f0b6e Start implementing new flexible routines 2024-10-30 12:14:26 +01:00
Dieter Plaetinck
c5b1695d20 fix crash for empty measurements 2024-10-16 15:33:59 +02:00
Dieter Plaetinck
bd7088d445 use a 'sensible range' for headline weight/measurements charts
this allows user to focus on their recent progress on the initial chart.
if they want to see the full history, that's only a tap away
2024-10-16 15:33:59 +02:00
Roland Geider
15b6eb19b0 Update carousel_slider and used flutter version 2024-09-26 20:00:55 +02:00
Dieter Plaetinck
7e6c78c5e3 dart fix --apply 2024-09-18 21:29:22 +03:00
Dieter Plaetinck
a589d87fad dcm fix --only-rules=avoid-redundant-async 2024-09-18 15:52:55 +03:00
Dieter Plaetinck
bf9e614f8b make it work for measurements + couple fixes 2024-09-18 13:33:57 +03:00
Dieter Plaetinck
161444b32f weight visualisation improvements
* show weight entries during this nutrition plan and last 30 days
* show moving average of last 7 days
* show aggregate changes below chart
* fix unit displays in a few cases
* improv color scheme and other layout tweaks
* various small code cleanups
2024-09-11 16:03:43 +03:00
Dieter Plaetinck
14bd370503 solve the date fix in a cleaner way 2024-09-07 19:44:50 +03:00
DVPeer
323f4bfc6b remove info button and viewmode logic 2024-07-18 01:36:17 +07:00
Dieter Plaetinck
87755f16b6 dcm fix --only-rules=unnecessary-trailing-comma lib 2024-06-20 15:55:28 +03:00
Dieter Plaetinck
6e1d3f9568 dart format --line-length=100 .
(except auto generated files)
2024-06-20 15:44:35 +03:00
Dieter Plaetinck
266cec8c0c manual fixes: no-empty-block 2024-06-07 14:59:07 +03:00
Dieter Plaetinck
420f9ae16d dcm fix --only-rules=avoid-inferrable-type-arguments lib 2024-06-07 14:59:00 +03:00