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

パッケージ詳細v1.0.2

swipeable_card

ゲームやインタラクティブなオンボーディング画面用にスワイプ可能なカード型ウィジェットを追加する

30日間ダウンロード
41
いいね数
57
Pub ポイント
35

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

flutter pub add swipeable_card

パッケージ概要

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

swipeable_card パッケージは、開発者が左右にスワイプ可能なインタラクティブなカード型ウィジェットを作成できるようにし、Tinder風のインターフェースを実装するのに最適です。ゲームやオンボーディングフロー、またはカード間のジェスチャーによるナビゲーションが必要な任意のUIに特に役立ちます。最小限の設定でスムーズなアニメーションと直感的なスワイプジェスチャーを提供します。カスタムカードコンテンツやスワイプアクションをサポートしており、さまざまな用途に柔軟に対応できます。Flutterで構築されており、既存のプロジェクトにシームレスに統合可能です。

用途

  • インタラクティブなオンボーディング画面
  • Tinder風のマッチングインターフェース
  • ゲームカードメカニクス
  • スワイプベースのナビゲーション
  • ユーザーの好み収集
  • ダイナミックコンテンツの探索

主な機能

  • ジェスチャー駆動型のスワイプインタラクション
  • スムーズなアニメーションの遷移
  • カスタマイズ可能なカードコンテンツ
  • Flutter とのシンプルな統合
  • 左/右スワイプ操作をサポートしています
  • 軽量でパフォーマンスに優れる

適している対象

  • インタラクティブなUIを構築する開発者
  • オンボーディング画面作成者
  • ゲーム開発者
  • モバイルアプリデザイナー
  • 簡単なジェスチャーを探しているFlutter初心者
  • スワイプベースのユーザー入力が必要なアプリ

注意事項

  • 水平スワイプのみに制限
  • 垂直スワイプの組み込みサポートなし
  • スワイプの結果を手動で処理する必要があります
  • 大規模なカードリスト用に最適化されていない
  • 複雑なレイアウトには追加のスタイルが必要になる場合があります
  • 更新に外部のGitHubリポジトリに依存しています

元の README

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

Swipeable Card (v1.x.x)

Add swipeable card-like widgets for games or interactive onboarding screens

Pub PRs Welcome lic BMAC

Contents

🎮 Examples

Demo
SwipeableWidget (meant for high performance devices, like iPhones)
Demo 1
SwipeableWidgetSlide (meant for lower performance devices, like older Android devices)
  • Demo of SwipeableWidgetSlide to be added

Check the repository if you're unable to see the demo.

App examples

Swipeable Widget is used in the following apps:

  • Shots
  • Create a PR to add your own!

📒 Documentation

Installation

Add swipeable_card to your pubspec.yaml:

dependencies:
  flutter:
    sdk: flutter

  # added below
  swipeable_card: <latest version>
Adding to your app

The swipeable widget has to be placed in a Column (or Row), for example:

Column(
  children: <Widget>[
    SwipeableWidget(
      // parameters ...
      child: someChildWidget(),
    ),
  ],
)

In the above example, replace someChildWidget() with the widget that can be swiped (for example, a playing card-like widget).

Warning: while SwipeableWidget is fast on iPhones, it can be quite slow for older Android devices. I am currently working on SwipeableWidgetSlide, an alternative which can be used for older Android devices.

Check out https://swipeable-card.now.sh/ for the full documentation (still a work in progress).

😐 Issues and limitations

If you use the a swipeableWidgetController to automatically swipe the cards (without the user panning), you can only start swiping the next card away when the previous one is fully swiped away. To see a demo, run the example, and continuously tap the "Left" button at the bottom of the screen.

Apart from that, all the other problems from v0.0.x seem to be dealth with.

License

BSD 2-clause

📝 Other information

Project start date: 1 May, 2020.

カテゴリー

ソースリポジトリ

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

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