Skip to content

Instantly share code, notes, and snippets.

@jimit24365
Created February 15, 2020 13:21
Show Gist options
  • Save jimit24365/d283cc38106487e5a5e09db7034063fa to your computer and use it in GitHub Desktop.
Save jimit24365/d283cc38106487e5a5e09db7034063fa 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(
debugShowCheckedModeBanner: false,
home: Scaffold(
appBar: AppBar(
title: Text('Hello Column'),
),
body: Center(
child: Row(
children: <Widget>[
Expanded(
child: Text('Deliver features faster',
textAlign: TextAlign.center),
),
Expanded(
child: Text('Craft beautiful UIs', textAlign: TextAlign.center),
),
Expanded(
child: FittedBox(
fit: BoxFit.contain, // otherwise the logo will be tiny
child: const FlutterLogo(),
),
),
],
),
),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment