Advertisement
Guest User

Untitled

a guest
Sep 15th, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. ListView(
  2. padding: const EdgeInsets.all(8.0),
  3. scrollDirection: Axis.horizontal, // scrollDirection: Axis.vertical, implements vertical scrolling
  4. children: <Widget>[
  5. Container(
  6. height: MediaQuery.of(context).size.height/4,
  7. width: MediaQuery.of(context).size.width/3,
  8. color: Colors.amber[600],
  9. child: const Center(child: Text('Entry A')),
  10. ),
  11. Container(
  12. height: 50,
  13. width: MediaQuery.of(context).size.width/3,
  14. color: Colors.amber[500],
  15. child: const Center(child: Text('Entry B')),
  16. ),
  17. Container(
  18. height: 50,
  19. width: MediaQuery.of(context).size.width/3,
  20. color: Colors.amber[100],
  21. child: const Center(child: Text('Entry C')),
  22. ),
  23. Container(
  24. height: 50,
  25. width: MediaQuery.of(context).size.width/3,
  26. color: Colors.amber[50],
  27. child: const Center(child: Text('Entry D')),
  28. ),
  29. ],
  30. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement