Skip to content
This repository has been archived by the owner on Feb 17, 2020. It is now read-only.

change _build* to rather use stateless widgets #62

Open
rickspencer3 opened this issue Dec 12, 2018 · 0 comments
Open

change _build* to rather use stateless widgets #62

rickspencer3 opened this issue Dec 12, 2018 · 0 comments

Comments

@rickspencer3
Copy link
Contributor

.//lib/src/document_form.dart: List _buildFormFields(BuildContext context) {
.//lib/src/document_list_view.dart: List _buildTitleRowChildren(Document doc) {
.//lib/src/document_list_view.dart: Widget _buildSubtitle(Document doc) {

Using _build* functions in this matter is considered an anti-pattern. It is just as easy to create stateless widgets. The idea is that the stateless widgets will just be moved around in the widget tree, and won;t be rebuilt unless needed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant