xxxxxxxxxx
MaterialApp(
title: 'Custom Fonts',
// Set Raleway as the default app font.
theme: ThemeData(fontFamily: 'Raleway'),
home: MyHomePage(),
);
xxxxxxxxxx
flutter:
fonts:
- family: YourFontFamilyName
fonts:
- asset: assets/fonts/your_font.ttf