• Ian Hickson's avatar
    LayoutBuilder + GlobalKey + setState assert (#6068) · 78c74116
    Ian Hickson authored
    This silences an assertion that fired when reparenting a widget with a
    global key inside a LayoutBuilder callback when that callback also
    happened to call setState (directly or indirectly) on that widget.
    
    Normally such setStates are considered ok since we know we haven't
    cleaned that subtree yet, but we were not correctly handling the case
    where the list needed resorting in that situation.
    78c74116
layout_builder_and_global_keys_test.dart 1.55 KB