Skip to content

Instantly share code, notes, and snippets.

@rohan-kadkol
Created October 1, 2020 22:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save rohan-kadkol/f1970221bdf1721a2a1d3f50fac3315a to your computer and use it in GitHub Desktop.
Save rohan-kadkol/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