flutter_time_picker_spinner 1.0.6+1

Flutter Android iOS web

Time Picker with spinner instead of a default material time picker. This widget works with 12 or 24 hour format and custom interval mode.

flutter_time_picker_spinner #

Time Picker widget with spinner instead of a material time picker.

12H format
<br/>
24H format
<br/>
24H format with second
<br/>
Custom style
<br/>

Getting Started #

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Props #

propstypesdefaultValues
timeDateTimeCurrent Time [ DateTime.now() ]
minutesIntervalint1
secondsIntervalint1
is24HourModebooltrue
isShowSecondsboolfalse
isShowSecondsboolfalse
highlightedTextStyleTextStylefalse
normalTextStyleTextStylefalse
itemHeightdouble60.0
itemWidthdouble45.0
spacingdouble20.0
alignmentAlignmentGeometryAlignment.centerRight
isForce2Digitsboolfalse
onTimeChangeTimePickerCallback

Usage #

import 'package:flutter_time_picker_spinner/flutter_time_picker_spinner.dart';

Widget widget() {
  return new TimePickerSpinner(
    is24HourMode: false,
    normalTextStyle: TextStyle(
      fontSize: 24,
      color: Colors.deepOrange
    ),
    highlightedTextStyle: TextStyle(
      fontSize: 24,
      color: Colors.yellow
    ),
    spacing: 50,
    itemHeight: 80,
    isForce2Digits: true,
    onTimeChange: (time) {
      setState(() {
        _dateTime = time;
      });
    },
  );
}
32
likes
90
pub points
93%
popularity

Time Picker with spinner instead of a default material time picker. This widget works with 12 or 24 hour format and custom interval mode.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

iceman.bsi@gmail.com

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_time_picker_spinner