feat: update carousel image
Build & Deploy iOS to TestFlight / build-and-deploy (push) Canceled after 0s

This commit is contained in:
efrilm
2026-10-01 18:25:34 +07:00
parent cb5e5e70bf
commit e5515d5871
2 changed files with 4 additions and 5 deletions
@@ -30,10 +30,10 @@ class _HomePageState extends State<HomePage> {
CarouselSliderController(); CarouselSliderController();
final List<String> _carouselImages = [ final List<String> _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-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-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 @override
@@ -150,7 +150,6 @@ class _HomePageState extends State<HomePage> {
}, },
), ),
items: _carouselImages items: _carouselImages
.skip(1)
.map((imageUrl) => _buildImageSlide(imageUrl)) .map((imageUrl) => _buildImageSlide(imageUrl))
.toList(), .toList(),
); );
@@ -181,7 +180,7 @@ class _HomePageState extends State<HomePage> {
Widget _buildCarouselIndicators() { Widget _buildCarouselIndicators() {
return Row( return Row(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: List.generate(4, (index) { children: List.generate(_carouselImages.length, (index) {
return GestureDetector( return GestureDetector(
onTap: () => _carouselController.animateToPage(index), onTap: () => _carouselController.animateToPage(index),
child: Container( child: Container(
+1 -1
View File
@@ -3,7 +3,7 @@ description: "A new Flutter project."
publish_to: "none" publish_to: "none"
version: 1.0.0+2 version: 1.0.0+3
environment: environment:
sdk: ^3.8.1 sdk: ^3.8.1