showPopupWindow<T> function
PopupWindow
showPopupWindow<T>(
- BuildContext context, {
- Widget childFun(
- PopupWindow popup
- Size? childSize,
- PopupGravity? gravity,
- Curve? curve,
- 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
create_user: zhengzaihong email:1096877329@qq.com create_date: 2021-12-11 create_time: 18:08 describe: 类似 android 的popwindow 控件
Implementation
PopupWindow showPopupWindow<T>(
BuildContext context, {
Widget Function(PopupWindow popup)? childFun,
Size? childSize,
PopupGravity? gravity,
Curve? curve,
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,
}) {
var popup = PopupWindow(
gravity: gravity,
curve: curve,
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,
onShowStart: onShowStart,
onShowFinish: onShowFinish,
onDismissStart: onDismissStart,
onDismissFinish: onDismissFinish,
onClickOut: onClickOut,
onClickBack: onClickBack,
);
popup.show(context);
return popup;
}