Skip to content

Commit 5240a7a

Browse files
committed
fisnished iamshaunjp#8
1 parent 5e8d414 commit 5240a7a

File tree

3 files changed

+4
-13
lines changed

3 files changed

+4
-13
lines changed

myapp/android/gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
org.gradle.jvmargs=-Xmx1536M
22

3+
android.enableR8=true

myapp/lib/main.dart

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,7 @@ class Home extends StatelessWidget {
1717
backgroundColor: Colors.red,
1818
),
1919
body: Center(
20-
child: Text(
21-
'Hello, ninjas!',
22-
style: TextStyle(
23-
fontSize: 20.0,
24-
fontWeight: FontWeight.bold,
25-
letterSpacing: 2.0,
26-
color: Colors.grey[600],
27-
fontFamily: 'IndieFlower',
28-
),
29-
),
20+
child: Image.asset('assets/snowboarding_04.jpg'),
3021
),
3122
floatingActionButton: FloatingActionButton(
3223
onPressed: () {},

myapp/pubspec.yaml

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

4343
# To add assets to your application, add an assets section, like this:
44-
# assets:
45-
# - images/a_dot_burr.jpeg
46-
# - images/a_dot_ham.jpeg
44+
assets:
45+
- assets/
4746

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

0 commit comments

Comments
 (0)