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

cart_stepper のカバー
パッケージ詳細v4.3.0

cart_stepper

カウントを取得するための完全にカスタマイズ可能なFlutterウィジェットです。ECサイトアプリでカートカウントに使用できます。

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

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

flutter pub add cart_stepper

パッケージ概要

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

Eコマースアプリケーションに最適な、アイテム数を管理および表示するための完全にカスタマイズ可能なFlutterウィジェットです。スムーズなアニメーションで数量を増減でき、ボタン、テキストスタイル、動作のカスタマイズが可能です。軽量であり、複数のプラットフォームにおけるショッピングカートや製品数量セレクターにシームレスに統合できます。

用途

  • EC商品数量選択
  • ショッピングカートアイテム数の管理
  • フォーム内のカスタマイズ可能な数値入力
  • モバイルおよびウェブ在庫追跡
  • リアルタイム注文の更新

主な機能

  • 完全にカスタマイズ可能な外観
  • スムーズなインクリメント/デクリメントアニメーション
  • すべての主要プラットフォームをサポートしています
  • カスタマイズ可能なボタンスタイルとサイズ
  • 組み込みの検証と範囲制御
  • 既存のUIとの簡単な統合

適している対象

  • ECアプリを開発する開発者
  • インタラクティブなカウンターが必要なUIデザイナー
  • クロスプラットフォームのモバイルおよびウェブプロジェクト
  • 直感的な数量入力を必要とするアプリ

注意事項

  • 状態管理を手動で処理する必要があります
  • 範囲を超える内蔵検証は限定的です
  • 非常に大きな数に対して最適化されていない
  • 複雑なテーマには追加のスタイル設定が必要になる場合があります
  • 高度な機能には外部の依存関係に依存しています

元の README

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

cart_stepper

pub package

A fully customizable Flutter Widget to get count. It can be applicable in e-commerce apps for getting cart count.

This package is Forked from AYNStepperView

Preview

Arguments

  • count: int/double, the number to show
  • stepper: int/double, the number to increasing or decreasing
  • size: double, widget size
  • axis: Axis, layout direction
  • numberSize: double, number spacer, default 2
  • didChangeCount: Function, @required to set the release counter
  • style: CartStepperStyle
  • alwaysExpanded: bool, always expanded while value is 0
  • elevation: double, display a shadow around this widget

CartStepperStyle:

  • activeForegroundColor: Color, text color when counter > 0
  • activeBackgroundColor: Color, background color when counter > 0
  • foregroundColor: Color, text color when counter == 0
  • backgroundColor: Color, background color when counter == 0
  • shape: BoxShape,
  • radius: Radius, the borderRadius of this widget, default caculating a roundedRectAngle
  • BoxBorder: Border of the Widget
  • shadowColor: Color
  • textStyle,
  • iconTheme = const IconThemeData(),
  • iconPlus: IconData, customize the plus icon
  • iconMinus: IconData, customize the minus icon
  • buttonAspectRatio: plus & minux button's aspectRatio, default 1,
  • elevation: Widget's elevation,

Using

Create a widget to show and modify a number:

Widget _buildStepper() {
  return CartStepperInt(
        count: _counter,
        size: 30,
        style: CartStepperTheme.of(context).copyWith(activeForegroundColor: Colors.purple,)
        didChangeCount: (count) {
        setState(() {
        _counter = count;
        });
      },
  );
}

Migrating

// from 3.x to 4.x
// CartStepperStyle.
deActiveForegroundColor => foregroundColor
deActiveBackgroundColor => backgroundColor

OnlineDemo

カテゴリー

依存関係

依存関係一覧 1 件

ソースリポジトリ

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

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