Skip to content

Instantly share code, notes, and snippets.

@chonghorizons
Last active November 28, 2019 17:44
Show Gist options
  • Save chonghorizons/53b50ef06f99b97207b8f9434b60bdcf to your computer and use it in GitHub Desktop.
Save chonghorizons/53b50ef06f99b97207b8f9434b60bdcf to your computer and use it in GitHub Desktop.
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