Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Create a Stack->ListView->Positioned
body: new Stack(
children: <Widget>[
new Container(
decoration: _recursos.backgroundImageComun(),
),
new Column(
children: <Widget>[
new Container(
height: 196.0,
child: new Stack(
children: <Widget>[
new ListView(
scrollDirection: Axis.horizontal,
children: new List.generate(15, (int index) {
new Positioned(
child: new GestureDetector(
onTap: () {
randomizer(index);
},
child: new Container(
width: 110.0,
height: 196.0,
child: new Image(
image: new AssetImage(
'assets/bgcard-a.jpg'),
fit: BoxFit.cover))));
}),
)
],
))
],
)
],
),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment