PopupWindow constructor

PopupWindow(
  1. BuildContext context, {
  2. Key? key,
  3. String? text,
  4. required GlobalKey<State<StatefulWidget>> popKey,
  5. double arrowHeight = 6.0,
  6. TextStyle? textStyle,
  7. Color? backgroundColor,
  8. bool isShowCloseIcon = false,
  9. double offset = 0,
  10. PopupDirection popDirection = PopupDirection.bottom,
  11. Widget? widget,
  12. EdgeInsets paddingInsets = const EdgeInsets.only(left: 18, top: 14, right: 18, bottom: 14),
  13. double borderRadius = 4,
  14. Color? borderColor,
  15. bool canWrap = false,
  16. double spaceMargin = 20,
  17. double? arrowOffset,
  18. double turnOverFromBottom = 50.0,
})

Implementation

PopupWindow(this.context,
    {Key? key,
    this.text,
    required this.popKey,
    this.arrowHeight = 6.0,
    this.textStyle,
    this.backgroundColor,
    this.isShowCloseIcon = false,
    this.offset = 0,
    this.popDirection = PopupDirection.bottom,
    this.widget,
    this.paddingInsets =
        const EdgeInsets.only(left: 18, top: 14, right: 18, bottom: 14),
    this.borderRadius = 4,
    this.borderColor,
    this.canWrap = false,
    this.spaceMargin = 20,
    this.arrowOffset,
    this.turnOverFromBottom = 50.0})
    : super(key: key);