Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tailorvj/671f813833a462a6e5526ed65aca11b5 to your computer and use it in GitHub Desktop.
Save tailorvj/671f813833a462a6e5526ed65aca11b5 to your computer and use it in GitHub Desktop.
The most basic Flutter app in the world
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
/// This Widget is the main application widget.
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Summer',
home: Scaffold(
appBar: AppBar(
title: Text('Summer'),
backgroundColor: Colors.yellow[700],
),
body: Center(
child: Image(
image: AssetImage('assets/images/sunup.png'),
),
),
backgroundColor: Colors.yellow[600],
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment