Why we need to add custom font in our app:
let's say we have a one screen like this,

Let's Start:
step 1:We have to create assets folder in our project file and add font that we have to add in our application it will look like this:
fonts:
- family: EastSeaDokdo-Regular
fonts:
- asset: assets/fonts/EastSeaDokdo-Regular.ttf

class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter custom font demo',
theme: ThemeData(
fontFamily: 'EastSeaDokdo-Regular'
),
home: const HomePage(),
);
}
}

fonts:
- family: EastSeaDokdo-Regular
fonts:
- asset: assets/fonts/EastSeaDokdo-Regular.ttf
# add this for second font family
- family: Sevillana-Regular
fonts:
- asset: assets/fonts/Sevillana-Regular.ttf

Text(
"custom font for your",
style: TextStyle(
/// just add this and you are donw with your custome fonts
fontFamily: 'Sevillana-Regular',
fontSize: 40,
fontWeight: FontWeight.bold,
),
),
Read Also : How to implement navigation drawer in flutter | Thirdock Techkno


