bring fixups back

should be reverted on flutter bump
This commit is contained in:
Henry Hiles 2026-11-23 12:57:55 -05:00
commit 53105025c9
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
2 changed files with 15 additions and 1 deletions

View file

@ -4,7 +4,13 @@ extension SchemeToTheme on ColorScheme {
ThemeData get theme { ThemeData get theme {
final textTheme = ThemeData( final textTheme = ThemeData(
fontFamily: "bundled-sans", fontFamily: "bundled-sans",
fontFamilyFallback: ["emoji"], fontFamilyFallback: [
"emoji",
// TODO: Remove once on Flutter 3.50, whose Linux arm64 engine uses
// fontconfig and so understands the "emoji" alias
"Noto Color Emoji",
"Twemoji",
],
brightness: brightness, brightness: brightness,
).textTheme; ).textTheme;
return .from(colorScheme: this).copyWith( return .from(colorScheme: this).copyWith(

View file

@ -45,6 +45,14 @@ New Value: ${newValue is AsyncData ? newValue.value : newValue}
} }
void showError(Object error, [StackTrace? stackTrace]) { void showError(Object error, [StackTrace? stackTrace]) {
// 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;
}
debugPrintStack(stackTrace: stackTrace, label: error.toString()); debugPrintStack(stackTrace: stackTrace, label: error.toString());
if (navigatorKey.currentContext != null) { if (navigatorKey.currentContext != null) {
Future.delayed( Future.delayed(