brianegan / brianegan/flutter_architecture_samples

Is the provider +change notifier app really just lifting state up?

Open
#204 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
8.9k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

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);`

Contributor guide

Open the contributing guide

Research direction

Start with change_notifier_provider/lib/edit_todo_screen.dart and the callback invocation shown in the issue. Compare that usage with the surrounding provider example, then clarify why the callback is used or identify the documentation or sample explanation that needs updating; the issue is done when that question has an explicit answer.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.