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

ticket_material のカバー
パッケージ詳細v0.3.1

ticket_material

チケットビューのウィジェット。すべてのプラットフォームをサポートしています。標準的なクリック動作があります。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
431
いいね数
32
Pub ポイント
150

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

flutter pub add ticket_material

パッケージ概要

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

プラットフォームに適応したデザインを備えたチケット風のビューを作成するFlutterウィジェットで、Android、iOS、Web、macOS、Windows、Linuxを含むすべての主要プラットフォームをサポートしています。ユーザー参加を促す標準的なクリックインタラクションと、現実世界のチケットを模倣する組み込みのビジュアルスタイルを備えています。カスタムクリッピングおよび装飾テクニックを使用して、デバイス間で洗練され、一貫した外観を提供します。イベントチケット、搭乗券、またはデジタルクーポンに最適です。

用途

  • デジタルチケット表示
  • イベントパスUI
  • 搭乗券インターフェース
  • ロイヤルティカードデザイン
  • プロモーションクーポンのレイアウト

主な機能

  • クロスプラットフォーム互換性
  • 組み込みのクリック動作
  • カスタマイズ可能なチケットスタイル
  • プラットフォーム固有のレンダリング
  • クリッパーに基づくデザイン
  • 応答性レイアウト

適している対象

  • チケットベースのUIを構築するアプリ開発者
  • 再利用可能なチケットコンポーネントが必要なデザイナー
  • 複数のプラットフォーム間で一貫したチケットビジュアルを必要とするプロジェクト

注意事項

  • 基本的なスタイル設定を超えるカスタマイズが限られている
  • プラットフォーム固有のレンダリング動作に依存しています
  • インタラクティブな機能には追加の状態管理が必要になる場合があります

元の README

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

ticket_material

A ticket view widget.

Platform compatibility

Plugin was tested on following platforms:

  • Android;
  • IOS;
  • Windows 10 64 bit;
  • Linux (Ubuntu 20.04.1 LTS).

The support of MacOS is not guaranteed, but you can try to build it.

Also on web platform it's does not work.

Usage

To use this plugin, add universal_navigation as a dependency in your pubspec.yaml file.

Getting Started

Add dependency into pubspec.yaml.

dependencies:
  ticket_material:

Create a page.

class ExamplePage extends StatefulWidget {
  static final routeName = '/example';

  @override
  _ExamplePageState createState() => _ExamplePageState();
}

class _ExamplePageState extends State<ExamplePage> {
  final colorBg = Colors.grey[300];

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: colorBg,
      body: SafeArea(
        child: Padding(
          padding: const EdgeInsets.all(16.0),
          child: TicketMaterial(
            height: 150,
            colorBackground: Colors.blue,
            leftChild: _buildLeft(),
            rightChild: _buildRight(),
          ),
        ),
      ),
    );
  }

  Widget _buildLeft() {
    return Container(
      child: Center(
        child: Text('LEFT PART'),
      ),
    );
  }

  Widget _buildRight() {
    return Container(
      child: Center(
        child: Icon(Icons.airplanemode_active),
      ),
    );
  }
}

Result: demo

With tap animation: demo_tap

Full example with ticket_material you can check by this link.

カテゴリー

ソースリポジトリ

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

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