TAlertTheme constructor

const TAlertTheme({
  1. required Color backgroundColor,
  2. EdgeInsets? insetPadding = const EdgeInsets.all(12.0),
  3. EdgeInsets? contentPadding = const EdgeInsets.all(20),
  4. EdgeInsets? actionsPadding = const EdgeInsets.only(bottom: 15),
  5. MainAxisAlignment actionsAlignment = MainAxisAlignment.center,
  6. double? iconSize = 64,
  7. required TextStyle titleStyle,
  8. required TextStyle contentStyle,
  9. TextAlign? contentTextAlign = TextAlign.center,
  10. double? closeButtonWidth = 100,
  11. double? confirmButtonWidth = 80,
  12. TButtonType? closeButtonType = TButtonType.softText,
  13. TButtonType? confirmButtonType = TButtonType.softText,
  14. MaterialColor? closeButtonColor,
})

Creates an alert theme.

Implementation

const TAlertTheme({
  required this.backgroundColor,
  this.insetPadding = const EdgeInsets.all(12.0),
  this.contentPadding = const EdgeInsets.all(20),
  this.actionsPadding = const EdgeInsets.only(bottom: 15),
  this.actionsAlignment = MainAxisAlignment.center,
  this.iconSize = 64,
  required this.titleStyle,
  required this.contentStyle,
  this.contentTextAlign = TextAlign.center,
  this.closeButtonWidth = 100,
  this.confirmButtonWidth = 80,
  this.closeButtonType = TButtonType.softText,
  this.confirmButtonType = TButtonType.softText,
  this.closeButtonColor,
});