Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:flutter/material.dart';
- class ExpandedColumnExample extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- appBar: AppBar(
- title: Text('Expanded Column Sample'),
- ),
- body: Center(
- child: Column(
- children: <Widget>[
- Container(
- color: Colors.blue,
- height: 100,
- width: 100,
- ),
- Expanded(
- child: Container(
- color: Colors.amber,
- width: 100,
- ),
- ),
- Container(
- color: Colors.blue,
- height: 100,
- width: 100,
- ),
- ],
- ),
- ),
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement