BaseAlertDialog constructor

const BaseAlertDialog({
  1. Key? key,
  2. bool barrierDismissible = false,
  3. BorderRadiusGeometry borderRadius = const BorderRadius.all(Radius.circular(10.0)),
  4. EdgeInsets margin = const EdgeInsets.all(38.0),
  5. EdgeInsets titlePadding = const EdgeInsets.fromLTRB(20.0, 34.0, 20.0, 20.0),
  6. EdgeInsets contentPadding = const EdgeInsets.symmetric(horizontal: 20.0),
  7. EdgeInsets actionPadding = const EdgeInsets.fromLTRB(20, 24, 20, 34),
  8. MainAxisAlignment actionsAxisAlignment = MainAxisAlignment.spaceAround,
  9. Color? backgroundColor,
  10. Widget title = const Text('提示'),
  11. required Widget content,
  12. 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);