Skip to content

Commit

Permalink
feat: use Noto Emoji font on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Merrit committed Aug 14, 2024
1 parent 4f91000 commit ec9ae82
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/src/emoji/styles.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:helpers/helpers.dart';

final TextTheme emojiTextTheme = GoogleFonts.notoColorEmojiTextTheme();

/// It is required to use the emoji font, otherwise emojis
/// all appear as simple black and white glyphs.
final String? emojiFont = (defaultTargetPlatform.isWindows)
? null
: emojiTextTheme.bodyMedium?.fontFamily ?? 'Noto Color Emoji';
final String emojiFont = emojiTextTheme.bodyMedium?.fontFamily ?? 'Noto Color Emoji';

0 comments on commit ec9ae82

Please sign in to comment.