JoyDropDown constructor

JoyDropDown({
  1. required Widget child,
  2. required Widget overlayWidget,
  3. JoyOverlayPosition? overlayPosition,
  4. Offset? overlayOffset,
  5. double? overlayWidth,
  6. double? overlayHeight,
})

JoyDropDown

Creates a widget that has your child as a "hoverable" Here are some properties available:

  • overlayWidget: Widget you want to appear at the time of hovering over the mouse..
  • overlayPosition: Position of the overlayWidget. Default is JoyOverlayPosition.bottom.
  • overlayOffset: Offset of the overlayWidget. Default is Offset(0, 0).
  • overlayWidth: If this parameter is not set, it will be the same as the child width.
  • overlayHeight: If this parameter is not set, it will be the same as the child height.
  • child: Widget that will be hovered. better known as button.

Implementation

// ignore: use_key_in_widget_constructors
JoyDropDown({
  required this.child,
  required this.overlayWidget,
  this.overlayPosition,
  this.overlayOffset,
  this.overlayWidth,
  this.overlayHeight,
});