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

パッケージ詳細v1.0.2

parallax_cards

スクロールパララックス効果とカスタムカードオーバーレイ用のFlutterパッケージ

AndroidiOSmacOSWindowsLinux
30日間ダウンロード
92
いいね数
94
Pub ポイント
160

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

flutter pub add parallax_cards

パッケージ概要

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

ParallaxCards は、Flutter パッケージで、アプリ内でのスムーズなスクロールパララックス効果とカスタマイズ可能なカードオーバーレイを可能にします。ユーザーがコンテンツをスクロールする際のダイナミックで視覚的に魅力的なカード遷移を作成することで、ユーザー参加度を高めます。カルーセル、カバーフロー、またはインタラクティブギャラリーに最適で、Android、iOS、macOS、Windows、Linux など複数のプラットフォームをサポートしています。開発者はカードの外観、奥行き、アニメーション動作を簡単にカスタマイズできます。pub add を通じた最小限のセットアップで、既存の Flutter プロジェクトにシームレスに統合可能です。

用途

  • インタラクティブ製品ショーケース
  • ダイナミック画像スライダー
  • 魅力的なオンボーディング画面
  • ビジュアルデータダッシュボード
  • モバイルアプリのナビゲーションインターフェース

主な機能

  • スムーズなパララックススクロール
  • カスタマイズ可能なカードオーバーレイ
  • クロスプラットフォーム対応
  • pubとの簡単な統合
  • 設定可能な深さとアニメーション
  • レスポンシブデザインの処理

適している対象

  • インタラクティブなUIを構築する開発者
  • 視覚的な奥行きを求めるデザイナー
  • コンテンツが豊富なカルーセル付きアプリ
  • 魅力的なスクロール効果を必要とするプロジェクト
  • Flutter初心者がアニメーションを探求しています

注意事項

  • 低価格端末でのパフォーマンスに影響する可能性があります
  • アニメーションパラメータの微調整が必要です
  • 基本的な例以外のドキュメントは限られている
  • 非常に大きなデータセットには最適化されていません
  • 中程度のカード数に最適

元の README

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

Parallax Cards

A Flutter package for scrolling parallax effect and custom card overlays

Getting started

1. Depend on it

Add this to your package's pubspec.yaml file:

dependencies:
  parallax_cards: ^1.0.1
2. Install it

Install it from the command line:

$ flutter pub get
3. Import it

Now in your project you can use:

import 'package:parallax_cards/parallax_cards.dart';

Usage

ParallaxCards is a Stateless Widget which you can include in your widget tree. You can use it either vertically or horizontally by overriding the scrollDirection property:

Horizontal scroll view
ParallaxCards(
  scrollDirection: Axis.horizontal,
  imagesList: imagesList,
  width: 250,
  height: 350,
  onTap: (index) {
    log('$index pressed');
  },
),

img

Vertical scroll view

You can customize the card overlays according to your preferences by overriding the overlays property. However, ensure that the lengths of imageList and overlays are equal.

ParallaxCards(
                imagesList: imagesList,
                width: double.infinity,
                height: 200,
                onTap: (index) {
                  ScaffoldMessenger.of(context).showSnackBar(SnackBar(
                    content: Text("$index tapped"),
                    duration: const Duration(milliseconds: 500),
                  ));
                },
                overlays: [
                  for (var title in titlesList)
                    Stack(
                      children: [
                        Positioned.fill(
                          child: DecoratedBox(
                            decoration: BoxDecoration(
                              gradient: LinearGradient(
                                colors: [
                                  Colors.transparent,
                                  Colors.black.withOpacity(0.8)
                                ],
                                stops: const [0.5, 0.9],
                                begin: Alignment.topCenter,
                                end: Alignment.bottomCenter,
                              ),
                            ),
                          ),
                        ),
                        Positioned(
                          left: 16,
                          bottom: 12,
                          child: Text(
                            title,
                            style: const TextStyle(
                                fontSize: 22,
                                color: Colors.white,
                                fontWeight: FontWeight.bold),
                          ),
                        ),
                      ],
                    )
                ],
              ),

img

Additional information

Feel free to open an issue if you encounter any bugs or challenges. Pull requests are welcome!

カテゴリー

ソースリポジトリ

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

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