diff --git a/lib/controller/home/event_list_controller.dart b/lib/controller/home/event_list_controller.dart index 9d4b1b9..852aac4 100644 --- a/lib/controller/home/event_list_controller.dart +++ b/lib/controller/home/event_list_controller.dart @@ -22,8 +22,8 @@ class EventListController extends GetxController with GetTickerProviderStateMixi late final TabController tabController; final imgList = [ - "https://dating-agency-prod.oss-cn-shenzhen.aliyuncs.com/57211062B4AA.jpg", - "https://dating-agency-prod.oss-cn-shenzhen.aliyuncs.com/175A787530A6.jpg", + // "https://dating-agency-prod.oss-cn-shenzhen.aliyuncs.com/57211062B4AA.jpg", + // "https://dating-agency-prod.oss-cn-shenzhen.aliyuncs.com/175A787530A6.jpg", "https://dating-agency-prod.oss-cn-shenzhen.aliyuncs.com/06109B7B681A.jpg" ].obs; diff --git a/lib/pages/home/event_list.dart b/lib/pages/home/event_list.dart index 4bb86c7..d84e7a7 100644 --- a/lib/pages/home/event_list.dart +++ b/lib/pages/home/event_list.dart @@ -68,9 +68,12 @@ class EventList extends StatelessWidget { padding: EdgeInsets.all(15.w), height: 165.w, child: Swiper( - autoplay: true, - itemCount: 3, + autoplay: false, + itemCount: 1, loop: true, + onTap: (int index){ + TDImageViewer.showImageViewer(context: context, images: ["https://dating-agency-test.oss-accelerate.aliyuncs.com/35BA357937A1.jpg"]); + }, itemBuilder: (BuildContext context, int index) { return CachedNetworkImage( imageUrl: controller.imgList[index],