Advertisement
wildanfuady

Expanded Column Example

Oct 12th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. import 'package:flutter/material.dart';
  2.  
  3. class ExpandedColumnExample extends StatelessWidget {
  4. @override
  5. Widget build(BuildContext context) {
  6. return Scaffold(
  7. appBar: AppBar(
  8. title: Text('Expanded Column Sample'),
  9. ),
  10. body: Center(
  11. child: Column(
  12. children: <Widget>[
  13. Container(
  14. color: Colors.blue,
  15. height: 100,
  16. width: 100,
  17. ),
  18. Expanded(
  19. child: Container(
  20. color: Colors.amber,
  21. width: 100,
  22. ),
  23. ),
  24. Container(
  25. color: Colors.blue,
  26. height: 100,
  27. width: 100,
  28. ),
  29. ],
  30. ),
  31. ),
  32. );
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement