ignore setState during build
It seems to happen randomly right now.
This commit is contained in:
parent
2a91959333
commit
f8c705531c
1 changed files with 5 additions and 0 deletions
|
|
@ -38,6 +38,11 @@ New Value: ${newValue is AsyncData ? newValue.value : newValue}
|
|||
}
|
||||
|
||||
void showError(Object error, [StackTrace? stackTrace]) {
|
||||
if (error.toString().contains(
|
||||
"setState() or markNeedsBuild() called during build.",
|
||||
)) {
|
||||
return;
|
||||
}
|
||||
if (error.toString().contains("DioException")) return;
|
||||
if (error.toString().contains("Invalid source")) return;
|
||||
if (error.toString().contains("UTF-16")) return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue