• Amir Hardon's avatar
    Make AndroidView take gesture recognizer factories. (#21657) · 707eaf5e
    Amir Hardon authored
    Before this PR AndroidView's gestureRecognizers field was a list of
    gesture recognizers. This was problematic as when the widget was rebuilt
    with the same gesture recognizer instances we would try to re-join the
    recognizers to a gesture arena team and crash (as a OneSeqeunceGestureRecognizer
    team can only be set once).
    
    With this change, we instead take a set of factories.
    This allows AndroidView to create the gesture recognizers just before
    adding them to the team, and thus be sure that they are only added once to a
    team.
    
    The factories are identified by the type of the object they create, this
    allows AndroidView to know when it is given an equivalent set of gesture
    recognizer factories, and do nothing in that case.
    707eaf5e
Name
Last commit
Last update
..
README.md Loading commit data...
annotations.dart Loading commit data...
assertions.dart Loading commit data...
basic_types.dart Loading commit data...
binding.dart Loading commit data...
change_notifier.dart Loading commit data...
collections.dart Loading commit data...
consolidate_response.dart Loading commit data...
debug.dart Loading commit data...
diagnostics.dart Loading commit data...
isolates.dart Loading commit data...
key.dart Loading commit data...
licenses.dart Loading commit data...
node.dart Loading commit data...
observer_list.dart Loading commit data...
platform.dart Loading commit data...
print.dart Loading commit data...
profile.dart Loading commit data...
serialization.dart Loading commit data...
synchronous_future.dart Loading commit data...
unicode.dart Loading commit data...