Commit Graph

62 Commits

Author SHA1 Message Date
Marvin M
2bc2d472d0 unnecessary_await_in_return 2021-10-08 15:11:45 +02:00
Marvin M
9d479e89b0 const_constructors
info: Prefer const with constant constructors. prefer_const_constructors
2021-10-07 20:40:09 +02:00
Marvin M
923b44ba97 Marked as '@immutable'
This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: WorkoutForm._plan
2021-10-07 19:58:40 +02:00
Marvin M
45a2a5f857 Fixes pt 1 2021-10-01 17:18:17 +02:00
Roland Geider
099a2dad75 Merge branch 'master' into bug-53/Double-displayed-training-plans 2021-09-06 21:38:21 +02:00
Roland Geider
6646640b9c Show set notes on the workout and the gym mode
https://github.com/wger-project/wger/issues/702
2021-07-17 13:25:04 +02:00
Roland Geider
d1a4088708 Merge branch 'M123-dev/issue-48'
# Conflicts:
#	pubspec.lock
#	pubspec.yaml
2021-07-13 17:17:42 +02:00
Roland Geider
568a165180 Make more obvious that exercises are added together into a superset
Closes #56
2021-07-13 17:13:19 +02:00
Marvin M
cc7ce86702 Update forms.dart 2021-07-08 15:55:02 +02:00
Marvin M
3671b62d79 Update forms.dart 2021-07-08 11:50:28 +02:00
Marvin M
96527ad25e Changed workout name + workout day name restriction
https://github.com/wger-project/flutter/issues/48
And it autoformatted
2021-07-08 11:41:43 +02:00
Arun Muralidharan
7eb26da243 Reorder Sets
Now updates order upon deletion as well. Order will be set to length of sets upon adding a new one.
2021-06-28 21:56:25 +02:00
Github-actions
c877e436b0 Automatic linting 2021-06-22 21:10:15 +00:00
Github-actions
7492b53c67 Automatic linting 2021-06-20 13:09:24 +00:00
Roland Geider
d0ec542801 Add methods to allow editing a workout day 2021-05-24 11:58:54 +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
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
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
ee2e6ac671 Give providers a consistent name 2021-05-11 12:10:53 +02:00
Roland Geider
6ab3e26db4 Rename workout description to name 2021-05-06 13:18:32 +02:00
Roland Geider
0673cbf3ce Correctly handle navigation when adding or editing plans 2021-04-28 11:24:23 +02:00
Roland Geider
414f2eb234 Show exercise details from workout page 2021-04-28 10:26:47 +02:00
Roland Geider
f67cb1797b Calculates reps for a set locally
This saves us unneeded round trips to the server

See #14
2021-04-24 13:58:14 +02:00
Roland Geider
3c21650003 Translate week day names in workout screens 2021-04-24 12:31:08 +02:00
Roland Geider
2424199e09 Add tests for PlanForm 2021-04-23 12:47:12 +02:00
Roland Geider
1b7b78c640 Add tests for DayFormWidget 2021-04-23 11:32:00 +02:00
Roland Geider
3c4ac3861d Test the WorkoutForm form 2021-04-22 18:35:05 +02:00
Roland Geider
e76ba740c8 Use setter to save ID and object references 2021-04-14 12:21:40 +02:00
Roland Geider
6275f54b33 Improve validator for set form
Check that the user has entered at least the repetitions or the weight for at
least one set
2021-04-13 12:58:37 +02:00
Roland Geider
ad7507c8b7 Update license header as well 2021-04-13 10:28:15 +02:00
Roland Geider
e3dc898a6e Return created workout and nutrition plan 2021-04-10 13:22:16 +02:00
Roland Geider
e60236042b Remove more hard coded strings 2021-04-10 13:22:15 +02:00
Roland Geider
0b8c8ce3de Correctly fetch the synthetic repetitions when creating a workout 2021-04-09 18:18:57 +02:00
Roland Geider
20ed6966b5 Allow setting the weight and repetition units in gym mode
(still needs to get a better UX)
2021-04-09 18:18:57 +02:00
Roland Geider
7e28c06615 Remove dart analysis warnings 2021-04-09 18:18:57 +02:00
Roland Geider
ec2325b3e2 Redirect to the correct screen after editing a workout plan 2021-04-08 13:09:28 +02:00
Roland Geider
ddad869fc9 Don't use the returned workout plan when editing
This gets rid of all attached objects such as days
2021-04-08 13:04:11 +02:00
Roland Geider
1d1d62d950 Search ingredients and exercises in the current locale 2021-04-08 12:46:36 +02:00
Roland Geider
5557686ff7 Polish the gym mode and other widgets 2021-04-06 20:41:44 +02:00
Roland Geider
8326fe2aee Rename some methods for more consistency 2021-04-05 19:00:31 +02:00
Roland Geider
8f7fb744aa Make form for workout day scrollable 2021-04-05 18:36:14 +02:00
Roland Geider
9e8d2e055a Polish the add set form 2021-04-05 17:20:46 +02:00
Roland Geider
110579aeb7 Some cleanup work on exercise images 2021-04-02 21:01:47 +02:00
Roland Geider
ba0fa896e1 Remove hard coded strings from forms 2021-04-02 18:00:35 +02:00
Roland Geider
bf9abea7aa Render forms in own scaffold
This eliminates many of the overflow problems from the bottom sheet
2021-04-02 17:35:31 +02:00
Roland Geider
63584fb8f2 Use individual endpoints to load plan data
While this results in way more requests needed, it has the great benefit of using
the same data structure for reading and writing. This saves us a lot of headaches
in the data modelling and we don't have to care that the info endpoints looked a
bit different.
2021-04-01 16:28:35 +02:00
Roland Geider
97829e0408 Add more tests for nutrition and workout plan overview 2021-03-30 13:25:36 +02:00
Roland Geider
ecd2773a87 Upgrade packages and move application to null safety 2021-03-25 22:20:16 +01:00
Roland Geider
d1da745d58 Move form elements to listview to allow for scrolling 2021-03-12 11:45:14 +01:00