you should just be able to call like this:
ScaffoldMessenger.of(context).showSnackBar(SnackBar(content: Text("Login failed")));
you should just be able to call like this:
ScaffoldMessenger.of(context).showSnackBar(SnackBar(content: Text("Login failed")));