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

horizontal_card_pager のカバー
パッケージ詳細v1.1.1

horizontal_card_pager

動的で美しいカードビューのスライダー(水平方向)を使用して、素晴らしいアプリを作成しましょう。

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

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

flutter pub add horizontal_card_pager

パッケージ概要

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

動的で視覚的に魅力的な水平カードページャーを作成するためのFlutterパッケージです。水平レイアウトでのスムーズでインタラクティブなカード遷移を可能にし、画像やカード、製品リストなどのコンテンツを表示するのに最適です。アニメーションのカスタマイズと複数プラットフォームでのレスポンシブデザインに対応しています。モダンな美学を持つ魅力的なスワイプ可能なカードインターフェースが必要なアプリに最適です。

用途

  • スワイプ可能な製品カルーセル
  • 画像ギャラリー
  • インタラクティブなコンテンツスライダー
  • オンボーディング画面
  • 機能ハイライトセクション
  • ユーザープロファイルの紹介

主な機能

  • 水平カードナビゲーション
  • スムーズなアニメーションの遷移
  • カスタマイズ可能なカードスタイル
  • レスポンシブデザインのサポート
  • クロスプラットフォーム互換性
  • 動的コンテンツの読み込み

適している対象

  • モバイルアプリ開発者
  • UI/UXデザイナー
  • 電子商取引アプリケーション
  • コンテンツ豊富なアプリ
  • インタラクティブプロトタイプ

注意事項

  • 大規模なデータセットに対して慎重なパフォーマンスチューニングが必要です
  • 無限スクロール用に追加の論理が必要になる可能性があります
  • 制限された組み込みページネーションインジケーター
  • 中程度のカード数に最適
  • 縦方向のレイアウトには最適化されていません
  • 高度な機能には外部の依存関係に依存しています

元の README

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

Use dynamic and beautiful card view pagers (horizontal direction) to help you create great apps.

Preview

Mobile
Web

Installing

  1. Add dependency to pubspec.yaml

    Get the latest version in the 'Installing' tab on pub.dartlang.org

dependencies:
    horizontal_card_pager: ^1.1.1
  1. Import the package
import 'package:horizontal_card_pager/horizontal_card_pager.dart';
import 'package:horizontal_card_pager/card_item.dart';
  1. Adding HorizontalCardPager

With optional parameters

HorizontalCardPager(
    initialPage : 2 // default value is 2
    onPageChanged: (page) => print("page : $page"),
    onSelectedItem: (page) => print("selected : $page"),
    items: { ... },  // set ImageCardItem or IconTitleCardItem class
))
  1. Put CardItem object in items parameter in HorizontalCardPager

If the contents of the card contain only images, use the ImageCardItem class. and If the contents of the card include an icon and a title, use the IconTitleCardItem class.

Image Icon & Text
imagetype icontitletype
ImageCardItem

class ImageCarditem extends CardItem {
  final Widget image;

  ImageCarditem({this.image});
}
IconTitleCardItem
class IconTitleCardItem extends CardItem {
  final IconData iconData;
  final String text;
  final Color selectedBgColor;
  final Color noSelectedBgColor;
  final Color selectedIconTextColor;
  final Color noSelectedIconTextColor;

  IconTitleCardItem(
      {this.iconData,
      this.text,
      this.selectedIconTextColor = Colors.white,
      this.noSelectedIconTextColor = Colors.grey,
      this.selectedBgColor = Colors.blue,
      this.noSelectedBgColor = Colors.white});
}

How to use

Check out the example app in the example directory or the 'Example' tab on pub.dartlang.org for a more complete example.

Reference

This package's animation is inspired from from this Dribbble art.

TODO

  • [x] Attach Gesture Detector
  • [x] implement call back method
  • [x] Enable to customize card design
    • [x] icon & title
    • [x] image only
  • [x] Implements sample app
  • [x] Publish plugin

カテゴリー

ソースリポジトリ

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

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