Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove emoji fallback font #214

Merged
merged 1 commit into from
Jun 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading