TAlertTheme constructor
const
TAlertTheme({
- required Color backgroundColor,
- EdgeInsets? insetPadding = const EdgeInsets.all(12.0),
- EdgeInsets? contentPadding = const EdgeInsets.all(20),
- EdgeInsets? actionsPadding = const EdgeInsets.only(bottom: 15),
- MainAxisAlignment actionsAlignment = MainAxisAlignment.center,
- double? iconSize = 64,
- required TextStyle titleStyle,
- required TextStyle contentStyle,
- TextAlign? contentTextAlign = TextAlign.center,
- double? closeButtonWidth = 100,
- double? confirmButtonWidth = 80,
- TButtonType? closeButtonType = TButtonType.softText,
- TButtonType? confirmButtonType = TButtonType.softText,
- 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,
});