forked from Nexus/nexus
add fallback emoji font list until flutter 3.50 releases
This commit is contained in:
parent
bfd259543d
commit
cb426cd27e
1 changed files with 7 additions and 1 deletions
|
|
@ -4,7 +4,13 @@ extension SchemeToTheme on ColorScheme {
|
|||
ThemeData get theme {
|
||||
final textTheme = ThemeData(
|
||||
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,
|
||||
).textTheme;
|
||||
return .from(colorScheme: this).copyWith(
|
||||
|
|
|
|||
Loading…
Reference in a new issue