Set title font
This commit is contained in:
parent
011fb46893
commit
95a9abba90
3 changed files with 11 additions and 2 deletions
BIN
fonts/Montserrat-Medium.ttf
Normal file
BIN
fonts/Montserrat-Medium.ttf
Normal file
Binary file not shown.
|
@ -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),
|
||||
);
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue