Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions sdk/python/packages/flet/src/flet/controls/material/icon_button.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,16 @@ class IconButton(LayoutControl, AdaptiveControl):
Called when a user clicks this button.
"""

on_long_press: Optional[ControlEventHandler["IconButton"]] = None
"""
Called when the button is long-pressed.
"""

on_hover: Optional[ControlEventHandler["IconButton"]] = None
"""
Called when the button is hovered.
"""

on_focus: Optional[ControlEventHandler["IconButton"]] = None
"""
Called when this button has received focus.
Expand Down