FPopoverMenu.tappable constructor

const FPopoverMenu.tappable({
  1. required List<FTileGroupMixin<FTileMixin>> menu,
  2. required Widget child,
  3. FPopoverController? controller,
  4. FPopoverMenuStyle? style,
  5. FTileDivider divider = FTileDivider.full,
  6. Alignment menuAnchor = Alignment.topCenter,
  7. Alignment childAnchor = Alignment.bottomCenter,
  8. Offset shift(
    1. Size,
    2. FPortalTarget,
    3. FPortalFollower
    ) = FPortalFollowerShift.flip,
  9. bool hideOnTapOutside = true,
  10. bool ignoreDirectionalPadding = true,
  11. String? semanticLabel,
  12. bool autofocus = false,
  13. FocusNode? focusNode,
  14. ValueChanged<bool>? onFocusChange,
  15. Key? key,
})

Creates a menu that is automatically shown when the child is tapped.

It is not recommended for the child to contain a GestureDetector, such as FButton. This is because only one GestureDetector will be called if there are multiple overlapping GestureDetectors.

Implementation

const FPopoverMenu.tappable({
  required this.menu,
  required this.child,
  this.controller,
  this.style,
  this.divider = FTileDivider.full,
  this.menuAnchor = Alignment.topCenter,
  this.childAnchor = Alignment.bottomCenter,
  this.shift = FPortalFollowerShift.flip,
  this.hideOnTapOutside = true,
  this.ignoreDirectionalPadding = true,
  this.semanticLabel,
  this.autofocus = false,
  this.focusNode,
  this.onFocusChange,
  super.key,
}) : _tappable = true;