Save exceptions if happened while there is an already existing report dialog [skip ci]

This commit is contained in:
OmarHatem 2023-01-30 19:33:40 +02:00
parent ae0f9df041
commit 4704d70605

View file

@ -207,12 +207,12 @@ void _sendExceptionFile() async {
}
void _onError(FlutterErrorDetails errorDetails) {
_saveException(errorDetails.exception.toString(), errorDetails.stack);
if (hasError) {
return;
}
hasError = true;
_saveException(errorDetails.exception.toString(), errorDetails.stack);
WidgetsBinding.instance.addPostFrameCallback(
(timeStamp) async {