File tree Expand file tree Collapse file tree 3 files changed +18
-13
lines changed
Expand file tree Collapse file tree 3 files changed +18
-13
lines changed Original file line number Diff line number Diff 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 ),
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments