showDeleteErrorSnackbar function

void showDeleteErrorSnackbar(
  1. BuildContext context
)

Shows an error snackbar when delete fails.

Implementation

void showDeleteErrorSnackbar(BuildContext context) {
  ScaffoldMessenger.of(context).showSnackBar(
    SnackBar(
      content: const Row(
        children: [
          Icon(Icons.error_outline, color: Colors.white),
          SizedBox(width: 12),
          Expanded(child: Text('Failed to delete place')),
        ],
      ),
      backgroundColor: Colors.red.shade600,
      behavior: SnackBarBehavior.floating,
    ),
  );
}