Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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,),
- )
- ],
- ),
- ));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement