Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. import 'package:flutter/material.dart';
  2. void main() => runApp(MyApp());
  3. class MyApp extends StatelessWidget {
  4. @override
  5. Widget build(BuildContext context) {
  6. return MaterialApp(
  7. home: Scaffold(
  8. body: Row (
  9. crossAxisAlignment: CrossAxisAlignment.center,
  10. mainAxisAlignment: MainAxisAlignment.spaceEvenly,
  11. children: <Widget>[
  12. Flexible(
  13. child: Container(color: Colors.blue, height: 100, width: 100),
  14. ),
  15. Flexible(
  16. child: Container(color: Colors.red, height: 200),
  17. ),
  18. Flexible(
  19. child: Container(color: Colors.amber, height: 100,),
  20. )
  21. ],
  22. ),
  23. ));
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement