<latest_version>

Declare the font assets

Now that you’ve imported the package, tell Flutter where to
find the fonts from the awesome_package.

To declare package fonts, prefix the path to the font with
packages/awesome_package.
This tells Flutter to look in the lib folder
of the package for the font.

flutter

fonts

family

Raleway

fonts

asset

packages/awesome_package/fonts/Raleway-Regular.ttf

asset

packages/awesome_package/fonts/Raleway-Italic.ttf

style

italic

3. Use the font

Use a TextStyle to change the appearance of text.
To use package fonts, declare which font you’d like to use and
which package the font belongs to.

Complete example