Created
August 4, 2020 04:30
-
-
Save becek2n/cc2b6a07145d85d423e460da629d9a9c to your computer and use it in GitHub Desktop.
This file contains 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
//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