Created
August 10, 2018 01:19
-
-
Save nucklearproject/7c270963b6a1ca7a98183857039cbf3a to your computer and use it in GitHub Desktop.
Create a Stack->ListView->Positioned
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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