Advertisement
Guest User

Untitled

a guest
Apr 26th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. @override
  2. Widget build(BuildContext context) {
  3. return Scaffold(
  4. body: IndexedStack(
  5. index: 0,
  6. children: <Widget>[
  7. Container(
  8. width: MediaQuery.of(context).size.width,
  9. height: MediaQuery.of(context).size.height,
  10. color: Colors.red,
  11. ),
  12. Positioned(
  13. top: 350,
  14. left: 80,
  15. child: Container(
  16. width: 250.0,
  17. height: 250.0,
  18. color: Colors.amber,
  19. ),
  20. ),
  21. Positioned(
  22. top: 450,
  23. left: 90,
  24. child: Text(
  25. 'Inside stack widget', style: TextStyle(
  26. color: Colors.black,
  27. fontSize: 25.0,
  28. fontWeight: FontWeight.bold
  29. ),
  30. ),
  31. )
  32. ],
  33. ),
  34. );
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement