From e5515d58716145be165a52c7800be799baf97b49 Mon Sep 17 00:00:00 2001 From: efrilm Date: Thu, 1 Oct 2026 18:25:34 +0700 Subject: [PATCH] feat: update carousel image --- lib/presentation/pages/main/pages/home/home_page.dart | 7 +++---- pubspec.yaml | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/presentation/pages/main/pages/home/home_page.dart b/lib/presentation/pages/main/pages/home/home_page.dart index 4dcb1a9..a357fe2 100644 --- a/lib/presentation/pages/main/pages/home/home_page.dart +++ b/lib/presentation/pages/main/pages/home/home_page.dart @@ -30,10 +30,10 @@ class _HomePageState extends State { CarouselSliderController(); final List _carouselImages = [ - 'https://images.unsplash.com/photo-1509042239860-f550ce710b93?w=800&h=400&fit=crop', + 'https://sin1.contabostorage.com/fda98c2228f246f29a7e466b86b3b9e7:enaklo/public/03205d8f-2c06-4513-a952-21d1109f78ff_ramen_compressed_around_1mb(1)(1).jpg', 'https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?w=800&h=400&fit=crop', 'https://images.unsplash.com/photo-1461023058943-07fcbe16d735?w=800&h=400&fit=crop', - 'https://images.unsplash.com/photo-1574848794584-c740d6a5595f?w=800&h=400&fit=crop', + 'https://i.postimg.cc/YSx4jK2H/masakan-daerah-enhanced-under-2mb.jpg', ]; @override @@ -150,7 +150,6 @@ class _HomePageState extends State { }, ), items: _carouselImages - .skip(1) .map((imageUrl) => _buildImageSlide(imageUrl)) .toList(), ); @@ -181,7 +180,7 @@ class _HomePageState extends State { Widget _buildCarouselIndicators() { return Row( mainAxisAlignment: MainAxisAlignment.center, - children: List.generate(4, (index) { + children: List.generate(_carouselImages.length, (index) { return GestureDetector( onTap: () => _carouselController.animateToPage(index), child: Container( diff --git a/pubspec.yaml b/pubspec.yaml index e4b39a3..b20a957 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -3,7 +3,7 @@ description: "A new Flutter project." publish_to: "none" -version: 1.0.0+2 +version: 1.0.0+3 environment: sdk: ^3.8.1