Код: Выделить всё
try {
await FirebaseAuth.instance
.sendPasswordResetEmail(email: emailAddress.text);
if (context.mounted) {
QuickAlert.show(
context: context,
type: QuickAlertType.success,
title: 'sending..',
);
}
} on FirebaseAuthException catch (e) {
if (e.code == "user-not-found") {
Fluttertoast.showToast(
msg: "This is Center Short Toast",
toastLength: Toast.LENGTH_SHORT,
gravity: ToastGravity.CENTER,
timeInSecForIosWeb: 1,
backgroundColor: Colors.red,
textColor: Colors.white,
fontSize: 16.0);
}
}
},
child: const Text(
"Forgot Password?",
textAlign: TextAlign.end,
),
Подробнее здесь: https://stackoverflow.com/questions/786 ... -com-googl