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

numeric_selector のカバー
パッケージ詳細v0.0.4

numeric_selector

Flutter用のカスタマイズ可能な数値選択ウィジェットで、垂直および水平スクロールをサポートしています。

AndroidiOS
30日間ダウンロード
83
いいね数
11
Pub ポイント
160

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

flutter pub add numeric_selector

パッケージ概要

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

Flutter用のカスタマイズ可能な数値セレクターウィジェットで、ユーザーが垂直または水平スクロールによって数値を選択できるようにします。設定可能なステップサイズ、範囲制限、およびビジュアルスタイルを備えたスムーズでインタラクティブなスクロールを提供します。従来のテキストフィールドなしで正確な数値入力が必要な設定に最適です。軽量であり、フォームや設定画面にシームレスに統合できます。

用途

  • 正確な数値選択を必要とするフォーム入力
  • 調整可能な値を持つ設定パネル
  • ダッシュボード内のカスタム番号ピッカー
  • タッチ操作に優れた数値入力が必要なモバイルUI
  • 時間または数量の構成インターフェース

主な機能

  • 垂直および水平スクロールをサポートしています
  • ステップサイズと値の範囲をカスタマイズ可能
  • カスタマイズ可能な外観とスタイル
  • スムーズスクロールアニメーション
  • 組み込みの値検証
  • カスタム動作用に拡張可能

適している対象

  • フォームベースのアプリを開発する開発者
  • 直感的な数値入力を必要とするデザイナー
  • タッチ最適化された数値選択を必要とするアプリ
  • 最小限の依存関係を持つプロジェクト
  • Android および iOS 向けの Flutter アプリ

注意事項

  • 数値入力のみに制限されています
  • 組み込みキーボード統合なし
  • 大きな値の範囲を手動で処理する必要があります
  • カスタマイズなしでは整数でない値には適していません
  • ハイコントラストのアクセシビリティのために追加のスタイリングが必要になる可能性があります

元の README

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

Numeric Selector

A customizable Numeric Selector package for Flutter, providing both Horizontal and Vertical Numeric Selector with smooth scrolling and optional vibration feedback.

Features

✅ Horizontal and Vertical pickers
✅ Customizable styles and colors
✅ Vibration feedback support
✅ Supports minimum, maximum, and step values
✅ Optional labels and arrow indicators

Installation

Add the following dependency to your pubspec.yaml file:

dependencies:
  numeric_selector: latest_version

Then, run:

flutter pub get

Demo

Horizontal Numeric Selector Vertical Numeric Selector
Horizontal Numeric Selector Vertical Numeric Selector

Usage

Horizontal Numeric Selector
HorizontalNumericSelector(
  minValue: 0,
  maxValue: 100,
  step: 1,
  initialValue: 50,
  onValueChanged: (value) {
    print("Selected Value: $value");
  },
  viewPort: 0.3,
  selectedTextStyle: TextStyle(fontSize: 32, fontWeight: FontWeight.bold),
  unselectedTextStyle: TextStyle(fontSize: 24, color: Colors.grey),
  backgroundColor: Colors.white,
  showLabel: true,
  label: "Quantity",
  showArrows: true,
  enableVibration: true,
)
Vertical Numeric Selector
VerticalNumericSelector(
  minValue: 1,
  maxValue: 10,
  step: 1,
  initialValue: 5,
  onValueChanged: (value) {
    print("Selected Value: $value");
  },
  viewPort: 0.3,
  selectedTextStyle: TextStyle(fontSize: 32, fontWeight: FontWeight.bold),
  unselectedTextStyle: TextStyle(fontSize: 24, color: Colors.grey),
  backgroundColor: Colors.white,
  borderRadius: BorderRadius.circular(10),
  showLabel: true,
  label: "Speed",
  showArrows: true,
  enableVibration: true,
)

Parameters

Parameter Type Description
minValue int Minimum selectable value
maxValue int Maximum selectable value
step int Step between values
initialValue int Default selected value
onValueChanged ValueChanged<int> Callback when value changes
viewPort double Fraction of viewport occupied by picker
selectedTextStyle TextStyle? Style for selected value
unselectedTextStyle TextStyle? Style for unselected values
backgroundColor Color? Background color
borderRadius BorderRadius? Corner radius for picker background
showLabel bool Show label text below selected value
label String? Custom label text
showArrows bool Show navigation arrows
arrowIcon IconData? Custom arrow icon
enableVibration bool Enable vibration feedback

Contributing

Contributions are welcome! Feel free to submit a PR or open an issue.

Contact

👤 Amirmahdi Nourkazemi
LinkedIn

License

This project is licensed under the MIT License.

カテゴリー

依存関係

依存関係一覧 1 件

ソースリポジトリ

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