MinFloatingBase constructor
const
MinFloatingBase({
- Key? key,
- required Widget child,
- MinFloatingController? controller,
- bool? visible,
- bool enabled = true,
- bool openOnTap = true,
- MinUiAnchorSide? side,
- Duration? duration,
- Duration? reverseDuration,
- Curve? curve,
- bool? closeOnTapOutside,
- bool? closeOnEscape,
- bool? closeOnScroll,
- Color? barrierColor,
- bool? useDimmedBarrier,
- MinFloatingAnimation animation = MinFloatingAnimation.slideAndFade,
- Object? groupId,
- bool constrainToViewport = true,
- EdgeInsets viewportPadding = const EdgeInsets.all(8),
Implementation
const MinFloatingBase({
super.key,
required this.child,
this.controller,
this.visible,
this.enabled = true,
this.openOnTap = true,
this.side,
this.duration,
this.reverseDuration,
this.curve,
this.closeOnTapOutside,
this.closeOnEscape,
this.closeOnScroll,
this.barrierColor,
this.useDimmedBarrier,
this.animation = MinFloatingAnimation.slideAndFade,
this.groupId,
this.constrainToViewport = true,
this.viewportPadding = const EdgeInsets.all(8),
}) : assert(
controller == null || visible == null,
'Provide either controller or visible, not both.',
);