• James Robinson's avatar
    Teach event system about disposition and make 'consumed' disposition terminal · 53163f8b
    James Robinson authored
    This introduces the notion of event disposition and allows event
    targets (widgets and render objects) to consume events that should not
    be processed further. This is needed by the Switch component in the
    Drawer in the stocks example. The Switch is embedded in a DrawerItem.
    The Switch handles the gesture tap event to toggle its state and should
    handle pointer events to allow swiping and draw its own radial
    reaction. The DrawerItem also handles gesture taps to allow toggling
    the switch value when tapping anywhere on the drawer and to draw its
    own ink splash. When tapping on the switch, both the switch's render
    object and the DrawerItem's listener are in the event dispatch path.
    The Switch needs to signal in some fashion that it consumed the event
    so the DrawerItem does not also try to toggle the switch's state.
    53163f8b
Name
Last commit
Last update
..
README.md Loading commit data...
animated_component.dart Loading commit data...
animated_container.dart Loading commit data...
basic.dart Loading commit data...
block_viewport.dart Loading commit data...
button_base.dart Loading commit data...
card.dart Loading commit data...
checkbox.dart Loading commit data...
default_text_style.dart Loading commit data...
dialog.dart Loading commit data...
dismissable.dart Loading commit data...
drawer.dart Loading commit data...
drawer_divider.dart Loading commit data...
drawer_header.dart Loading commit data...
drawer_item.dart Loading commit data...
flat_button.dart Loading commit data...
floating_action_button.dart Loading commit data...
focus.dart Loading commit data...
icon.dart Loading commit data...
icon_button.dart Loading commit data...
ink_well.dart Loading commit data...
material.dart Loading commit data...
material_button.dart Loading commit data...
modal_overlay.dart Loading commit data...
navigator.dart Loading commit data...
popup_menu.dart Loading commit data...
popup_menu_item.dart Loading commit data...
radio.dart Loading commit data...
raised_button.dart Loading commit data...
scaffold.dart Loading commit data...
scrollable.dart Loading commit data...
snack_bar.dart Loading commit data...
switch.dart Loading commit data...
tabs.dart Loading commit data...
task_description.dart Loading commit data...
theme.dart Loading commit data...
toggleable.dart Loading commit data...
tool_bar.dart Loading commit data...
transitions.dart Loading commit data...
widget.dart Loading commit data...
widgets.md Loading commit data...