Skip to content

Commit b29e817

Browse files
committed
lesson-6
1 parent dd1932f commit b29e817

File tree

3 files changed

+18
-13
lines changed

3 files changed

+18
-13
lines changed
54 KB
Binary file not shown.

myapp/lib/main.dart

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,22 @@ void main() => runApp(MaterialApp(
55
appBar: AppBar(
66
title: Text('my first app'),
77
centerTitle: true,
8+
backgroundColor: Colors.red[600]
89
),
910
body: Center(
10-
child: Text('hello, ninjas!'),
11+
child: Text(
12+
'hello, ninjas!',
13+
style: TextStyle(
14+
fontSize: 20.0,
15+
fontWeight: FontWeight.bold,
16+
letterSpacing: 2.0,
17+
color: Colors.grey[600],
18+
fontFamily: 'IndieFlower',
19+
),
20+
),
1121
),
1222
floatingActionButton: FloatingActionButton(
23+
backgroundColor: Colors.red[600],
1324
child: Text('click'),
1425
),
1526
),

myapp/pubspec.yaml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,11 @@ flutter:
5656
# "family" key with the font family name, and a "fonts" key with a
5757
# list giving the asset and other descriptors for the font. For
5858
# example:
59-
# fonts:
60-
# - family: Schyler
61-
# fonts:
62-
# - asset: fonts/Schyler-Regular.ttf
63-
# - asset: fonts/Schyler-Italic.ttf
64-
# style: italic
65-
# - family: Trajan Pro
66-
# fonts:
67-
# - asset: fonts/TrajanPro.ttf
68-
# - asset: fonts/TrajanPro_Bold.ttf
69-
# weight: 700
70-
#
59+
60+
fonts:
61+
- family: IndieFlower
62+
fonts:
63+
- asset: fonts/IndieFlower-Regular.ttf
64+
7165
# For details regarding fonts from package dependencies,
7266
# see https://flutter.dev/custom-fonts/#from-packages

0 commit comments

Comments
 (0)