Refactor wrong method name
parent
c480f83f6d
commit
7689de73ac
|
@ -19,7 +19,7 @@ class TasksProvider extends ChangeNotifier {
|
||||||
initTasks();
|
initTasks();
|
||||||
}
|
}
|
||||||
|
|
||||||
void setTaksDone(Pages taskName) {
|
void setTaskDone(Pages taskName) {
|
||||||
tasks[taskName] = false;
|
tasks[taskName] = false;
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,7 +33,7 @@ class MoodForm extends StatelessWidget {
|
||||||
),
|
),
|
||||||
SubmitFormButton(
|
SubmitFormButton(
|
||||||
submitCallback: inputModel.saveMood,
|
submitCallback: inputModel.saveMood,
|
||||||
updateTasks: () => tasksModel.setTaksDone(Pages.mood),
|
updateTasks: () => tasksModel.setTaskDone(Pages.mood),
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
|
|
|
@ -33,7 +33,7 @@ class RelapseForm extends StatelessWidget {
|
||||||
),
|
),
|
||||||
SubmitFormButton(
|
SubmitFormButton(
|
||||||
submitCallback: inputModel.saveRelapse,
|
submitCallback: inputModel.saveRelapse,
|
||||||
updateTasks: () => tasksModel.setTaksDone(Pages.mood),
|
updateTasks: () => tasksModel.setTaskDone(Pages.mood),
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
|
|
|
@ -47,7 +47,7 @@ class SleepForm extends StatelessWidget {
|
||||||
),
|
),
|
||||||
SubmitFormButton(
|
SubmitFormButton(
|
||||||
submitCallback: () => inputModel.saveSleep(wokeUpKey, sleptKey),
|
submitCallback: () => inputModel.saveSleep(wokeUpKey, sleptKey),
|
||||||
updateTasks: () => tasksModel.setTaksDone(Pages.mood),
|
updateTasks: () => tasksModel.setTaskDone(Pages.mood),
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue