• Ian Hickson's avatar
    Reset _simulation at the end of a fling (#3435) · 112f2cc3
    Ian Hickson authored
    Also a bit of code cleanup.
    
    The key part of this patch is the addition in `_endScroll` to reset
    `_simulation`. It seems like this was the one place where it's possible
    for us to end the animation but not reset our state. Since we assert
    that are state is coherent, we were hitting asserts when a fling
    finished and then you interacted with the widget again.
    112f2cc3
widget_tester.dart 14.1 KB