Created
August 14, 2020 06:02
-
-
Save iabhishek07/54757e692f1f541b69bfe492d16bc49e 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
Container( | |
height: 550, | |
padding: EdgeInsets.only(left: 32.0), | |
child: Swiper( | |
// autoplay: true, | |
itemCount: characters.length, | |
itemWidth: MediaQuery.of(context).size.width - 2 * 64, | |
layout: SwiperLayout.STACK, | |
pagination: SwiperPagination( | |
builder: DotSwiperPaginationBuilder( | |
activeSize: 15.0, | |
color: Colors.white24, | |
activeColor: Colors.white, | |
), | |
), | |
itemBuilder: (context, index) { | |
return InkWell( | |
onTap: () { | |
Navigator.push( | |
context, | |
PageRouteBuilder( | |
pageBuilder: (context, a, b) => DetailPage( | |
charInfo: characters[index], | |
), | |
), | |
); | |
}, | |
), | |
), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment