ignore errors caused by flutter bug

This commit is contained in:
Henry Hiles 2026-11-22 10:45:27 -05:00
commit 84aad2efbf
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -45,7 +45,11 @@ New Value: ${newValue is AsyncData ? newValue.value : newValue}
}
void showError(Object error, [StackTrace? stackTrace]) {
if (error.toString().contains("'_nextFrame != null': is not true.")) {
// Harmless Flutter race in animated images (the assert in debug, a null check in release)
if (error.toString().contains("'_nextFrame != null': is not true.") ||
stackTrace.toString().contains(
"MultiFrameImageStreamCompleter._handleAppFrame",
)) {
return;
}