Skip to content

Instantly share code, notes, and snippets.

@nucklearproject
Created August 10, 2018 01:19
Show Gist options
  • Select an option

  • Save nucklearproject/7c270963b6a1ca7a98183857039cbf3a to your computer and use it in GitHub Desktop.

Select an option

Save nucklearproject/7c270963b6a1ca7a98183857039cbf3a to your computer and use it in GitHub Desktop.

Revisions

  1. nucklearproject created this gist Aug 10, 2018.
    35 changes: 35 additions & 0 deletions test.dart
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,35 @@
    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))));
    }),
    )
    ],
    ))
    ],
    )
    ],
    ),