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
df06cef398
await for all setExercisesAndUnits calls
...
Not setting the "await" was causing the method to be run asynchronously which means
that sometimes these would get called several times for the same exercise, which in
turn would cause exercises to be written several times to the local db, polluting the
exercise list, etc. etc.
We increase the schemaVersion of the database because this causes all the cache tables
to be dropped and re-created
2025-03-29 16:37:11 +01:00
Roland Geider
301f48a966
More renaming of exercise base to just exercise
2025-03-29 15:50:13 +01:00
Roland Geider
c28ec70fb6
Fix borked imports?
2025-03-29 14:50:41 +01:00
Roland Geider
47f6aa36d3
Formatting
2025-03-29 14:32:58 +01:00
Yashas H Majmudar
d31dc16bcf
migration: migrated all instances of sharedPreferences to sharedPreferencesAsync for tests
2025-03-23 14:26:28 -04: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
f987de1b4d
Handle case where an exercise has no variations
2025-03-18 14:59:33 +01:00
Roland Geider
202349c5bc
Make workout log charts work again
2025-01-25 15:39:51 +01:00
Roland Geider
079db5d5e0
Recreate generated files
2025-01-24 15:07:51 +01:00
Roland Geider
eff176f035
Merge branch 'master' into feature/flexible-routines
...
# Conflicts:
# lib/main.dart
# lib/models/exercises/exercise.dart
# lib/models/exercises/exercise_api.freezed.dart
# lib/models/workouts/day.g.dart
# lib/models/workouts/session.g.dart
# lib/models/workouts/workout_plan.g.dart
# lib/providers/exercises.dart
# lib/widgets/core/settings.dart
# pubspec.lock
# test/auth/auth_screen_test.mocks.dart
# test/core/settings_test.mocks.dart
# test/exercises/contribute_exercise_test.mocks.dart
# test/gallery/gallery_form_test.mocks.dart
# test/gallery/gallery_screen_test.mocks.dart
# test/measurements/measurement_categories_screen_test.mocks.dart
# test/measurements/measurement_provider_test.mocks.dart
# test/nutrition/nutritional_meal_form_test.mocks.dart
# test/nutrition/nutritional_plan_form_test.mocks.dart
# test/nutrition/nutritional_plan_screen_test.mocks.dart
# test/nutrition/nutritional_plans_screen_test.mocks.dart
# test/other/base_provider_test.mocks.dart
# test/user/provider_test.mocks.dart
# test/weight/weight_provider_test.mocks.dart
# test/weight/weight_screen_test.mocks.dart
# test/workout/gym_mode_screen_test.mocks.dart
# test/workout/repetition_unit_form_widget_test.mocks.dart
# test/workout/routine_screen_test.mocks.dart
# test/workout/routines_provider_test.mocks.dart
# test/workout/routines_screen_test.mocks.dart
# test/workout/weight_unit_form_widget_test.mocks.dart
# test/workout/workout_day_form_test.mocks.dart
# test/workout/workout_form_test.mocks.dart
# test/workout/workout_set_form_test.mocks.dart
2025-01-24 15:05:28 +01:00
Roland Geider
dad109d5bd
Inject the shared preferences class for easier testing
2025-01-24 13:59:08 +01:00
Roland Geider
86f8b7ae35
Add a third option to the theme mode
...
This allows the user to use the system settings as well, and not always force
light or dark mode in the app. Also move the logic to the UserProvider and
do some light refactoring.
2025-01-23 23:22:50 +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
abf9413f4b
Start rendering the new routines
2024-11-02 17:28:24 +01:00
Roland Geider
7db93f0b6e
Start implementing new flexible routines
2024-10-30 12:14:26 +01:00
Roland Geider
906fa7257a
Rename function
2024-09-29 11:45:31 +02:00
Roland Geider
72a68b4f59
Allow resetting the ingredient cache from the settings page
2024-09-29 11:25:14 +02:00
Roland Geider
dbdec5c9dd
Add tests for db cache
2024-09-27 11:11:35 +02:00
Dieter Plaetinck
66ced6ccc4
dcm fix --only-rules=prefer-trailing-comma lib test test_data integration_test
2024-09-18 16:00:43 +03:00
Roland Geider
5d237e1ddf
Consistently use "fiber"
2024-05-23 17:54:50 +02:00
Roland Geider
fbc4f163c9
Commit missing mocks file
2024-01-11 22:16:21 +01:00
Roland Geider
e67d992385
Add (for now) simple settings page to reset the exercise cache
...
This should be expanded later to allow to re-fetch all available exercises, etc.
2024-01-11 22:13:11 +01:00