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

套件詳情v1.0.3

flutter_multi_carousel

一個簡單的輪播圖套件,支援多種類型和設定。

近 30 天下載
53
喜歡數
30
Pub 分數
25

安裝套件

flutter pub add flutter_multi_carousel

套件介紹

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

一個多功能的 Flutter 套件,可用於建立多種類型的輪播圖,並支援自訂設定。它支援多種輪播圖樣式,包括標準、封面流與互動式佈局,能實現順暢捲動與響應式設計。非常適合以視覺吸引人的方式展示圖片、產品或內容。此套件輕巧且易於整合,透過可配置的動畫、指示器與滑動手勢提供彈性。專為尋求動態、可重複使用的輪播元件但無需複雜設定的開發者所設計。

適用情境

  • 顯示圖像畫廊
  • 展示產品列表
  • 創建互動式內容滑塊
  • 建構入門畫面
  • 在應用中展示精選項目
  • 透過視覺過渡增強使用者參與度

主要特色

  • 多種幻燈片類型(標準、封面流)
  • 可自定義的動畫和過渡效果
  • 內建分頁指示器
  • 滑動手勢支援
  • 響應式佈局處理
  • 輕鬆整合,設定最少

適合對象

  • 行動應用開發者
  • UI/UX 設計師
  • 電子商務應用
  • 內容豐富的應用程式
  • 互動式原型
  • 需要動態內容顯示的應用程式

使用建議

  • 有限的平台特定自訂
  • 無內建自動播放控制
  • 需要手動處理大型數據集
  • 可能需要額外的樣式來處理複雜的佈局
  • 未針對高性能量境進行優化
  • 依賴外部倉庫進行更新

原始 README

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

Flutter_Carosel

A simple Carousel Widget with multiple configuration option.

...
dependencies:
 ...
 flutter_multi_carousel: ^1.0.0
...

And install it using flutter packages get on your project folder. After that, just import the module and use it:

import 'package:flutter/material.dart';
import 'package:flutter_multi_carousel/carousel.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Carousel Demo',
      home: CarouselExample(),
    );
  }
}

class CarouselExample extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: Carousel(
            height: 350.0,
            width: 350,
            initialPage: 3,
            allowWrap: false,
            type: Types.slideSwiper,
            onCarouselTap: (i) {
              print("onTap $i");
            },
            indicatorType: IndicatorTypes.bar,
            arrowColor: Colors.black,
            axis: Axis.horizontal,
            showArrow: true,
            children: List.generate(
                7,
                (i) => Center(
                      child:
                          Container(color: Colors.red.withOpacity((i + 1) / 7)),
                    ))),
      ),
    );
  }
}

For detailed demonstration refer this GitHub link

https://github.com/jaiswalshubham84/Flutter-Carousel

Getting Startedslide

Properties Type Default Value Description
height Double null Defines height of carousel.This field is required
width Double null Defines width of carousel. This field is required
axis Axis Axis.horizontal Defines axis of carousel.
type Types "simple" Defines type of carousel.
for ex: Types.simple, Types.slideSwiper, Types.xRotating, Types.yRotating, Types.zRotating, Types.multiRotating
onCarouselTap Function null A callback function
arrowColor Color Colors.white Define the color of arrow
arrowColor Color Colors.white Define the color of arrow
showIndicator Bool true Choice to show indicator in carousel
indicatorType IndicatorTypes bar Defines the type of indicator.
For ex: IndicatorTypes.bar, IndicatorTypes.dot, IndicatorTypes.bubble
initialPage int 0 Start your carousel with custom initial page number
activeIndicatorColor Color Colors.white Defines the color of active indicator
unActiveIndicatorColor Color Colors.black Defines the color of unactive indicator
indicatorBackgroundColor Color Color(0xff121212) Defines the background color of indicator
indicatorBackgroundOpacity Double 0.5 Defines the opacity of indicator background
allowWrap bool true Defines if the carousel should wrap once you reach the end or if your at the begining and go left if it should take you to the end


Credits

Developed by Shubham Jaiswal <jaiswal.shubham84@gmail.com>

Contributing

Feel free to Contribute!

For help getting started with Flutter, view our online documentation.

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。