AdaptivePopup constructor
const
AdaptivePopup({
- Key? key,
- required Widget child,
- required WidgetBuilder builder,
- bool barrierDismissible = true,
- Offset offset = Offset.zero,
- Duration animationDuration = const Duration(milliseconds: 100),
- double? maxDropdownWidth,
- double? maxDropdownHeight,
- PopupPosition position = PopupPosition.bottom,
- Color barrierColor = Colors.transparent,
- RouteSettings? settings,
- dynamic onPopup(
- bool value
- bool isPopped = false,
create a widget for an adptive dropdown
child
will render by default
builder
will be hide by default and only render when gesture dectected
barrierColor
will be used for force display dropdown overlay in defferent color
animationDuration
duration of trasition builder
Implementation
const AdaptivePopup({
Key? key,
required this.child,
required this.builder,
this.barrierDismissible = true,
this.offset = Offset.zero,
this.animationDuration = const Duration(milliseconds: 100),
this.maxDropdownWidth,
this.maxDropdownHeight,
this.position = PopupPosition.bottom,
this.barrierColor = Colors.transparent,
this.settings,
this.onPopup,
this.isPopped = false,
}) : super(key: key);