Flutter – Snackbar Error: Don't use 'BuildContext's across async gaps
I am trying to implement a showSnackBar on my App but I am getting this error: Don't use 'BuildContext's across async gaps. Try rewriting the code to not use the 'BuildContext', or guard the use with a 'mounted' check. Here…