Open Lee-BS-AMS opened 3 years ago
Hi, all great resource!
Little confused by this page https://github.com/brianegan/flutter_architecture_samples/blob/master/change_notifier_provider/lib/edit_todo_screen.dart
It appears to be updating and passing changes back using a callback rather than provider. Any reason for this?
widget.onEdit(_taskController.text, _noteController.text);
Hi, all great resource!
Little confused by this page https://github.com/brianegan/flutter_architecture_samples/blob/master/change_notifier_provider/lib/edit_todo_screen.dart
It appears to be updating and passing changes back using a callback rather than provider. Any reason for this?
widget.onEdit(_taskController.text, _noteController.text);