showDeleteSuccessSnackbar function

void showDeleteSuccessSnackbar(
  1. BuildContext context
)

Shows a success snackbar after place is deleted.

Implementation

void showDeleteSuccessSnackbar(BuildContext context) {
  ScaffoldMessenger.of(context).showSnackBar(
    SnackBar(
      content: const Row(
        children: [
          Icon(Icons.check_circle, color: Colors.white),
          SizedBox(width: 12),
          Expanded(child: Text('Place deleted successfully')),
        ],
      ),
      backgroundColor: Colors.green.shade600,
      behavior: SnackBarBehavior.floating,
    ),
  );
}