カテゴリー・パッケージ・リポジトリを検索

overlapped_carousel のカバー
パッケージ詳細v1.0.2

overlapped_carousel

シンプルな水平オーバーラップカーソルウィジェットであるFlutterパッケージプロジェクト。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
616
いいね数
75
Pub ポイント
140

パッケージをインストール

flutter pub add overlapped_carousel

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

視覚的に魅力的な重なり効果を備えたアイテムを表示するのに理想的な、シンプルな水平オーバーラップカルーセルウィジェットを提供するFlutterパッケージです。スムーズなスクロールをサポートし、動的でインタラクティブなカード型レイアウトが必要なアプリ用に設計されています。軽量で、Android、iOS、Web、macOS、Windows、Linuxなどすべての主要プラットフォームと互換性があります。現代的で魅力的な方法で画像、製品、コンテンツを紹介するのに最適です。

用途

  • 画像ギャラリーの表示
  • プロダクトカードの紹介
  • インタラクティブなスライダーの作成
  • 注目コンテンツの紹介
  • モダンなUIレイアウトの構築

主な機能

  • 水平オーバーラップレイアウト
  • スムーズスクロールインタラクション
  • クロスプラットフォーム互換性
  • 軽量実装
  • カスタマイズ可能なアイテム間隔
  • pub add を通したシンプルな統合

適している対象

  • モバイルアプリ開発者
  • Webアプリケーションデザイナー
  • UI/UXクリエイター
  • 電子商取引インターフェース
  • インタラクティブコンテンツ表示

注意事項

  • 横方向に制限
  • 組み込みのページネーションコントロールなし
  • アイテム選択の手動処理が必要です
  • 大規模データセット向けに最適化されていません
  • 余白と配置以外のカスタマイズオプションは限られている

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

Overlapped Carousel

A horizontal overlapped carousel widget. The center widget will be at the top of the stack.

Demo

Demo 1 Demo 2
demo 1 demo 2

Installation

Add overlapped_carousel: ^1.1.0 to your pubspec.yaml dependencies. And import it:

import 'package:overlapped_carousel/overlapped_carousel.dart';

How to use

Simply add a OverlappedCarousel widget with required params.

  @override
  Widget build(BuildContext context) {
    var screenWidth = MediaQuery.of(context).size.width;
    var screenHeight = MediaQuery.of(context).size.height;
    return Scaffold(
      backgroundColor: Colors.blue,
      //Wrap with Center to place the carousel center of the screen
      body: Center(
        //Wrap the OverlappedCarousel widget with SizedBox to fix a height. No need to specify width.
        child: SizedBox(
          height: min(screenWidth / 3.3 * (16 / 9),screenHeight*.9),
          child: OverlappedCarousel(
            widgets: widgets, //List of widgets
            currentIndex: 2,
            onClicked: (index) {
              ScaffoldMessenger.of(context).showSnackBar(
                SnackBar(
                  content: Text("You clicked at $index"),
                ),
              );
            },
            // To obscure or blur cards not in focus use the obscure parameter.
            obscure: 0.4,
            // To control skew angle
            skewAngle: 0.25,
          ),
        ),
      ),
    );
  }

カテゴリー

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。