FPopover constructor

FPopover({
  1. required FPopoverController controller,
  2. required ValueWidgetBuilder<FPopoverStyle> followerBuilder,
  3. required Widget target,
  4. FPopoverStyle? style,
  5. Offset shift(
    1. Size,
    2. FPortalTarget,
    3. FPortalFollower
    ) = FPortalFollowerShift.flip,
  6. bool hideOnTapOutside = true,
  7. String? semanticLabel,
  8. bool autofocus = false,
  9. FocusNode? focusNode,
  10. ValueChanged<bool>? onFocusChange,
  11. Alignment? followerAnchor,
  12. Alignment? targetAnchor,
  13. Key? key,
})

Creates a popover.

Implementation

FPopover({
  required this.controller,
  required this.followerBuilder,
  required this.target,
  this.style,
  this.shift = FPortalFollowerShift.flip,
  this.hideOnTapOutside = true,
  this.semanticLabel,
  this.autofocus = false,
  this.focusNode,
  this.onFocusChange,
  Alignment? followerAnchor,
  Alignment? targetAnchor,
  super.key,
})  : followerAnchor = followerAnchor ?? _platform.follower,
      targetAnchor = targetAnchor ?? _platform.target;