File tree Expand file tree Collapse file tree 1 file changed +25
-27
lines changed Expand file tree Collapse file tree 1 file changed +25
-27
lines changed Original file line number Diff line number Diff line change @@ -975,33 +975,31 @@ class _MyHomePageState extends State<MyHomePage>
975975// ).toList(),
976976// ),
977977//
978- // GFCarousel(
979- //// pagerSize: 12.0,
980- //// activeIndicator: Colors.pink,
981- //// passiveIndicator: Colors.pink.withOpacity(0.4),
982- //// viewportFraction: 1.0,
983- //// aspectRatio: 1.0,
984- //// autoPlay: true,
985- //// enlargeMainPage: true,
986- //// pagination: true,
987- // items: imageList.map(
988- // (url) {
989- // return Container(
990- // margin: EdgeInsets.all(8.0),
991- // child: ClipRRect(
992- // borderRadius: BorderRadius.all(Radius.circular(5.0)),
993- // child:
994- // Image.network(url, fit: BoxFit.cover, width: 1000.0),
995- // ),
996- // );
997- // },
998- // ).toList(),
999- // onPageChanged: (index) {
1000- // setState(() {
1001- // // index;
1002- // });
1003- // },
1004- // ),
978+ GFCarousel (
979+ pagerSize: 12 ,
980+ activeIndicator: Colors .pink,
981+ passiveIndicator: Colors .pink.withOpacity (0.4 ),
982+ viewportFraction: 1.0 ,
983+ // aspectRatio: 1,
984+ autoPlay: true ,
985+ enlargeMainPage: true ,
986+ pagination: true ,
987+ items: imageList.map (
988+ (url) => Container (
989+ margin: const EdgeInsets .all (12 ),
990+ child: ClipRRect (
991+ borderRadius: const BorderRadius .all (Radius .circular (5 )),
992+ child:
993+ Image .network (url, fit: BoxFit .cover, width: 1000 ),
994+ ),
995+ )
996+ ).toList (),
997+ onPageChanged: (index) {
998+ setState (() {
999+ // index;
1000+ });
1001+ },
1002+ ),
10051003
10061004// GFTabs(
10071005// initialIndex: 0,
You can’t perform that action at this time.
0 commit comments