Advertisement
wildanfuady

Stack Example

Oct 12th, 2019
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. import 'package:flutter/material.dart';
  2.  
  3. class StackExample extends StatelessWidget {
  4. @override
  5. Widget build(BuildContext context) {
  6. return Container(
  7. color: Colors.yellow,
  8. child: Stack(
  9. children: <Widget>[
  10. Container(
  11. color: Colors.green[200],
  12. width: 300.0,
  13. height: 300.0,
  14. ),
  15. Container(
  16. color: Colors.blue[200],
  17. width: 200.0,
  18. height: 200.0,
  19. ),
  20. Container(
  21. color: Colors.red[200],
  22. width: 100.0,
  23. height: 100.0,
  24. ),
  25. ],
  26. ),
  27. );
  28. }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement