FPopoverMenu constructor
const
FPopoverMenu({
- required FPopoverController popoverController,
- required Widget child,
- ScrollController? scrollController,
- FPopoverMenuStyle? style,
- double? cacheExtent,
- double maxHeight = double.infinity,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- FTileDivider divider = FTileDivider.full,
- AlignmentGeometry childAnchor = Alignment.bottomCenter,
- FPortalSpacing spacing = const FPortalSpacing(4),
- Offset shift() = FPortalShift.flip,
- Offset offset = Offset.zero,
- Object? groupId,
- FHidePopoverRegion hideOnTapOutside = FHidePopoverRegion.anywhere,
- String? semanticsLabel,
- bool autofocus = false,
- FocusScopeNode? focusNode,
- ValueChanged<
bool> ? onFocusChange, - TraversalEdgeBehavior traversalEdgeBehavior = TraversalEdgeBehavior.closedLoop,
- Key? key,
Creates a menu that only shows the menu when the controller is manually toggled.
Implementation
const FPopoverMenu({
required FPopoverController this.popoverController,
required this.menu,
required this.child,
this.scrollController,
this.style,
this.cacheExtent,
this.maxHeight = double.infinity,
this.dragStartBehavior = DragStartBehavior.start,
this.divider = FTileDivider.full,
this.menuAnchor = Alignment.topCenter,
this.childAnchor = Alignment.bottomCenter,
this.spacing = const FPortalSpacing(4),
this.shift = FPortalShift.flip,
this.offset = Offset.zero,
this.groupId,
this.hideOnTapOutside = FHidePopoverRegion.anywhere,
this.semanticsLabel,
this.autofocus = false,
this.focusNode,
this.onFocusChange,
this.traversalEdgeBehavior = TraversalEdgeBehavior.closedLoop,
super.key,
}) : _automatic = false;