Skip to content

Instantly share code, notes, and snippets.

@nucklearproject
Created August 5, 2018 01:47
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/19cdacdece22628a14ee3f8aaec56b8a to your computer and use it in GitHub Desktop.
Save nucklearproject/19cdacdece22628a14ee3f8aaec56b8a to your computer and use it in GitHub Desktop.
Flutter obtener ID
Container seleccionBlock(double rotacion, double margin, int contador) {
return Container(
margin: EdgeInsets.only(top: margin),
child: Transform.rotate(
angle: rotacion,
child: Container(
width: 110.0,
height: 196.0,
// padding: const EdgeInsets.all(4.0),
decoration: BoxDecoration(
color: const Color.fromRGBO(210, 107, 107, 1.0),
border: new Border.all(color: Colors.black54)
),
child: new Image(image: new AssetImage('assets/'+ aleatorio(contador)+'.jpg')),
),
));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment