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

パッケージ詳細v1.0.3

flutter_counter

Flutter Counter は、Dart で書かれた、Flutter 向けのシンプルでカスタマイズ可能なプラグインです。他のウィジェットと同様に作成し、必要に応じてパラメータを追加するだけで、完了です!

30日間ダウンロード
42
いいね数
9
Pub ポイント
40

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

flutter pub add flutter_counter

パッケージ概要

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

Flutter Counter は、Flutter 向けの軽量でカスタマイズ可能な Dart パッケージであり、シンプルなカウンターウィジェットを提供します。任意の Flutter アプリに簡単に統合でき、初期値、ステップサイズ、範囲制限などの設定可能なオプションを使ってインクリメントおよびデクリメント可能なカウンターを作成できます。このウィジェットは直感的かつ柔軟に設計されており、カスタムスタイルや状態変化時のコールバックもサポートしています。フォームや数量選択、インタラクティブなUI要素に最適で、最小限のセットアップでユーザー体験を向上させます。

用途

  • フォーム入力コントロール
  • ショッピングカート内の数量セレクタ
  • インタラクティブなUI要素
  • ユーザーの好み設定
  • ゲームスコアの追跡

主な機能

  • カスタマイズ可能な初期値
  • 設定可能なステップサイズ
  • 範囲制限のサポート
  • 変更時のコールバック
  • シンプルな統合

適している対象

  • 初心者のFlutter開発者
  • シンプルなフォームコンポーネント
  • 軽量なUIの強化
  • 迅速なプロトタイピング
  • 基本的な数値入力の要件

注意事項

  • 基本的なカウント機能に限定されています
  • 組み込みの検証なし
  • 複雑な状態管理には適していない
  • 高度なデザインには手動でのスタイリングが必要です
  • プラットフォーム固有の最適化なし

元の README

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

Flutter Counter (iOS & Android)

Description

Flutter Counter is a plugin written in dart for flutter which is really simple and customizeable. Create it like any other widget, add params according to your need and presto! You have got the highly customizeable counter with callbacks. Zero boilerplate!



Getting Started

Create this widget as you do with other widgets

Counter(
  initialValue: _defaultValue,
  minValue: 0,
  maxValue: 10,
  step: 0.5,
  decimalPlaces: 1,
  onChanged: (value) { // get the latest value from here
    setState(() {
      _defaultValue = value;
    });
  },
),

Constructor Options

There are some required values and other are for the customization

  @required num initialValue    // default value
  @required this.minValue       // minimum value
  @required this.maxValue       // maximum value
  @required this.onChanged      // callback
  @required this.decimalPlaces  // decimal places you want to show the value of
  this.color                    // color of the buttons
  this.textStyle                // text style which displays the value
  this.step = 1                 // step you want to set to change value
  this.buttonSize = 25          // if you want to change size of button

Beautify your widget with provided customization. You can also change color and size of both buttons and text. Very simple to implement and looks awesome. You can find more details in sample app.

Contributions and Licence

FlutterCounter is available under the MIT license. See the LICENSE file for more info.

Pull requests are welcome! The best contributions will consist of substitutions or configurations for classes/methods known to block the main thread during a typical app lifecycle.

I would love to know if you are using Counter in your app, send an email to [Salmaan Ahmed](mailto:salmaan.ahmed@hotmail.com)

カテゴリー

依存関係

依存関係一覧 1 件

ソースリポジトリ

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

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