OnBoarding main screen: Use the custom Lato font for the heading

I'm not sure if I should use this font all over, or if just in this
place.
This commit is contained in:
Vishesh Handa
2019-01-16 17:27:57 +01:00
parent f7aa214002
commit 7692f851f2
3 changed files with 7 additions and 1 deletions

BIN
fonts/Lato-Regular.ttf Executable file

Binary file not shown.

View File

@ -225,6 +225,8 @@ class OnBoardingInitialChoice extends StatelessWidget {
@override
Widget build(BuildContext context) {
var headerTextStyle =
Theme.of(context).textTheme.display3.copyWith(fontFamily: "Lato");
var header = Row(
children: <Widget>[
Image.asset(
@ -234,7 +236,7 @@ class OnBoardingInitialChoice extends StatelessWidget {
),
Text(
"GitJournal",
style: Theme.of(context).textTheme.display3,
style: headerTextStyle,
),
],
);

View File

@ -26,6 +26,10 @@ flutter:
- "assets/icon/icon.png"
- "assets/icon/github-icon.png"
- "assets/icon/gitlab-icon.png"
fonts:
- family: Lato
fonts:
- asset: fonts/Lato-Regular.ttf
flutter_icons:
android: "launcher_icon"