OverflowMenu
Overview
Use the overflow menu component when additional options are available to the user but there is a space constraint.

Widget API
The CTextField widget parameters are identical to the normal TextField widget, however, it also has some extra parameters:
controller
An object that is used to control the menu.
Type:
COverflowMenuControllerDefault: required
items
A list of COverflowMenuItem to display in a column when the menu is open.
Type:
List<COverflowMenuItem>Default: required
child
The child contained by the menu.
Type:
WidgetDefault: required
onOpen
A method called after the menu is open.
Type:
VoidCallback?Default: optional
onClose
A method called after the menu is closed.
Type:
VoidCallback?Default: optional
barrierDismissible
Whether you can close the menu by tapping the barrier.
Type:
boolDefault:
true
menuOffset
The adjustment in the position applied to the menu.
Type:
OffsetDefault:
Offset.zero
size
The size of this menu. It can be regular, sm, or md.
Type:
COverflowMenuSizeDefault:
COverflowMenuSize.md
child
The content of the item.
Type:
WidgetDefault: required
onTap
Called when the item is tapped.
Type:
VoidCallback?Default: optional
enable
Whether the item is enabled or not.
Type:
boolDefault:
true
hasDivider
Whether this item has a divider.
Type:
boolDefault:
false
isDelete
To make this menu item a danger ghost button.
Type:
boolDefault:
false
icon
The icon of the button.
Type:
WidgetDefault: required
items
A list of COverflowMenuItem to display in a column when the menu is open.
Type:
List<COverflowMenuItem>Default: required
enable
Whether the button is enabled or not.
Type:
boolDefault:
true
barrierDismissible
Whether you can close the menu by tapping the barrier.
Type:
boolDefault:
true
onClose
A method called after the menu is closed.
Type:
VoidCallback?Default: optional
onOpen
A method called after the menu is open.
Type:
VoidCallback?Default: optional
menuOffset
The adjustment in the position applied to the menu.
Type:
OffsetDefault:
Offset.zero
size
The size of this menu. It can be regular, sm, or md.
Type:
COverflowMenuSizeDefault:
COverflowMenuSize.md
Example
Last updated