Commit Graph

309 Commits

Author SHA1 Message Date
Roland Geider
005e719c78 Move body weight chart to own widget 2020-12-29 21:28:42 +01:00
Roland Geider
373cfb0dfd Add exercise set placeholder form 2020-12-29 13:22:47 +01:00
Roland Geider
3c505db785 Add exercise type ahead to set form 2020-12-28 19:34:39 +01:00
Roland Geider
c441390e84 Remove commented code 2020-12-28 18:36:23 +01:00
Roland Geider
8ad2cfacfe Move workout day form to own file 2020-12-28 12:45:38 +01:00
Roland Geider
7d78a77500 Refactor the base provider
The http client is now passed as a constructor argument and de-clutters all the
functions, while still allowing for mocking.
2020-12-27 12:51:40 +01:00
Roland Geider
4c42f83a11 Chart the values for the nutritional diary 2020-12-27 12:00:29 +01:00
Roland Geider
5f4a25e9ec Add nutritional values calculations to diary 2020-12-27 11:22:46 +01:00
Roland Geider
4e23365f95 Show the plan's nutritional values 2020-12-26 13:11:54 +01:00
Roland Geider
b18e90b249 Allow to log meals all at once 2020-12-26 12:56:53 +01:00
Roland Geider
c564f80a83 Add chart to nutritional plan showing macronutrients 2020-12-25 13:12:22 +01:00
Roland Geider
464a4c6bc8 Delete meal items on long press 2020-12-25 00:40:35 +01:00
Roland Geider
8b2a150e5d Set isScrollControlled to true
This makes the bottom sheet take up all the available space. Still needs to be
tweaked because now all the form elements are at the top of the screen, which is
more difficult to reach.
2020-12-25 00:27:10 +01:00
Roland Geider
1cf1cff93a Mute the text for the nutritional values
The user should not see a spreadsheet when he opens the plan
2020-12-24 23:51:21 +01:00
Roland Geider
610cdd7aa0 Rename provider 2020-12-24 23:32:26 +01:00
Roland Geider
e4e4907782 Allow to add meal items to a meal 2020-12-24 16:36:54 +01:00
Roland Geider
b04c0a9a74 Change the info text when something is successfully deleted
It should be obvious from the context what happened and this also reduces the
number of strings that have to be translated later.
2020-12-23 13:20:26 +01:00
Roland Geider
63016f655e Deleting meals works now
I am still now completely sure about whether this is the correct architecture
with the providers. Time will tell I guess.
2020-12-23 13:08:04 +01:00
Roland Geider
bf8714dae5 Calculate nutritional values for a meal item 2020-12-23 11:27:50 +01:00
Roland Geider
cd6dc9a1b3 Extract widget 2020-12-23 10:48:53 +01:00
Roland Geider
99d1412a37 More work on nutritional plans widgets 2020-12-22 21:27:25 +01:00
Roland Geider
b29436d1e3 Fun with TimeOfDay 2020-12-22 12:54:47 +01:00
Roland Geider
966d5d54d6 Output plan ingredients 2020-12-21 23:41:57 +01:00
Roland Geider
64bce37250 Show meal content 2020-12-21 21:07:50 +01:00
Roland Geider
58d131b31a Some more work on the nutritional plans 2020-12-21 20:47:18 +01:00
Roland Geider
7e8b9090c6 Add detail screen for nutritional plans 2020-12-21 14:19:27 +01:00
Roland Geider
f1533b4b8d Move less used options to the bottom of the menu 2020-12-06 22:47:18 +01:00
Roland Geider
1c9d0ab7f6 Add copyright notice to all files 2020-12-06 17:14:50 +01:00
Roland Geider
3dd2197b34 Add form to add a description to new nutritional plans 2020-12-06 16:56:42 +01:00
Roland Geider
f84ddcad78 Show error message when adding weight entries doesn't work 2020-12-05 12:52:00 +01:00
Roland Geider
a63a4e7544 Add chart to weight screen 2020-12-04 19:42:34 +01:00
Roland Geider
f87505fc79 Make workout day header dismissible, with placeholder actions 2020-11-28 12:15:29 +01:00
Roland Geider
ace3e8bfe6 Add about dialog placeholder 2020-11-27 22:16:19 +01:00
Roland Geider
4f1e0b8b15 Commit current state of set editing widget 2020-11-27 20:17:02 +01:00
Roland Geider
9589c0e9c4 Update button names 2020-11-27 20:16:31 +01:00
Roland Geider
8c247f70d9 Add a bit of background color to workout day header 2020-11-27 15:55:02 +01:00
Roland Geider
2a9d0ce0e4 Add placeholder dialogs 2020-11-27 12:27:28 +01:00
Roland Geider
1e0b0110f6 Make the whole workout content scrollable 2020-11-27 11:54:47 +01:00
Roland Geider
826f9ef7e9 Rename widget 2020-11-27 11:51:12 +01:00
Roland Geider
2a3dcb6ff6 Add logic to add days to workout plan 2020-11-27 11:48:39 +01:00
Roland Geider
91ccf047a0 Ask before deleting a workout 2020-11-21 23:13:00 +01:00
Roland Geider
a00ac1afdf Allow editing the workout name when creating one 2020-11-21 21:01:30 +01:00
Roland Geider
7f8ecfe770 Add provider and screen for body weight entries 2020-11-21 11:44:29 +01:00
Roland Geider
31af3bf95f Add overview screen and serialization files for nutritional plans 2020-11-18 23:25:56 +01:00
Roland Geider
5115e4726e Create dummy workouts from overview 2020-11-18 18:55:18 +01:00
Roland Geider
e92caa8eae More work on workout serialization
Also, it is now possible to delete workouts from the DB
2020-11-18 14:13:22 +01:00
Roland Geider
9bc9c4df2f Start saving all exercises, muscles, etc to a cache 2020-11-15 17:26:40 +01:00
Roland Geider
cf877764bf Move workout_plan.dart to models folder 2020-11-12 23:08:14 +01:00
Roland Geider
24a55e0436 Use new data structure for exercise images 2020-11-11 14:25:57 +01:00
Roland Geider
9dd20cd000 Show exercise images
The data structure from the server needs to be streamlined
2020-11-09 20:17:33 +01:00