搜尋套件、儲存庫與 APP 分類

flexi_productimage_slider 封面
套件詳情v1.1.1

flexi_productimage_slider

一個圖像滑塊,用於展示您的產品。:)

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
97
喜歡數
30
Pub 分數
100

安裝套件

flutter pub add flexi_productimage_slider

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

Flexi ProductImage Slider 是一個專為在流暢、可自訂的滑塊中顯示產品圖片而設計的 Flutter 套件。適用於電子商務應用,支援 Android、iOS、Web、macOS、Windows 和 Linux 等多個平台。該滑塊提供響應式設計與直覺導航,提升使用者瀏覽產品時的體驗。透過 `flutter pub add` 進行極簡設定,開發者可快速將引人入勝的圖片輪播整合至其應用程式中。特別適合展示產品變體,例如不同顏色或角度。

適用情境

  • 電子商務產品畫廊
  • 展示產品變體
  • 行動與網路商店
  • 產品詳情頁面
  • 互動式圖像輪播

主要特色

  • 可自定義的幻燈片過渡
  • 跨裝置的響應式設計
  • 與 Flutter 的輕鬆整合
  • 對多個平台的支援
  • 流暢的觸控導航

適合對象

  • 電子商務應用開發者
  • 以產品為中心的UI設計師
  • 跨平台移動和Web項目
  • 尋求輕量級圖像滑塊的開發者
  • 需要互動式產品展示的應用程式

使用建議

  • 有限的內建影像編輯工具
  • 預設情況下不會自動播放
  • 需要手動設定以進行進階樣式設定
  • 最適合靜態圖像集合
  • 依賴外部圖像來源

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

flexi_productimage_slider

An image slider to represents your products..:)

Features

  • Slide your products with thumbnail
  • set your thumbnail in any shapes, color, corner radius, size , alignment etc. as per your requirements
  • perform your action on click on image

Installation

In your pubspec.yaml file within your Flutter Project:

dependencies:
  flexi_productimage_slider: 1.1.0

import 'package:flexi_productimage_slider/flexi_productimage_slider.dart';

    flexiProductimageSlider(
    
        //required fields
        arrayImages: const [
        "https://i.ibb.co/ZLFHX3F/1.png",
        "https://i.ibb.co/JKJvs5S/2.png",
        "https://i.ibb.co/LCzV7b3/3.png",
        "https://i.ibb.co/L8JHn1L/4.png",
        "https://i.ibb.co/7RWNCXH/5.png",
        "https://i.ibb.co/bBsh5Pm/6.png",
        ],
        
        // optional fields
        
        //set where you want to set your thumbnail
        sliderStyle: SliderStyle.nextToSlider,//.overSlider, .nextToSlider
        
        // set you slider height like 1.0,1.5,2.0 etc...
        aspectRatio: 0.8,
        
        //set content mode of image
        boxFit: BoxFit.cover,

        //set this if you want to set any default image index when it loads
        selectedImagePosition: 0,
        
        //set your thumbnail alignment 
        thumbnailAlignment: ThumbnailAlignment.bottom,//.right , .left, .bottom

        //set how selected thumbnail border displayed
        thumbnailBorderType: ThumbnailBorderType.all,//.bottom, .all

        //set selected thumbnail border width
        thumbnailBorderWidth: 1.5,//double value
        
        //set thumbnail corner radius
        thumbnailBorderRadius: 10,
        
        //set your thumbnail height & width
        //NOTE : if you set ThumbnailShape.circle then set thumbnail width height same
        thumbnailWidth: 50,
        thumbnailHeight: 65,
        
        //set color of current image thumbnail border
        thumbnailBorderColor: Colors.blue,
        
        //make you action when user click on image
        onTap: (index){
           print("selected index : $index");

           //for zooming effect on click use gallery_zoom_slides
           //https://pub.dev/packages/gallery_zoom_slides
           Navigator.push(context, MaterialPageRoute(builder: (context)=>
                galleryZoomSlides(                
                        //required fields
                        arrayImages: arrayImages,
                        
                        //Optional fields
                        zoomTheme: ZoomTheme.theme3,//.theme1, .theme2, .theme3
                        selectedImagePosition: index,
                        selectedThumbnailColor: Colors.blue,
                  )
                  )
                );
           
        },
    ),

...


NOTE : Images taken only for demo purpose

所屬分類

依賴

依賴清單 1 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。