showMessageDialog static method

YYDialog showMessageDialog(
  1. BuildContext context, {
  2. dynamic gravity,
  3. dynamic container,
  4. dynamic borderRadius = const BorderRadius.only(topLeft: Radius.circular(4), topRight: Radius.circular(4)),
  5. dynamic barrierDismissible = true,
  6. double dx = 0,
  7. double dy = 0,
  8. dynamic margin = const EdgeInsets.all(0),
  9. OnDialogDismissCall? dismissCall,
  10. bool isKeyboardAvoiding = false,
  11. Color backgroundColor = Colors.white,
  12. Color barrierColor = const Color(0x4d000000),
})

消息框(出现在屏幕中间)

Implementation

static YYDialog showMessageDialog(
  BuildContext context, {
  gravity,
  container,
  borderRadius = const BorderRadius.only(topLeft: Radius.circular(4), topRight: Radius.circular(4)),
  barrierDismissible = true,
  double dx = 0,
  double dy = 0,
  margin = const EdgeInsets.all(0),
  OnDialogDismissCall? dismissCall,
  bool isKeyboardAvoiding = false,
  Color backgroundColor = Colors.white,
  Color barrierColor = const Color(0x4d000000),
}) {
  return showDialogPanel(
    context,
    gravity: gravity ?? Gravity.center,
    container: container,
    borderRadius: borderRadius,
    margin: margin,
    dx: dx,
    dy: dy,
    barrierDismissible: barrierDismissible,
    dismissCall: dismissCall,
    isKeyboardAvoiding: isKeyboardAvoiding,
    backgroundColor: backgroundColor,
    barrierColor: barrierColor,
  );
}