Created
March 31, 2020 10:42
-
-
Save tailorvj/671f813833a462a6e5526ed65aca11b5 to your computer and use it in GitHub Desktop.
The most basic Flutter app in the 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()); | |
/// 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