パッケージ、リポジトリ、アプリカテゴリを検索

dismissible_carousel_viewpager のカバー
パッケージ詳細v0.0.7

dismissible_carousel_viewpager

これは、カルーセル効果とページが削除されたときに消えるアニメーションを提供するビュー・ペーパーです。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
85
いいね数
31
Pub ポイント
160

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

flutter pub add dismissible_carousel_viewpager

パッケージ概要

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

ページ削除時にスムーズなディスミスアニメーションを備えたカルーセルスタイルのViewPagerを実装するFlutterパッケージです。視覚的に魅力的なスワイプ可能なインターフェースとパララックス効果を提供することで、ユーザーインタラクションを向上させます。動的なコンテンツ表示と直感的なジェスチャーによるナビゲーションおよびアイテムの削除が必要なアプリに最適です。Android、iOS、Web、macOS、Windows、Linuxなど複数のプラットフォームをサポートしており、広範な互換性を確保しています。軽量で、既存のFlutterプロジェクトへの統合も簡単です。

用途

  • インタラクティブなコンテンツスライダー
  • スワイプで非表示にするギャラリー
  • カードベースのダイナミックインターフェース
  • EC商品カロセル
  • ユーザーのオンボーディングフロー
  • メディアブラウジング体験

主な機能

  • パララックス付きのカルーセル効果
  • スムーズな非表示アニメーション
  • ジェスチャー駆動型ページ削除
  • クロスプラットフォーム対応
  • Flutterとの簡単な統合
  • カスタマイズ可能なトランジション効果

適している対象

  • インタラクティブなUIを構築する開発者
  • スワイプ可能なコンテンツを持つアプリ
  • 視覚的な洗練を求めるデザイナー
  • モバイルファーストアプリケーション
  • Web およびデスクトップの Flutter アプリ
  • 直感的なジェスチャーを必要とするプロジェクト

注意事項

  • 大規模なデータセットに対してパフォーマンスチューニングが必要になる場合があります
  • 複雑なアニメーションのカスタマイズが限られている
  • 非常に高い頻度の更新には最適化されていません
  • 中程度のコンテンツリストに最適
  • キャンセル時に状態の処理に注意が必要です
  • 下位の ViewPager 実装の安定性に依存する

元の README

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

This is a view pager provides carousel effect and dismissal animation when page was removed.

Features

  • Dismissal animation
Fade out & slide out Fade out & scale Fade out & circular hide
dismissal_fade_slide_out dismissal_fade_scale dismissal_fade_circular_hide
  • Carousel effect
Horizontal Vertical
base_usage_horizontal base_usage_vertical

Web Live demo

This an example app of this plugin of web version.

https://zyzdev.github.io/dismissible_carousel_viewpager

Usage

More detail of usage see /example app.

Base usage:

More detail, please run demo Base Usage at /example app.

DismissibleCarouselViewPager(
  viewportFraction: 0.5,
  besidePageScale: 0.8,
  itemBuilder: (context, index) {
    return Container(
      alignment: Alignment.center,
      color: index.isEven
      ? Colors.blueAccent.withOpacity(0.1)
      : Colors.deepPurpleAccent.withOpacity(0.1),
      child: Text("Item:$index"),
    ); 
  },
  itemCount: 100,
);
Dismissal animation

More detail please run demo Dismissal Usage at /example app.

dismissible_carousel_viewpager provides several kinds of animation(fade out, slide out, scale and circular hide) to make dismissal animation.

You can combine them to make your own style of dismissal animation.

Note

The dismissal animation base on AnimatedSwitcher.

Remember add key to the page widget that created by DismissibleCarouselViewPager.itemBuilder.

I recommend using the data that preparing to create page widget to create Key("$data"), ValueKey(data) or ObjectKey(data) for the page widget.

####example:


late final List<int> _item = List.generate(1000, (index) => index);

DismissibleCarouselViewPager(
  itemCount: _item.length,
  itemBuilder: (context, index) {
    Object data = _item[index];
    return Container(
      // must add key
      key: Key("$data"),
      //key: ValueKey(data),
      //key: ObjectKey(data),
      alignment: Alignment.center,
      color: Colors.grey.withOpacity(0.1),
      child: Column(
        mainAxisSize: MainAxisSize.min,
        children: [
        Expanded(
          child: Container(
            alignment: Alignment.bottomCenter,
            child: Text("Item:$data"),
          ),
        ),
        Expanded(
          child: IconButton(
            icon: const Icon(Icons.delete),
            onPressed: () {
                setState(() {
                  _item.remove(data);
                });
              },
            ),
          ),
        ],
      ),
    );
  },
  dismissalConfig: DismissalConfig(
    dismissalTypes: [
      DismissalType.fadeOut(),
      DismissalType.slideOut(),
    ],
  ),
);

カテゴリー

ソースリポジトリ

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

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