From 07defe7e431eba9464db78481f75446d3a2ef5a1 Mon Sep 17 00:00:00 2001 From: mishikaraj <49092742+mishikaraj@users.noreply.github.com> Date: Thu, 21 Nov 2019 02:05:02 +0530 Subject: [PATCH] Update main.dart --- myapp/lib/main.dart | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/myapp/lib/main.dart b/myapp/lib/main.dart index c3b96e1..cc113d3 100644 --- a/myapp/lib/main.dart +++ b/myapp/lib/main.dart @@ -14,11 +14,12 @@ class Home extends StatelessWidget { backgroundColor: Colors.red[600] ), body: Center( - child: Image.asset('assets/space-3.jpg'), - ), + child image:AssetImage('assets/space-3.jpg'), + ) floatingActionButton: FloatingActionButton( backgroundColor: Colors.red[600], - child: Text('click'), + child: Text('click'), + ), ); }