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(
- title: 'Material App',
- home: Scaffold(
- appBar: AppBar(
- title: Text('Material App Bar'),
- ),
- body: Column(
- mainAxisAlignment: MainAxisAlignment.start,
- mainAxisSize: MainAxisSize.max,
- children: [
- Row(
- children: [
- Container(
- margin: const EdgeInsets.fromLTRB(5, 10, 5, 0),
- height: 150,
- width: 100,
- color: Colors.amber,
- ),
- Expanded(
- child: Container(
- margin: const EdgeInsets.fromLTRB(5, 10, 5, 0),
- height: 150,
- width: 100,
- color: Colors.greenAccent,
- ),
- ),
- Container(
- margin: const EdgeInsets.fromLTRB(5, 10, 5, 0),
- height: 150,
- width: 100,
- color: Colors.red,
- ),
- ],
- ),
- Row(children: [
- Expanded(
- child: Container(
- margin: const EdgeInsets.fromLTRB(5, 10, 5, 0),
- height: 150,
- width: 100,
- child: FlutterLogo(size: 80,),
- color: Colors.cyanAccent,
- ),
- ),
- ]),
- /////////////////////////////
- Row(
- mainAxisAlignment: MainAxisAlignment.spaceBetween,
- crossAxisAlignment: CrossAxisAlignment.center,
- mainAxisSize: MainAxisSize.max,
- children: [
- Expanded(
- child: Container(
- margin: const EdgeInsets.fromLTRB(5, 10, 5, 0),
- height: 280,
- width: 80,
- color: Colors.red[500],
- ),
- ),
- Column(
- children: [
- Container(
- margin: const EdgeInsets.fromLTRB(5, 10, 5, 0),
- height: 120,
- width: 270,
- color: Colors.blue[500],
- ),
- Row(
- children: [
- Container(
- margin: const EdgeInsets.fromLTRB(5, 10, 0, 0),
- height: 150,
- width: 80,
- color: Colors.amber[500],
- ),
- Container(
- margin: const EdgeInsets.fromLTRB(5, 10, 0, 0),
- height: 150,
- width: 100,
- color: Colors.black,
- ),
- Container(
- margin: const EdgeInsets.fromLTRB(5, 10, 5, 0),
- height: 150,
- width: 80,
- color: Colors.cyan,
- ),
- ],
- ),
- ],
- ),
- ],
- )
- ],
- ),
- ),
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement