Commit Graph

535 Commits

Author SHA1 Message Date
Roland Geider
d0ec542801 Add methods to allow editing a workout day 2021-05-24 11:58:54 +02:00
Roland Geider
c35587cceb Bump versions 2021-05-24 10:37:16 +02:00
Roland Geider
45a404586e Move workout detail switcher to toggle buttons
This makes it more obvious that the page is part of the current workout
2021-05-21 12:39:29 +02:00
Roland Geider
0b29ac1405 Simplify workout widgets by moving the SliverList to the screen 2021-05-21 11:54:41 +02:00
Roland Geider
3e61acc501 Translated using Weblate (German)
Currently translated at 100.0% (122 of 122 strings)

Translation: wger Workout Manager/Mobile App
Translate-URL: https://hosted.weblate.org/projects/wger/mobile/de/
2021-05-19 22:44:21 +02:00
Roland Geider
31edbb3b48 Loop through all result pages when loading logs 2021-05-19 22:34:36 +02:00
Roland Geider
e45115d26e Make RiR form element a slider
This allows the user to select the correct value faster
2021-05-19 21:35:07 +02:00
Roland Geider
bd1d75caec Make the quick jump exercise list scrollable
Otherwise, this could overflow when there are too many exercises for a
single day
2021-05-19 21:22:04 +02:00
Roland Geider
be0b1bf157 Add missing options for RiR values 2021-05-19 16:07:11 +02:00
Roland Geider
980b5e0526 Cleanup unneeded widgets in gym mode 2021-05-19 14:58:26 +02:00
Roland Geider
8474d2d598 Allow the user to jump to the different exercises in the gym mode 2021-05-19 14:13:04 +02:00
Roland Geider
83202cedb0 If the user cancels the time picker, null is returned 2021-05-19 14:00:05 +02:00
Roland Geider
9ce8632dcc Move the close button to the top left corner in gym mode
This is a more standard behaviour (and the system's back button also leaves the
gym mode anyway)
2021-05-19 12:29:36 +02:00
Roland Geider
b915c764ef Don't check AppLocalizations for null values
This is not needed in flutter 2.2 anymore
2021-05-19 11:50:43 +02:00
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