mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-03-12 09:32:33 +00:00
Ignore UI issues from exceptions report
This commit is contained in:
parent
a373253fd2
commit
8d68ccfc7b
1 changed files with 6 additions and 3 deletions
|
@ -57,7 +57,10 @@ Future<void> main() async {
|
||||||
WidgetsFlutterBinding.ensureInitialized();
|
WidgetsFlutterBinding.ensureInitialized();
|
||||||
|
|
||||||
FlutterError.onError = (errorDetails) {
|
FlutterError.onError = (errorDetails) {
|
||||||
_onError(errorDetails);
|
// if not a UI error
|
||||||
|
if (errorDetails.library != "widgets library") {
|
||||||
|
_onError(errorDetails);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// A callback that is invoked when an unhandled error occurs in the root
|
/// A callback that is invoked when an unhandled error occurs in the root
|
||||||
|
@ -193,8 +196,8 @@ void _sendExceptionFile() async {
|
||||||
|
|
||||||
final result = await FlutterMailer.send(mailOptions);
|
final result = await FlutterMailer.send(mailOptions);
|
||||||
|
|
||||||
// clear file content if the error was sent or saved
|
// Clear file content if the error was sent or saved.
|
||||||
// on android we can't know if it was sent or saved
|
// On android we can't know if it was sent or saved
|
||||||
if (result.name == MailerResponse.sent.name ||
|
if (result.name == MailerResponse.sent.name ||
|
||||||
result.name == MailerResponse.saved.name ||
|
result.name == MailerResponse.saved.name ||
|
||||||
result.name == MailerResponse.android.name) {
|
result.name == MailerResponse.android.name) {
|
||||||
|
|
Loading…
Reference in a new issue