snackBarWarning function

dynamic snackBarWarning({
  1. required BuildContext context,
  2. required String title,
  3. required String message,
  4. 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,
    ),
  );
}