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

OmarHatem committed Jan 30, 2023 at 19:33 UTC 4704d7060527931bea1c4f2d0218db845e27ffe1
1 file changed +2 -2
lib/main.dart
+2 -2
@@ -207,12 +207,12 @@ void _sendExceptionFile() async {
207 }
208
209 void _onError(FlutterErrorDetails errorDetails) {
210 + _saveException(errorDetails.exception.toString(), errorDetails.stack);
211 +
212 if (hasError) {
213 return;
214 }
213 -
215 hasError = true;
215 - _saveException(errorDetails.exception.toString(), errorDetails.stack);
216
217 WidgetsBinding.instance.addPostFrameCallback(
218 (timeStamp) async {