Created
March 16, 2020 06:49
-
-
Save 5omar5/fc6959dd0b81ad18e928949231db3253 to your computer and use it in GitHub Desktop.
u2_a2
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( | |
home: Scaffold( | |
body: Row( | |
crossAxisAlignment: CrossAxisAlignment.center, | |
mainAxisAlignment: MainAxisAlignment.spaceEvenly, | |
children: <Widget>[ | |
Flexible( | |
child: Container(color: Colors.blue, height: 100, width: 100), | |
), | |
Flexible( | |
child: Container(color: Colors.red, height: 200), | |
), | |
Flexible( | |
child: Container(color: Colors.amber, height: 100,), | |
) | |
], | |
), | |
)); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment