I am new in Flutter as well as App Development, What I want to achieve is Show SnackBar after poping from alertbuilder. I think following code will be useful for understanding my intentions
onSubmitted: (value) async {
try {
await FirebaseAuth.instance
.sendPasswordResetEmail(
email: _loginEmail);
} catch (e) {
SnackBar(
backgroundColor: Colors.pink,
content: Text(e.toString()),
duration: Duration(seconds: 5),
);
Navigator.of(context).pop();
}
SnackBar(
backgroundColor: Colors.pink,
content: Text('Email sent with a link!'),
duration: Duration(seconds: 5),
);
Navigator.of(context).pop();
},