v1.0.2time_picker_spinner
デフォルトのマテリアル時刻ピッカーではなく、スピンナーを使用した時刻ピッカー。このウィジェットは12時間または24時間形式およびカスタムインターバルモードに対応しており、このパッケージはアラビア語および英語のローカライズをサポートしています。
9いいね 198030日間ダウンロード130Pub ポイント
AndroidiOSWebmacOSWindowsLinux
デフォルトのマテリアル時刻ピッカーではなく、スピンナーを使用した時刻ピッカー。このウィジェットは12時間または24時間形式およびカスタムインターバルモードに対応しており、このパッケージはアラビア語および英語のローカライズをサポートしています。
以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。
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.
pubspec.yaml file:dependencies:
time_picker_spinner: any
$ pub get
time_picker_spinner.dart file in your appimport 'package:time_picker_spinner/time_picker_spinner.dart';
| en short | en long |
|---|

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 short | ar long |
|---|

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 | 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 |
依存関係一覧 3 件
{"sdk":"flutter"}{"sdk":"flutter"}—用途で絞り込み、開発状況を比較し、採用前に元のリポジトリで要件を確認しましょう。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗