Last active
November 28, 2019 17:44
-
-
Save chonghorizons/53b50ef06f99b97207b8f9434b60bdcf to your computer and use it in GitHub Desktop.
simple flutter gist for https://dartpad.dartlang.org/embed-flutter.html?id=53b50ef06f99b97207b8f9434b60bdcf
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'; | |
class ExampleScreen extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
appBar: AppBar( | |
title: Text('Hey there, boo!'), | |
), | |
body: Padding( | |
padding: EdgeInsets.all(8.0), | |
child: Center( | |
child: Column( | |
mainAxisAlignment: MainAxisAlignment.center, | |
crossAxisAlignment: CrossAxisAlignment.center, | |
children: [ | |
Text('You are pretty okay.'), | |
Text('Let\'s play'), | |
], | |
), | |
), | |
), | |
); | |
} | |
} | |
void main() { | |
runApp( | |
MaterialApp( | |
debugShowCheckedModeBanner: false, | |
home: ExampleScreen(), | |
), | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment