FPopoverMenu.tappable constructor
const
FPopoverMenu.tappable({
- required Widget child,
- FPopoverController? controller,
- FPopoverMenuStyle? style,
- FTileDivider divider = FTileDivider.full,
- Alignment childAnchor = Alignment.bottomCenter,
- Offset shift() = 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.
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 GestureDetector
s.
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;