Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:flutter/material.dart';
- class ContainerExample extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- return Container(
- color: Colors.green,
- child: Column(
- mainAxisAlignment: MainAxisAlignment.center,
- crossAxisAlignment: CrossAxisAlignment.center,
- children: <Widget>[
- Container(
- width: 100.0,
- height: 100.0,
- color: Colors.yellow,
- ),
- Container(
- width: 100.0,
- height: 100.0,
- color: Colors.grey,
- ),
- Row(
- mainAxisAlignment: MainAxisAlignment.center,
- children: <Widget>[
- Container(
- width: 100.0,
- height: 100.0,
- color: Colors.blueGrey,
- ),
- Container(
- width: 100.0,
- height: 100.0,
- color: Colors.blue,
- ),
- Container(
- width: 100.0,
- height: 100.0,
- color: Colors.yellow,
- ),
- ],
- )
- ],
- ),
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement