This pull request makes intake entries editable. It is possible to set the amount (g/ml) of an intake entry by clicking on it.
Changes
Opens dialog when simple-tapping on an intake entry in home menu
Updates the entry in the database layer accordingly
Only allow users to enter numbers on intake amount
Related Issue
Closes feature request #36.
Additional Notes
In method updateIntake, I used a map<string, dynamic> as a data structure. However it might be better to use a DTO here, see comments. What do you think?
Description
This pull request makes intake entries editable. It is possible to set the amount (g/ml) of an intake entry by clicking on it.
Changes
Related Issue
Closes feature request #36.
Additional Notes
In method updateIntake, I used a map<string, dynamic> as a data structure. However it might be better to use a DTO here, see comments. What do you think?