You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since child is not passed to the ValueListenableBuilder, it will always be null. There is no point in making placeholderBuilder and errorBuilder callbacks take an extra argument.
The text was updated successfully, but these errors were encountered:
Good catch! Should we provide the child to the ValueListenable builder? Or should we omit the argument?
I would go with adding the child to the value listenable builder, since then you can optimize rebuilds for that child, if desired.
The child argument of ValueListenableBuilder is there for performance reasons, so I think we should use it.
This is what the
build
method of theMobileScanner
widget looks like:Since
child
is not passed to theValueListenableBuilder
, it will always benull
. There is no point in makingplaceholderBuilder
anderrorBuilder
callbacks take an extra argument.The text was updated successfully, but these errors were encountered: