FPopoverMenu class

A popover menu displays a menu in a portal aligned to a child.

See:

Inheritance

Constructors

FPopoverMenu({required FPopoverController? controller, required List<FTileGroupMixin<FTileMixin>> menu, required Widget child, FPopoverMenuStyle? style, FTileDivider divider = FTileDivider.full, Alignment menuAnchor = Alignment.topCenter, Alignment childAnchor = Alignment.bottomCenter, Offset shift(Size, FPortalTarget, FPortalFollower) = FPortalFollowerShift.flip, bool hideOnTapOutside = true, bool ignoreDirectionalPadding = true, String? semanticLabel, bool autofocus = false, FocusNode? focusNode, ValueChanged<bool>? onFocusChange, Key? key})
Creates a menu that only shows the menu when the controller is manually toggled.
const
FPopoverMenu.tappable({required List<FTileGroupMixin<FTileMixin>> menu, required Widget child, FPopoverController? controller, FPopoverMenuStyle? style, FTileDivider divider = FTileDivider.full, Alignment menuAnchor = Alignment.topCenter, Alignment childAnchor = Alignment.bottomCenter, Offset shift(Size, FPortalTarget, FPortalFollower) = FPortalFollowerShift.flip, bool hideOnTapOutside = true, bool ignoreDirectionalPadding = true, String? semanticLabel, bool autofocus = false, FocusNode? focusNode, ValueChanged<bool>? onFocusChange, Key? key})
Creates a menu that is automatically shown when the child is tapped.
const

Properties

autofocus bool
True if the menu will be selected as the initial focus when no other node in its scope is currently focused.
final
child Widget
The child.
final
childAnchor Alignment
The anchor of the child to which the menuAnchor is aligned to.
final
controller FPopoverController?
The controller that shows and hides the menu. It initially hides the menu.
final
divider FTileDivider
The divider between tile groups. Defaults to FTileDivider.full.
final
focusNode FocusNode?
An optional focus node to use as the focus node for the menu.
final
hashCode int
The hash code for this object.
no setterinherited
hideOnTapOutside bool
True if the popover is hidden when tapped outside of it. Defaults to true.
final
ignoreDirectionalPadding bool
True if the menu should ignore the cross-axis padding of the anchor when aligning to it. Defaults to true.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
The menu.
final
The anchor of the menu to which the childAnchor is aligned to.
final
onFocusChange ValueChanged<bool>?
Handler called when the focus changes.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
semanticLabel String?
The menu's semantic label used by accessibility frameworks.
final
shift Offset Function(Size, FPortalTarget, FPortalFollower)
The shifting strategy used to shift a menu when it overflows out of the viewport. Defaults to FPortalFollowerShift.flip.
final
style FPopoverMenuStyle?
The popover menu's style.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<FPopoverMenu>
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.
override
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}) 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