FPopover.tappable constructor
FPopover.tappable({
- required ValueWidgetBuilder<
FPopoverStyle> followerBuilder, - required Widget target,
- FPopoverController? controller,
- FPopoverStyle? style,
- Offset shift() = FPortalFollowerShift.flip,
- bool hideOnTapOutside = true,
- bool ignoreDirectionalPadding = true,
- String? semanticLabel,
- bool autofocus = false,
- FocusNode? focusNode,
- ValueChanged<
bool> ? onFocusChange, - Alignment? followerAnchor,
- Alignment? targetAnchor,
- Key? key,
Creates a popover that is automatically shown when the target
is tapped.
It is not recommended for the target
to contain a GestureDetector, such as FButton. This is because only
one GestureDetector
will be called if there are multiple overlapping GestureDetector
s.
Implementation
FPopover.tappable({
required this.followerBuilder,
required this.target,
this.controller,
this.style,
this.shift = FPortalFollowerShift.flip,
this.hideOnTapOutside = true,
this.ignoreDirectionalPadding = true,
this.semanticLabel,
this.autofocus = false,
this.focusNode,
this.onFocusChange,
Alignment? followerAnchor,
Alignment? targetAnchor,
super.key,
}) : followerAnchor = followerAnchor ?? _platform.follower,
targetAnchor = targetAnchor ?? _platform.target,
_tappable = true;