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: Row(
- mainAxisAlignment: MainAxisAlignment.start,
- mainAxisSize: MainAxisSize.max,
- children: [
- Column(
- children: [
- Expanded(
- child: Container(
- margin: const EdgeInsets.all(5),
- width: 150,
- height: 100,
- color: Colors.amber,
- ),
- )
- ],
- ),
- Column(
- mainAxisSize: MainAxisSize.max,
- mainAxisAlignment: MainAxisAlignment.start,
- children: [
- Container(
- margin: const EdgeInsets.fromLTRB(8, 20, 0, 0),
- width: 200,
- height: 100,
- color: Colors.yellowAccent,
- ),
- Container(
- margin: const EdgeInsets.fromLTRB(8, 20, 0, 0),
- width: 200,
- height: 100,
- color: Colors.red,
- ),
- Container(
- margin: const EdgeInsets.fromLTRB(8, 20, 0, 0),
- width: 200,
- height: 100,
- color: Colors.greenAccent,
- ),
- Container(
- margin: const EdgeInsets.fromLTRB(8, 20, 0, 0),
- width: 200,
- height: 100,
- color: Colors.blue,
- ),
- Container(
- margin: const EdgeInsets.fromLTRB(8, 20, 0, 0),
- width: 200,
- height: 100,
- color: Colors.cyanAccent,
- )
- ],
- )
- ],
- ),
- ),
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement