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:
Example
COverflowMenu(
controller: controller,
child: CButton(
label: 'Menu Button',
onTap: () {
controller.open()
},
),
items: [
COverflowMenuItem(
child: CText(data:'hello'),
onTap: (){ }
),
COverflowMenuItem(
isDelete: true,
child: CText(data:'hello'),
onTap: (){ }
),
],
);
// -----
COverflowMenuButton(
icon: Icon(CIcons.add),
items: [
COverflowMenuItem(
child: CText(data:'hello'),
onTap: (){ }
),
COverflowMenuItem(
isDelete: true,
child: CText(data:'hello'),
onTap: (){ }
),
],
);
Last updated
Was this helpful?