-
Notifications
You must be signed in to change notification settings - Fork 0
Rules of Architecture
Jaewon-Yun edited this page Feb 19, 2025
·
2 revisions
It defines architecture rules for consistent code style.
- When a
widget
needs a number of data to draw, use an object extendingChangeNotifier
and define the name bymodel
. - Do use
Provider
to propagate themodel
when it separates a widget. - The
model
of awidget
should notify listeners (usenotifyListeners
method) whenever its own values are changed.