INNER CODE UNIT · Dart
margin
YYFlutter/flutter-custom-dialog · lib/flutter_custom_dialog.dart:22
EdgeInsets margin = EdgeInsets.all(0.0); //弹窗布局的外边距
/// 用于有多个navigator嵌套的情况,默认为true
/// @params useRootNavigator=false,push是用的是当前布局的context
/// @params useRootNavigator=true,push是用的嵌套根布局的context
bool useRootNavigator = true;
Decoration? decoration; //弹窗内的装饰,与backgroundColor和borderRadius互斥
Color backgroundColor = Colors.white; //弹窗内的背景色
double borderRadius = 0.0; //弹窗圆角
Function()? showCallBack; //展示的回调
Function()? dismissCallBack; //消失的回调
get isShowing => _isShowing; //当前 弹窗是否可见
bool _isShowing = false;
//============================================================================