Roland Geider
7e0910b56b
Handle network connectivity a bit different
...
When the server is not reachable, we show a slightly different error message
and remove the option to automatically create an issue.
2025-05-08 15:07:12 +02:00
Roland Geider
5e22d69bb1
Improve error handling and logging
...
Now we process and catch all errors that might happen in the application, instead
of silently ignoring them. These errors are shown in a better error dialog, that
shows the details to the user and allows to create an issue on GitHub with the
error and traceback data already filled in.
2025-05-07 18:19:15 +02:00
Roland Geider
61f61a64c5
Merge branch 'master' into feature/improve-min-app-version
...
# Conflicts:
# lib/providers/auth.dart
2025-03-31 09:44:43 +02:00
Roland Geider
47f6aa36d3
Formatting
2025-03-29 14:32:58 +01:00
Roland Geider
e4b550ab52
Refactor app version handling and update authentication flow
...
Previously, this was only triggered when logging in to the application. If a user
just opened the app, it would just stop working. We also now always check this min
version and have removed the option from the android manifest file since disabling
this doesn't make much sense and we have many other platforms as well (iOS, flatpak)
2025-03-28 17:22:36 +01:00
Yashas H Majmudar
529c63c92e
migration: migrated all instances of sharedPreferences to sharedPreferencesAsync
2025-03-23 14:26:05 -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
58d60310e7
Merge branch 'master' into feature/flexible-routines
...
# Conflicts:
# lib/main.dart
# lib/providers/exercises.dart
# lib/providers/workout_plans.dart
# lib/screens/home_tabs_screen.dart
# pubspec.yaml
2025-01-25 12:50:37 +01:00
Roland Geider
58e7a52e3d
Use log levels when logging to console
2025-01-25 12:45:33 +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
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
sangharshdeveloper
8dc72b9fc4
solved json fomatting error from app_en.arb
2025-01-17 22:55:05 +05:30
sangharshdeveloper
06ca72e0f8
#687 enhancement theme-customization
2025-01-17 22:19:54 +05:30
sangharshdeveloper
ced268660b
#687 enhancement theme-customization
2025-01-12 20:48:31 +05:30
Jackpkn
fd1ee4295c
fix: improve Gym Mode navigation and state persistence
2025-01-06 21:38:33 +05:30
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
5c947375ee
Rename provider
2024-11-10 14:48:03 +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
Dieter Plaetinck
11ee38c03d
dart fix --apply
2024-06-20 15:47:55 +03:00
Dieter Plaetinck
420f9ae16d
dcm fix --only-rules=avoid-inferrable-type-arguments lib
2024-06-07 14:59:00 +03:00
Dieter Plaetinck
cf351c3690
dcm fix --only-rules=prefer-declaring-const-constructor lib
2024-06-07 14:59:00 +03:00
Dieter Plaetinck
8db1a7c960
dcm fix --only-rules=unnecessary-trailing-comma lib
2024-06-07 14:59:00 +03:00
Dieter Plaetinck
7f74bff32c
dcm fix --only-rules=prefer-trailing-comma lib
2024-06-07 14:59:00 +03:00
Dieter Plaetinck
3922549be8
log meals page + new 'log {meal,ingredient} to diary' dashboard buttons
2024-06-05 16:48:24 +02:00
Dieter Plaetinck
68799b0112
log meal: separate confirmation page with portion choice
2024-05-27 23:53:22 +02:00
Dieter Plaetinck
cb17e48f8e
tiny nutrition fixes
2024-04-10 19:03:22 +02: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
Roland Geider
d51b6d7d87
Merge branch 'master' into feat/data-persistence
...
# Conflicts:
# lib/main.dart
# lib/providers/exercises.dart
# lib/widgets/workouts/day.dart
# pubspec.lock
# pubspec.yaml
2024-01-09 15:37:48 +01:00
Roland Geider
dd29126acb
Uncomment setLogEnabled
...
This was making problems when running the application as a flatpak under linux
See #424
2024-01-07 17:28:25 +01:00
Roland Geider
c5cbb4f851
Rework exercise database
...
This is now separated into individual tables and methods so that they can be
tested separately
2023-12-26 17:03:20 +01:00
Roland Geider
65ba2275ae
Run "dart format --line-length=100 ." to make the diff smaller
2023-12-23 16:40:05 +01:00
Abhishek Saini
c69c639fac
fix(drift): built a model for exercise and fixes in fromSql type converter
2023-12-23 14:28:38 +05:30
Abhishek Saini
82a49f6cac
Merge branch 'master' into feat/data-persistence
2023-11-18 23:23:30 +05:30
Roland Geider
c514842b59
Lint the code with a line length of 100
...
This makes it easier to understand the diffs
2023-11-16 21:36:21 +01:00
Abhishek Saini
582bc611a4
feat(drift-database): Shifted from shared prefs to drift for Exercises
2023-11-16 22:34:40 +05:30
Roland Geider
969c643e5c
Update theme
...
This is now created with flex_color_scheme, which makes tweaking this
much much easier
2023-11-10 19:07:14 +01:00
Miroslav Mazel
420b06a661
Organize imports / remove unnecessary ones
2023-11-05 23:22:34 +01:00
Roland Geider
43d61ecfbf
Merge branch 'master' into feature/material-3
...
# Conflicts:
# pubspec.yaml
2023-08-10 07:17:27 +02:00
Github-actions
f58f61e4bc
Automatic linting
2023-06-26 14:53:02 +00:00
Roland Geider
c0bc830bb9
Merge branch 'master' into google_play_dependency
2023-06-20 11:06:16 +02:00
artchiee
5ec43b65ef
bar code scanner is replaced
2023-06-19 18:33:29 +01:00
Roland Geider
fcead12888
Remove manual workaround for missing locales
2023-06-05 17:26:03 +02:00
Roland Geider
8478ec4841
Add high contrast themes as well
2023-04-23 12:55:27 +02:00
Roland Geider
8de51abb9a
Remove more hard coded colors and use the theme data
2023-04-22 14:30:31 +02:00
Roland Geider
80ec0e80fb
Start moving to material 3
...
Also dark mode at last
2023-04-22 13:38:13 +02:00
Roland Geider
fa8dd7e46f
Fix merge errors
2023-03-20 14:19:29 +01:00
Roland Geider
b9d6641c87
Pass BaseProvider as an argument to workout provider
2023-02-11 13:45:42 +01:00
Roland Geider
aae6632963
Only check that the language code matches
...
Otherwise, both the language code and the country code would need to match
2023-02-09 17:35:45 +01:00
Roland Geider
92ee141e4a
Workaround for when the device has no supported languages installed
...
Previously, this would take the first entry in the supported locales list,
which in our case is Amhraic and is a pretty weird way to chose a locale anyway.
We now default to English.
Closes #127
2023-02-07 22:03:09 +01:00