M3EFabMenu class
A Material 3 Expressive FAB menu.
Items stay hidden while closed. On open the FAB shrinks (80→56) and morphs rounded-square ↔ circle while menu pills appear at ~50% width and spring from the position edge. On close, items hide immediately and the FAB grows back to the large square.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- M3EFabMenu
Constructors
-
M3EFabMenu({required List<
M3EFabMenuItem> items, Widget icon = const Icon(M3EIcons.add), Widget closeIcon = const Icon(M3EIcons.close), Widget? expandIcon, Widget? collapseIcon, M3EFabColor color = M3EFabColor.primary, M3EFabSize size = M3EFabSize.medium, M3EFabMenuPosition position = M3EFabMenuPosition.right, Key? key}) -
M3EFabMenu.
const
Properties
- closeIcon → Widget
-
Open-state FAB icon (alias for collapseIcon when that is null).
final
- collapseIcon → Widget?
-
Icon when the menu is open. Defaults to closeIcon (close).
final
- color → M3EFabColor
-
color.
final
- expandIcon → Widget?
-
Icon when the menu is closed. Defaults to icon (add).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → Widget
-
Closed-state FAB icon (alias for expandIcon when that is null).
final
-
items
→ List<
M3EFabMenuItem> -
items.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- position → M3EFabMenuPosition
-
Which horizontal corner the open FAB morphs toward, and from which edge
menu items grow. Defaults to M3EFabMenuPosition.right.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → M3EFabSize
-
size.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< M3EFabMenu> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited