Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ListView(
- padding: const EdgeInsets.all(8.0),
- scrollDirection: Axis.horizontal, // scrollDirection: Axis.vertical, implements vertical scrolling
- children: <Widget>[
- Container(
- height: MediaQuery.of(context).size.height/4,
- width: MediaQuery.of(context).size.width/3,
- color: Colors.amber[600],
- child: const Center(child: Text('Entry A')),
- ),
- Container(
- height: 50,
- width: MediaQuery.of(context).size.width/3,
- color: Colors.amber[500],
- child: const Center(child: Text('Entry B')),
- ),
- Container(
- height: 50,
- width: MediaQuery.of(context).size.width/3,
- color: Colors.amber[100],
- child: const Center(child: Text('Entry C')),
- ),
- Container(
- height: 50,
- width: MediaQuery.of(context).size.width/3,
- color: Colors.amber[50],
- child: const Center(child: Text('Entry D')),
- ),
- ],
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement