FPortal constructor
const
FPortal({
- required Widget portalBuilder(
- BuildContext context,
- OverlayPortalController controller
- OverlayPortalController? controller,
- FPortalConstraints constraints = const FPortalConstraints(),
- AlignmentGeometry portalAnchor = .topCenter,
- AlignmentGeometry childAnchor = .bottomCenter,
- FPortalSpacing spacing = .zero,
- FPortalOverflow overflow = .flip,
- Offset offset = .zero,
- EdgeInsetsGeometry? viewInsets,
- Widget? barrier,
- ValueWidgetBuilder<
OverlayPortalController> builder = _builder, - Widget? child,
- Key? key,
Implementation
const FPortal({
required this.portalBuilder,
this.controller,
this.constraints = const FPortalConstraints(),
this.portalAnchor = .topCenter,
this.childAnchor = .bottomCenter,
this.spacing = .zero,
this.overflow = .flip,
this.offset = .zero,
this.viewInsets,
this.barrier,
this.builder = _builder,
this.child,
super.key,
}) : assert(builder != _builder || child != null, 'Either builder or child must be provided');