Set title font

This commit is contained in:
Vishnu Mohandas 2020-12-04 01:14:21 +05:30
parent 011fb46893
commit 95a9abba90
3 changed files with 11 additions and 2 deletions

BIN
fonts/Montserrat-Medium.ttf Normal file

Binary file not shown.

View file

@ -74,7 +74,14 @@ class _GalleryAppBarWidgetState extends State<GalleryAppBarWidget> {
Widget build(BuildContext context) {
if (widget.selectedFiles.files.isEmpty) {
return AppBar(
title: Text(widget.title),
title: Text(
widget.title,
style: TextStyle(
fontFamily: widget.type == GalleryAppBarType.homepage
? 'Montserrat'
: 'NunitoSans',
),
),
actions: _getDefaultActions(context),
);
}

View file

@ -88,7 +88,9 @@ flutter:
fonts:
- asset: fonts/NunitoSans-Regular.ttf
- asset: fonts/NunitoSans-Bold.ttf
- family: Montserrat
fonts:
- asset: fonts/Montserrat-Medium.ttf
# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in