createPopupWindow<T> function
PopupWindow
createPopupWindow<T>(
- BuildContext context, {
- Widget childFun(
- PopupWindow popup
- Size? childSize,
- PopupGravity? gravity,
- bool? customAnimation,
- bool? customPop,
- bool? customPage,
- Color? bgColor,
- RenderBox? targetRenderBox,
- bool? underStatusBar,
- bool? underAppBar,
- bool? clickOutDismiss,
- bool? clickBackDismiss,
- double? offsetX,
- double? offsetY,
- Duration? duration,
- bool? needSafeDisplay,
- bool? useCustomWH,
- double? customWidth,
- double? customHeight,
- dynamic onShowStart(
- PopupWindow popup
- dynamic onShowFinish(
- PopupWindow popup
- dynamic onDismissStart(
- PopupWindow popup
- dynamic onDismissFinish(
- PopupWindow popup
- dynamic onClickOut(
- PopupWindow popup
- dynamic onClickBack(
- PopupWindow popup
Implementation
PopupWindow createPopupWindow<T>(
BuildContext context, {
Widget Function(PopupWindow popup)? childFun,
Size? childSize,
PopupGravity? gravity,
bool? customAnimation,
bool? customPop,
bool? customPage,
Color? bgColor,
RenderBox? targetRenderBox,
bool? underStatusBar,
bool? underAppBar,
bool? clickOutDismiss,
bool? clickBackDismiss,
double? offsetX,
double? offsetY,
Duration? duration,
bool? needSafeDisplay,
bool? useCustomWH,
double? customWidth,
double? customHeight,
Function(PopupWindow popup)? onShowStart,
Function(PopupWindow popup)? onShowFinish,
Function(PopupWindow popup)? onDismissStart,
Function(PopupWindow popup)? onDismissFinish,
Function(PopupWindow popup)? onClickOut,
Function(PopupWindow popup)? onClickBack,
}) {
return PopupWindow(
gravity: gravity,
customAnimation: customAnimation,
customPop: customPop,
customPage: customPage,
bgColor: bgColor,
childFun: childFun,
childSize: childSize,
targetRenderBox: targetRenderBox,
underStatusBar: underStatusBar,
underAppBar: underAppBar,
clickOutDismiss: clickOutDismiss,
clickBackDismiss: clickBackDismiss,
offsetX: offsetX,
offsetY: offsetY,
duration: duration,
needSafeDisplay: needSafeDisplay,
useCustomWH: useCustomWH,
customWidth: customWidth,
customHeight: customHeight,
onShowStart: onShowStart,
onShowFinish: onShowFinish,
onDismissStart: onDismissStart,
onDismissFinish: onDismissFinish,
onClickOut: onClickOut,
onClickBack: onClickBack,
);
}