FabMenu constructor
const
FabMenu({})
Creates a FabMenu widget.
The child
parameter is required and specifies the content of the button.
The items
parameter specifies the menu items to display when pressed.
Example:
FabMenu(
child: Text("Options"),
leading: Icon(Icons.more_vert),
items: [
MenuItem(
label: "New Document",
onPressed: () => createNewDocument(),
icon: Icon(Icons.description),
),
MenuItem(
label: "New Folder",
onPressed: () => createNewFolder(),
icon: Icon(Icons.folder),
),
],
)
Implementation
const FabMenu(
{super.key, required this.child, this.leading, this.items = const []});