• Todd Volkert's avatar
    Add ConstrainedLayoutBuilder.updateShouldRebuild() (#136691) · 37da62a6
    Todd Volkert authored
    This method controls whether the builder needs to be called again again even if the layout constraints are the same.
    
    By default, the builder will always be called when the widget is updated because the logic in the callback might have changed. However, there are cases where subclasses of ConstrainedLayoutBuilder know that certain property updates only affect paint and not build. In these cases, we lack a way of expressing that the builder callback is not needed -- and we end up doing superfluous work.
    
    This PR gives subclasses the ability to know exactly when the callback needs to be called and when it can be skipped.
    37da62a6
Name
Last commit
Last update
..
animation Loading commit data...
cupertino Loading commit data...
foundation Loading commit data...
gestures Loading commit data...
material Loading commit data...
painting Loading commit data...
physics Loading commit data...
rendering Loading commit data...
scheduler Loading commit data...
semantics Loading commit data...
services Loading commit data...
widgets Loading commit data...
dart_plugin_registrant.dart Loading commit data...