File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,14 @@ class ZulipApp extends StatelessWidget {
12
12
@override
13
13
Widget build (BuildContext context) {
14
14
final theme = ThemeData (
15
+ // This correctly sets up a the font fallback for normal text that
16
+ // may contain an emoji, where it will use any font from the "sans-serif"
17
+ // group to fetch the glyphs and fallback to "Noto Color Emoji" for emojis.
18
+ //
19
+ // Note that specifiying only "Noto Color Emoji" in the fallback list,
20
+ // Flutter tries to use it to draw even the non emoji characters;
21
+ // which leads to broken text rendering.
22
+ fontFamilyFallback: const < String > ['sans-serif' , 'Noto Color Emoji' ],
15
23
useMaterial3: false , // TODO(#225) fix things and switch to true
16
24
// This applies Material 3's color system to produce a palette of
17
25
// appropriately matching and contrasting colors for use in a UI.
You can’t perform that action at this time.
0 commit comments