AdaptivePopup constructor

const AdaptivePopup({
  1. Key? key,
  2. required Widget child,
  3. required WidgetBuilder builder,
  4. bool barrierDismissible = true,
  5. Offset offset = Offset.zero,
  6. Duration animationDuration = const Duration(milliseconds: 100),
  7. double? maxDropdownWidth,
  8. double? maxDropdownHeight,
  9. PopupPosition position = PopupPosition.bottom,
  10. Color barrierColor = Colors.transparent,
  11. RouteSettings? settings,
  12. dynamic onPopup(
    1. bool value
    )?,
  13. 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);