showMessageDialog static method
YYDialog
showMessageDialog(
- BuildContext context, {
- dynamic gravity,
- dynamic container,
- dynamic borderRadius = const BorderRadius.only(topLeft: Radius.circular(4), topRight: Radius.circular(4)),
- dynamic barrierDismissible = true,
- double dx = 0,
- double dy = 0,
- dynamic margin = const EdgeInsets.all(0),
- OnDialogDismissCall? dismissCall,
- bool isKeyboardAvoiding = false,
- Color backgroundColor = Colors.white,
- 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,
);
}