Created
March 16, 2020 06:03
-
-
Save 5omar5/7f7577f747fc023ee80d33b86afeadc4 to your computer and use it in GitHub Desktop.
u_2_a1
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: Column( | |
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