fonts

family

MyCustomFont

fonts

asset

fonts/MyCustomFont.ttf

style

italic

Then assign the font to your Text widget:

Styling text

Along with fonts, you can customize other styling elements on a Text widget.
The style parameter of a Text widget takes a TextStyle object,
where you can customize many parameters, such as:

color

decoration

decorationColor

decorationStyle

fontFamily

fontSize

fontStyle

fontWeight

hashCode

height

inherit

letterSpacing

textBaseline

wordSpacing

Bundling images in apps