Skip to content

Commit

Permalink
fix: remove emoji fallback font
Browse files Browse the repository at this point in the history
With new Flutter version it was causing all text
to be rendered with the emoji font, which looks
terrible.
  • Loading branch information
Merrit committed Jun 11, 2024
1 parent a1f7a80 commit 91a4d39
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions lib/theme/app_theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,18 @@ import 'package:flutter/material.dart';
/// Nyrna's branded color.
const nyrnaColor = Color.fromRGBO(0, 179, 255, 1);

const _kFallbackFontFamilies = [
/// Fallback to Noto Color Emoji is needed to render emojis in color.
///
/// See:
/// https://github.com/flutter/flutter/issues/119536
'Noto Color Emoji',
];

/// Dark app theme.
final ThemeData darkTheme = ThemeData(
useMaterial3: true,
brightness: Brightness.dark,
colorSchemeSeed: nyrnaColor,
fontFamilyFallback: _kFallbackFontFamilies,
);

/// Light app theme.
final ThemeData lightTheme = ThemeData(
useMaterial3: true,
brightness: Brightness.light,
colorSchemeSeed: nyrnaColor,
fontFamilyFallback: _kFallbackFontFamilies,
);

/// Perfectly black theme for use on AMOLED screens.
Expand Down

0 comments on commit 91a4d39

Please sign in to comment.