add fallback emoji font list until flutter 3.50 releases

This commit is contained in:
Henry Hiles 2026-10-19 19:39:09 -04:00
commit cb426cd27e
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

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(