Created
February 15, 2020 13:15
-
-
Save jimit24365/684f2543b7cc0d3b7d0b4d3211f12cc2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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( | |
debugShowCheckedModeBanner: false, | |
home: Scaffold( | |
appBar: AppBar( | |
title: Text('Hello Column'), | |
), | |
body: Center( | |
child: Column( | |
children: <Widget>[ | |
Expanded(child: Text('Deliver features faster')), | |
Expanded(child: Text('Craft beautiful UIs')), | |
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