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

time_picker_spinner のカバー
パッケージ詳細v1.0.2

time_picker_spinner

デフォルトのマテリアル時刻ピッカーではなく、スピンナーを使用した時刻ピッカー。このウィジェットは12時間または24時間形式およびカスタムインターバルモードに対応しており、このパッケージはアラビア語および英語のローカライズをサポートしています。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
1980
いいね数
9
Pub ポイント
130

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

flutter pub add time_picker_spinner

パッケージ概要

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

デフォルトのMaterial時間ピッカーではなく、スピンナーウィジェットを使用するFlutterパッケージです。12時間制および24時間制の両方に対応し、カスタマイズ可能な時間間隔をサポートしており、アラビア語(ar)と英語(en)のローカライズも提供しています。複数のプラットフォームで一貫した、Materialデザインではない時間選択UIが必要なアプリに最適です。軽量で、フォームや設定画面など、従来の時間ピッカーが必要な場面にスムーズに統合できます。

用途

  • フォーム内のカスタム時間入力
  • ローカル時刻の選択
  • 非素材UIデザイン
  • 時間間隔のカスタマイズ
  • クロスプラットフォームの時刻ピッカー
  • 時間入力付きの設定

主な機能

  • スピンナーベースの時刻選択
  • 12/24 時間形式のサポート
  • カスタムインターバルオプション
  • アラビア語および英語のローカライズ
  • すべての主要プラットフォームで動作します
  • 軽量で統合が簡単

適している対象

  • 代替の時刻ピッカーを探している開発者
  • ローカライズされた時刻入力が必要なアプリ
  • デザイナーが Material コンポーネントを避ける
  • マルチプラットフォームアプリケーション
  • フォーム中心のユーザーインターフェース

注意事項

  • 基本的な時間選択に限定
  • 組み込みの検証なし
  • 時間論理の手動処理が必要です
  • 複雑な時刻操作には適していません
  • 外部のローカライゼーション設定に依存しています

元の README

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

time_picker_spinner

Time Picker with spinner instead of a default material time picker. This widget works with 12 or 24 hour format and custom interval mode, and this package allow localization ar and en.

Pub Version

Demo gif

image

Installation

  1. Add this to your package's pubspec.yaml file:
dependencies:
  time_picker_spinner: any
  1. Get the package using your IDE's GUI or via command line with
$ pub get
  1. Import the time_picker_spinner.dart file in your app
import 'package:time_picker_spinner/time_picker_spinner.dart';

Features

  • This widget works with 12.
  • This widget works with 24.
  • allow localization ar and en.

Usage

EN
en short en long

image | image

TimePickerSpinner(
              locale: const Locale('en', ''),
              time: dateTime,
              is24HourMode: false,
              isShowSeconds: true,
              itemHeight: 80,
              normalTextStyle: const TextStyle(
                fontSize: 24,
              ),
              highlightedTextStyle:
                  const TextStyle(fontSize: 24, color: Colors.blue),
              isForce2Digits: true,
              onTimeChange: (time) {
                setState(() {
                  dateTime = time;
                });
              },
            )
Ar
ar short ar long

image | image

TimePickerSpinner(
              locale: const Locale('ar', ''),
              time: dateTime,
              is24HourMode: false,
              isShowSeconds: true,
              itemHeight: 80,
              normalTextStyle: const TextStyle(
                fontSize: 24,
              ),
              highlightedTextStyle:
                  const TextStyle(fontSize: 24, color: Colors.blue),
              isForce2Digits: true,
              onTimeChange: (time) {
                setState(() {
                  dateTime = time;
                });
              },
            )

Props

props types defaultValues
time DateTime Current Time [ DateTime.now() ]
minutesInterval int 1
secondsInterval int 1
is24HourMode bool true
isShowSeconds bool false
isShowSeconds bool false
highlightedTextStyle TextStyle false
normalTextStyle TextStyle false
itemHeight double 60.0
itemWidth double 45.0
spacing double 20.0
alignment AlignmentGeometry Alignment.centerRight
isForce2Digits bool false
onTimeChange TimePickerCallback
locale bool en

カテゴリー

ソースリポジトリ

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

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