add font in flutter
MaterialApp(
title: 'Fonts',
theme: ThemeData(fontFamily: 'Mukta'),
home: HomePage(),
);
In pubspec.yaml
fonts:
- family: Mukta
fonts:
- asset: assets/fonts/Mukta/Mukta-Regular.ttf
weight: 400