Add Custom font in Flutter App | iOS | macOS

Опубликовано: 20 Март 2026
на канале: BBUniversal Team
158
2

#addcustomfontflutter
#fluttercustomfont
#flutterappcustomfont

Add Custom Font in Flutter

1. Create assets folder

2. Inside assets folder, create fonts folder

3. Drag fonts inside fonts folder

4. Now, Go to pubspec.yaml file

5. Uncomment #fonts and below code of it.

6. Add your fontname in font family

7. Add your font path inside - asset (Don’t be confuse about - asset and assets folder both are different.)

8. In our case path is “assets/fonts/font-name.ttf” (Make sure path is perfect.)

9. Also take care of hierarchy inside pubspec.yaml (All Code should be align from same space)

10. Add weight of font (Font weight details will get from where you download the fonts.)

Save

11. Now apply font, where you looking for custom font.

12. Close your app and restart again.

Github link: https://github.com/GithubAshishHere/a...

If you have any query, feel free to comment below.
If you looking for solution for error. Comment below the error.
If many developer looking for it. I will try create video.

Thank you for watching.


#addcustomfontflutter,
#addcustomfontinflutter,
#addfontinflutter,
#flutteraddcustomfont,
#flutteraddcustomfonts,
#addcustomfonttoflutter,
#flutteraddingfonts