snackBarWarning function
dynamic
snackBarWarning({
- required BuildContext context,
- required String title,
- required String message,
- int? seconds,
Show a snackbar with error icon.
See snackBarSuccess for more information.
Implementation
snackBarWarning({
required BuildContext context,
required String title,
required String message,
int? seconds,
}) {
showSnackBar(
context,
snackBarContent(
context: context,
title: title,
message: message,
backgroundColor: Colors.amber.shade700,
closeButtonColor: Colors.white,
icon: Icon(Icons.error, color: Colors.amber.shade800, size: 28),
arrowBackgroundColor: Colors.white,
seconds: seconds,
),
);
}