BasePopupWidget constructor

const BasePopupWidget({
  1. Key? key,
  2. double? height,
  3. double? leftMargin,
  4. String? title,
  5. void onTapClose()?,
  6. required Widget customViewBuilder(
    1. BuildContext bContext
    ),
  7. Widget bottomButtonBuilder(
    1. BuildContext bContext
    )?,
})

Implementation

const BasePopupWidget({
  Key? key,
  this.height,
  this.leftMargin,
  this.title,
  this.onTapClose,
  required this.customViewBuilder, // 由 Expanded 包裹,如果高度不够,会自动被拉伸
  this.bottomButtonBuilder,
}) : super(key: key);