Skip to content

Instantly share code, notes, and snippets.

@r100-stack
Created October 1, 2020 22:41
Show Gist options
  • Save r100-stack/f1970221bdf1721a2a1d3f50fac3315a to your computer and use it in GitHub Desktop.
Save r100-stack/f1970221bdf1721a2a1d3f50fac3315a to your computer and use it in GitHub Desktop.
Beginners' Guide to Flutter Development Week 1 - Hello World
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