bring fixups back
should be reverted on flutter bump
This commit is contained in:
parent
cf1a6b6cd6
commit
53105025c9
2 changed files with 15 additions and 1 deletions
|
|
@ -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(
|
||||||
|
|
|
||||||
|
|
@ -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(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue