BaseAlertDialog constructor
const
BaseAlertDialog({
- Key? key,
- bool barrierDismissible = false,
- BorderRadiusGeometry borderRadius = const BorderRadius.all(Radius.circular(10.0)),
- EdgeInsets margin = const EdgeInsets.all(38.0),
- EdgeInsets titlePadding = const EdgeInsets.fromLTRB(20.0, 34.0, 20.0, 20.0),
- EdgeInsets contentPadding = const EdgeInsets.symmetric(horizontal: 20.0),
- EdgeInsets actionPadding = const EdgeInsets.fromLTRB(20, 24, 20, 34),
- MainAxisAlignment actionsAxisAlignment = MainAxisAlignment.spaceAround,
- Color? backgroundColor,
- Widget title = const Text('提示'),
- required Widget content,
- List<
Widget> actions = const <Widget>[],
Implementation
const BaseAlertDialog({
Key? key,
this.barrierDismissible = false,
this.borderRadius = const BorderRadius.all(Radius.circular(10.0)),
this.margin = const EdgeInsets.all(38.0),
this.titlePadding = const EdgeInsets.fromLTRB(20.0, 34.0, 20.0, 20.0),
this.contentPadding = const EdgeInsets.symmetric(horizontal: 20.0),
this.actionPadding = const EdgeInsets.fromLTRB(20, 24, 20, 34),
this.actionsAxisAlignment = MainAxisAlignment.spaceAround,
this.backgroundColor,
this.title = const Text('提示'),
required this.content,
this.actions = const <Widget>[],
}) : super(key: key);