搜索插件、代码仓与 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 项

源码仓库

使用此插件的项目

暂无相关数据。