Skip to content

Instantly share code, notes, and snippets.

@cerberodev
Created August 20, 2020 04:31
Show Gist options
  • Save cerberodev/6f8d65950e74a5e224838ab065408f8c to your computer and use it in GitHub Desktop.
Save cerberodev/6f8d65950e74a5e224838ab065408f8c to your computer and use it in GitHub Desktop.
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