Created
October 1, 2020 22:41
-
-
Save r100-stack/f1970221bdf1721a2a1d3f50fac3315a to your computer and use it in GitHub Desktop.
Beginners' Guide to Flutter Development Week 1 - Hello World
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
home: Scaffold( | |
appBar: AppBar( | |
title: Text('Hello World!'), | |
backgroundColor: Colors.orange, | |
), | |
body: Center( | |
child: Container( | |
color: Colors.lightGreen, | |
height: 350.0, | |
width: 350.0, | |
child: Image( | |
image: | |
NetworkImage('http://www.rohankadkol.com/rohan_kadkol.jpg'), | |
fit: BoxFit.fitHeight, | |
), | |
), | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment