Update the UI based on orientation

Use themes to share colors and font styles

Use a custom font

Cookbook

Design

Use a custom font

1. Import the font files

Supported font formats

2. Declare the font in the pubspec

pubspec.yaml option definitions

3. Set a font as the default

4. Use the font in a specific widget

TextStyle

Complete example

Fonts
pubspec.yaml
main.dart

Although Android and iOS offer high quality system fonts,
one of the most common requests from designers is for custom fonts.
For example, you might have a custom-built font from a designer,
or perhaps you downloaded a font from Google Fonts.