Created
June 21, 2018 16:30
-
-
Save burhanrashid52/8141bbb3d601b891b72ecfce56d96260 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(new MyApp()); | |
class MyApp extends StatefulWidget { | |
@override | |
_MyAppState createState() => new _MyAppState(); | |
} | |
class _MyAppState extends State<MyApp> { | |
@override | |
Widget build(BuildContext context) { | |
return new MaterialApp( | |
home: new Scaffold( | |
appBar: new AppBar( | |
title: new Text("LinearLayout Example"), | |
), | |
body: new Container( | |
color: Colors.yellowAccent, | |
child: new Row( | |
children: [ | |
new Icon( | |
Icons.access_time, | |
size: 50.0, | |
), | |
new Icon( | |
Icons.pie_chart, | |
size: 100.0, | |
), | |
new Icon( | |
Icons.email, | |
size: 50.0, | |
) | |
], | |
), | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment