Created
February 15, 2020 13:21
-
-
Save jimit24365/d283cc38106487e5a5e09db7034063fa to your computer and use it in GitHub Desktop.
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'; | |
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