CloseAlertStyle constructor
CloseAlertStyle({
- required String title,
- required String message,
- required String positiveButtonText,
- required String negativeButtonText,
- TextStyle titleTextStyle = const TextStyle(fontSize: 18, fontWeight: FontWeight.bold),
- TextStyle messageTextStyle = const TextStyle(fontSize: 16),
- TextStyle positiveButtonTextStyle = const TextStyle(fontSize: 16, color: Colors.blue),
- TextStyle negativeButtonTextStyle = const TextStyle(fontSize: 16, color: Colors.red),
- BoxDecoration containerDecoration = const BoxDecoration(color: Colors.white, borderRadius: BorderRadius.all(Radius.circular(10))),
Close alert style
Implementation
CloseAlertStyle({
required this.title,
required this.message,
required this.positiveButtonText,
required this.negativeButtonText,
this.titleTextStyle = const TextStyle(
fontSize: 18,
fontWeight: FontWeight.bold,
),
this.messageTextStyle = const TextStyle(
fontSize: 16,
),
this.positiveButtonTextStyle = const TextStyle(
fontSize: 16,
color: Colors.blue,
),
this.negativeButtonTextStyle = const TextStyle(
fontSize: 16,
color: Colors.red,
),
this.containerDecoration = const BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.all(Radius.circular(10)),
),
});