Skip to content

Instantly share code, notes, and snippets.

@nucklearproject
Created August 10, 2018 01:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nucklearproject/7c270963b6a1ca7a98183857039cbf3a to your computer and use it in GitHub Desktop.
Save nucklearproject/7c270963b6a1ca7a98183857039cbf3a to your computer and use it in GitHub Desktop.
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