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: Container(
- child: Column(
- mainAxisSize: MainAxisSize.max,
- mainAxisAlignment: MainAxisAlignment.spaceEvenly,
- children: [
- Row(
- mainAxisAlignment: MainAxisAlignment.spaceAround,
- children: [
- Container(
- color: Colors.amber,
- width: 150,
- height: 150,
- child: FlutterLogo(size: 100),
- ),
- Container(
- color: Colors.greenAccent,
- width: 150,
- height: 150,
- child: FlutterLogo(size: 100),
- ),
- ],
- ),
- Row(
- children: [
- Expanded(
- child: Container(
- color: Colors.blueGrey,
- width: 100,
- height: 150,
- margin: const EdgeInsets.all(10),
- ),
- ),
- ],
- ),
- Row(
- mainAxisSize: MainAxisSize.max,
- mainAxisAlignment: MainAxisAlignment.spaceEvenly,
- children: [
- Container(
- color: Colors.red,
- width: 150,
- height: 150,
- child: FlutterLogo(size: 100),
- ),
- Container(
- color: Colors.blue,
- width: 150,
- height: 150,
- child: FlutterLogo(size: 100),
- ),
- ],
- )
- ],
- ),
- ),
- ),
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement