Commit Graph

521 Commits

Author SHA1 Message Date
Roland Geider
d5521082a6 Override the equals operator for workout plan logs
Two logs are considered equal if their content is equal. This is used e.g.
 in the gym mode where we want to have unique values
2021-05-18 22:14:58 +02:00
Roland Geider
68552ea277 Rename conversion functions
This makes it clearer what gets converted to what
2021-05-18 22:14:58 +02:00
Roland Geider
1ea13bb649 Reset the log list when loading the plan
Otherwise every time the user opens a workout, the logs will get added again and
again to the list
2021-05-18 22:14:58 +02:00
Roland Geider
128020e4f6 Change the order of + and - signs in reps and weight
This feels more natural
2021-05-18 22:14:58 +02:00
Roland Geider
d4075953f5 Translated using Weblate (German)
Currently translated at 100.0% (120 of 120 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/de/
2021-05-18 16:12:33 +02:00
Roland Geider
e2ec4669ed Replace dropdown for impression with icons
This makes it more obvious and is easier and faster to use
2021-05-18 16:12:20 +02:00
Roland Geider
7bd1dcaa26 Replace exit icon on gym mode to something more standard 2021-05-18 15:38:24 +02:00
Roland Geider
0b13e8260e Give the add set form a cleanup 2021-05-18 15:00:40 +02:00
Roland Geider
00f00e3e4d Show correct unit dropdowns 2021-05-18 12:11:48 +02:00
Roland Geider
0e7f50c2dd Use font awesome icons for weight 2021-05-18 11:49:10 +02:00
Roland Geider
eaaad4a578 Don't use hard coded strings 2021-05-18 11:48:24 +02:00
Roland Geider
a0d316eef4 Move general settings to option icon
The drawer was removed since it was not providing any real navigation and was
non-standard anyway. Also, some cleanup and slight refactoring.
2021-05-17 21:18:33 +02:00
Roland Geider
b59e30b220 Send app information in the user agent when making requests 2021-05-17 20:06:46 +02:00
Roland Geider
09ed4dc402 Refactor calendar on dashboard
The scrollable list view is now removed. There can't be that many different
types of events for a single day anyway.
2021-05-17 18:22:37 +02:00
Roland Geider
6c4a09bf97 Refactor dashboard.dart
This design should be cleaner and more compact
2021-05-17 18:07:29 +02:00
Roland Geider
4050bec9ed Bump versions 2021-05-17 17:59:47 +02:00
Roland Geider
437dd45dea Remove onTap
The entry wasn't interactive anyway and the inkwell effect could confuse
the users
2021-05-17 16:04:39 +02:00
Roland Geider
98a396d9a5 Add alpha dependabot config for pub for testing 2021-05-17 13:36:40 +02:00
Roland Geider
06ea5a937a Use a regular BottomNavigationBar for the bottom... navigation... bar 2021-05-17 13:19:28 +02:00
Roland Geider
26fc59974d Fetch exercises from server if they are not known locally
This fixes a bug where the workout would not load when an exercise was added to
the database after the exercises were cached locally.
2021-05-17 12:41:19 +02:00
Roland Geider
89b9d6b0c8 Remove link to gallery from workout plans screen
Gallery now has its own icon on the bottom navigation
2021-05-17 12:41:19 +02:00
Roland Geider
aa6e0429e1 Indicate that the system status bar should use light icons 2021-05-16 20:16:06 +02:00
J. Lavoie
7ad467ee7d Translated using Weblate (French)
Currently translated at 100.0% (117 of 117 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/fr/
2021-05-14 01:32:55 +02:00
J. Lavoie
f6b47a3f9b Translated using Weblate (Italian)
Currently translated at 100.0% (117 of 117 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/it/
2021-05-14 01:32:55 +02:00
J. Lavoie
c065e04e02 Translated using Weblate (German)
Currently translated at 100.0% (117 of 117 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/de/
2021-05-14 01:32:55 +02:00
Roland Geider
642b0b8658 No need to fetch all nutritional diary logs on the dashboard
This happens when loading the full plan anyway
2021-05-13 14:10:14 +02:00
Roland Geider
eb3214ab2f Further reduce the number of requests needed to load the plans sparsely 2021-05-13 13:56:16 +02:00
Roland Geider
2468e600c6 Fetch nutritional plan details when visiting the detail page
This helps reduce the data loaded when loading the app the first time

See #14
2021-05-13 13:35:16 +02:00
Roland Geider
bbfdbd45d0 Print dart and flutter versions when building releases 2021-05-13 13:20:06 +02:00
Roland Geider
b90d0a0008 Fetch plan details when visiting the detail page
See #14
2021-05-13 13:19:07 +02:00
Roland Geider
b8e0136540 Clear data when logging out 2021-05-12 14:13:20 +02:00
Roland Geider
c6778a0b0a Merge branch 'user-gallery'
# Conflicts:
#	lib/widgets/workouts/forms.dart
#	test/workout_form_test.dart
2021-05-11 14:08:19 +02:00
Roland Geider
8286abd3e2 Rename workout description to name 2021-05-11 14:06:55 +02:00
Roland Geider
699ea87c5f Add some tests for the picture gallery 2021-05-11 13:44:04 +02:00
Roland Geider
123f64d0eb Add some tests for the picture gallery 2021-05-11 13:18:20 +02:00
Roland Geider
ee2e6ac671 Give providers a consistent name 2021-05-11 12:10:53 +02:00
Roland Geider
4728360149 Move gallery to own provider
Since this has its own icon in the main navigation
2021-05-11 11:48:28 +02:00
Roland Geider
21cfa33978 Fix getter for images in exerciseinfo endpoint
This was renamed recently
2021-05-10 13:55:36 +02:00
Roland Geider
4cb473ebf3 Allow editing existing image entries 2021-05-10 13:24:51 +02:00
Roland Geider
3c96476bdb Show bigger version of image when clicking on it 2021-05-10 00:01:32 +02:00
J. Lavoie
e467cd8b5d Translated using Weblate (French)
Currently translated at 100.0% (111 of 111 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/fr/
2021-05-09 11:11:17 +02:00
J. Lavoie
0404b4c25a Translated using Weblate (French)
Currently translated at 100.0% (4 of 4 strings)

Translation: wger Workout Manager/Play Store
Translate-URL: https://hosted.weblate.org/projects/wger/play-store/fr/
2021-05-09 11:11:16 +02:00
J. Lavoie
be829989bb Translated using Weblate (Italian)
Currently translated at 100.0% (4 of 4 strings)

Translation: wger Workout Manager/Play Store
Translate-URL: https://hosted.weblate.org/projects/wger/play-store/it/
2021-05-09 11:11:16 +02:00
J. Lavoie
f9f61bd697 Translated using Weblate (Italian)
Currently translated at 100.0% (111 of 111 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/it/
2021-05-09 11:11:15 +02:00
J. Lavoie
c41ac2090c Translated using Weblate (German)
Currently translated at 100.0% (4 of 4 strings)

Translation: wger Workout Manager/Play Store
Translate-URL: https://hosted.weblate.org/projects/wger/play-store/de/
2021-05-09 11:11:15 +02:00
J. Lavoie
54ef556d41 Translated using Weblate (German)
Currently translated at 100.0% (111 of 111 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/de/
2021-05-09 11:11:15 +02:00
Roland Geider
7b1c8bb85d Add gallery to main tab navigation, for now 2021-05-08 21:24:05 +02:00
Roland Geider
6e996bad49 Sort dependencies 2021-05-08 21:11:02 +02:00
Roland Geider
964af57f5b Commit generated files 2021-05-08 21:10:54 +02:00
Roland Geider
8839ffa93f Some refactoring of the gallery form 2021-05-08 20:52:03 +02:00