Last active
May 7, 2020 15:48
-
-
Save CoderJava/c7d285c99e393c35d8c4a22578d46916 to your computer and use it in GitHub Desktop.
Widget Row
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(App()); | |
| class App extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( | |
| home: HomePage(), | |
| ); | |
| } | |
| } | |
| class HomePage extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return Scaffold( | |
| appBar: AppBar( | |
| title: Text('Flutter Demo'), | |
| ), | |
| body: Container( | |
| height: 200.0, | |
| color: Colors.blue, | |
| child: Row( | |
| mainAxisAlignment: MainAxisAlignment.center, | |
| crossAxisAlignment: CrossAxisAlignment.end, | |
| children: <Widget>[ | |
| Text('Text 1'), | |
| Text('Text 2'), | |
| Text('Text 3'), | |
| Text('Text 4'), | |
| ], | |
| ), | |
| ), | |
| ); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment