Created
August 20, 2020 04:31
-
-
Save cerberodev/6f8d65950e74a5e224838ab065408f8c to your computer and use it in GitHub Desktop.
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( | |
title: 'Welcome to Flutter', | |
home: Scaffold( | |
backgroundColor: Colors.brown, | |
appBar: AppBar( | |
title: Text( | |
'Welcome to Flutter', | |
style: TextStyle( | |
color: Colors.cyan, | |
), | |
), | |
backgroundColor: Colors.yellowAccent, | |
), | |
body: Column( | |
mainAxisAlignment: MainAxisAlignment.spaceEvenly, | |
crossAxisAlignment: CrossAxisAlignment.stretch, | |
children: [ | |
FlutterLogo( | |
size: 200, | |
colors: Colors.red, | |
), | |
Text( | |
'Hello World', | |
style: TextStyle( | |
fontSize: 40, | |
color: Colors.cyan, | |
fontWeight: FontWeight.bold, | |
), | |
textAlign: TextAlign.center, | |
), | |
], | |
), | |
), | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment