Skip to content

Commit

Permalink
Add Signika as our app theme's default font
Browse files Browse the repository at this point in the history
Download the font from here:
https://fonts.google.com/specimen/Signika/

See the docs for using custom fonts in Flutter:
https://flutter.dev/docs/cookbook/design/fonts
  • Loading branch information
anu-rock committed Sep 22, 2019
1 parent ea58a12 commit 6a0a665
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 11 deletions.
Binary file added fonts/Signika-Bold.ttf
Binary file not shown.
Binary file added fonts/Signika-Regular.ttf
Binary file not shown.
1 change: 1 addition & 0 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
theme: ThemeData(fontFamily: 'Signika'),
title: 'Health App',
home: HomeScreen(),
);
Expand Down
17 changes: 6 additions & 11 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,9 @@ flutter:
# "family" key with the font family name, and a "fonts" key with a
# list giving the asset and other descriptors for the font. For
# example:
# fonts:
# - family: Schyler
# fonts:
# - asset: fonts/Schyler-Regular.ttf
# - asset: fonts/Schyler-Italic.ttf
# style: italic
# - family: Trajan Pro
# fonts:
# - asset: fonts/TrajanPro.ttf
# - asset: fonts/TrajanPro_Bold.ttf
# weight: 700
fonts:
- family: Signika
fonts:
- asset: fonts/Signika-Regular.ttf
- asset: fonts/Signika-Bold.ttf
weight: 700

0 comments on commit 6a0a665

Please sign in to comment.