This commit is contained in:
Hillel Coren 2018-12-13 21:16:23 +02:00
parent 43977220f2
commit dc1472570c
1 changed files with 7 additions and 5 deletions

View File

@ -71,9 +71,11 @@ class _ProjectEditState extends State<ProjectEdit> {
}
void _onChanged() {
final project = widget.viewModel.project.rebuild(
(b) => b..name = _nameController.text.trim(),
);
final project = widget.viewModel.project.rebuild((b) => b
..name = _nameController.text.trim()
..budgetedHours = parseDouble(_hoursController.text)
..taskRate = parseDouble(_taskRateController.text)
..privateNotes = _privateNotesController.text.trim());
if (project != widget.viewModel.project) {
widget.viewModel.onChanged(project);
}