showDialogPanel static method
YYDialog
showDialogPanel(
- BuildContext context, {
- dynamic gravity,
- dynamic container,
- dynamic borderRadius = const BorderRadius.all(Radius.circular(4)),
- dynamic margin = const EdgeInsets.all(0),
- dynamic barrierDismissible = true,
- double dx = 0,
- double dy = 0,
- OnDialogDismissCall? dismissCall,
- bool isKeyboardAvoiding = false,
- Color backgroundColor = Colors.white,
- Color barrierColor = const Color(0x4d000000),
显示底部弹出panel view
gravity
dialog panel出现的位置(默认从底部弹出)
Implementation
static YYDialog showDialogPanel(
BuildContext context, {
gravity,
container,
borderRadius = const BorderRadius.all(Radius.circular(4)),
margin = const EdgeInsets.all(0),
barrierDismissible = true,
double dx = 0,
double dy = 0,
OnDialogDismissCall? dismissCall,
bool isKeyboardAvoiding = false,
Color backgroundColor = Colors.white,
Color barrierColor = const Color(0x4d000000),
}) {
return YYDialog().build(context)
..gravity = gravity ?? Gravity.bottom
..gravityAnimationEnable = true
..borderRadius = borderRadius
..widget(container)
..margin = margin
..barrierColor = Colors.black.withOpacity(.3)
..barrierDismissible = barrierDismissible ?? true
..dismissCallBack = dismissCall
..backgroundColor = backgroundColor
..show(isKeyboardAvoiding: isKeyboardAvoiding, barrierColor: barrierColor);
}