Display a snackbar

Update the UI based on orientation

Export fonts from a package

Cookbook

Design

Export fonts from a package

1. Add a font to a package

2. Add the package and fonts to the app

Add the package to the app
Declare the font assets

3. Use the font

Complete example

Fonts
pubspec.yaml
main.dart

Rather than declaring a font as part of an app,
you can declare a font as part of a separate package.
This is a convenient way to share the same font across
several different projects,
or for coders publishing their packages to pub.dev.
This recipe uses the following steps:

Add a font to a package.

Add the package and font to the app.

Use the font.