Skip to content

Commit f2069ab

Browse files
committed
FInished up on adding images
1 parent cf506b9 commit f2069ab

File tree

5 files changed

+3
-10
lines changed

5 files changed

+3
-10
lines changed

assets/images/sq1.jpg

4.04 MB
Loading

assets/images/sq2.jpg

1.36 MB
Loading

assets/images/sq3.jpg

1.3 MB
Loading

lib/main.dart

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,7 @@ class Home extends StatelessWidget {
1515
centerTitle: true,
1616
),
1717
body: Center(
18-
child: Text(
19-
'Hello Ninja',
20-
style: TextStyle(
21-
fontSize: 23.0,
22-
fontWeight: FontWeight.bold,
23-
fontFamily: 'Syncopate'),
24-
),
18+
child: Image.asset('assets/images/sq3.jpg'),
2519
),
2620
floatingActionButton: FloatingActionButton(
2721
child: Text('Click'),

pubspec.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,8 @@ flutter:
4545
uses-material-design: true
4646

4747
# To add assets to your application, add an assets section, like this:
48-
# assets:
49-
# - images/a_dot_burr.jpeg
50-
# - images/a_dot_ham.jpeg
48+
assets:
49+
- assets/images/
5150

5251
# An image asset can refer to one or more resolution-specific "variants", see
5352
# https://flutter.dev/assets-and-images/#resolution-aware.

0 commit comments

Comments
 (0)