Skip to content

Instantly share code, notes, and snippets.

@becek2n
Created August 4, 2020 04:30
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 becek2n/cc2b6a07145d85d423e460da629d9a9c to your computer and use it in GitHub Desktop.
Save becek2n/cc2b6a07145d85d423e460da629d9a9c to your computer and use it in GitHub Desktop.
//fungsi untuk return image list carousel
List<Widget> listImage(List list){
var obj = list.map((url){
return Container(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
ClipRRect(
child: InkWell(
onTap: (){
Navigator.of(context).push(MaterialPageRoute(builder: (context) => SliderShowFullmages(listImagesModel: list, current: _current)));
},
child: Image.asset(url, fit: BoxFit.fill, height: 255,),
)
)
],
),
);
}).toList();
return obj;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment