simple_time_range_picker 0.0.6 copy "simple_time_range_picker: ^0.0.6" to clipboard
simple_time_range_picker: ^0.0.6 copied to clipboard

A simple time range picker for flutter

simple_time_range_picker #

A simple_time_range_picker is simple time range widget.

Overview #

Getting Started #

Usage #

  • TimeRangePicker.show on call at onPressed ,onTap etc.
RaisedButton(
    child: Text("OpenPicker"),
    onPressed: () => TimeRangePicker.show(
        context: context,
    ),
);
copied to clipboard
  • Use onSubmitted to get the submit time
RaisedButton(
    child: Text("OpenPicker"),
    onPressed: () => TimeRangePicker.show(
        context: context,
        onSubmitted: (TimeRangeValue value) {
            print("${value.startTime} - ${value.endTime}");
        },
    ),
);
copied to clipboard

API #

name default note
okLabel OK set a label at ok button
cancelLabel CANCEL set a label at cancel button
startTime set a start time
endTime set a end time
headerDefaultStartLabel START set a label start time on header when empty
headerDefaultEndLabel END set a label end time on header when empty
autoAdjust true adjust if the start time is after the end time
unSelectedEmpty true returns null when not selected
timeRangeViewType TimeRangeViewType.start first view at start or end time
onStartTimeChange callback for changed start time
onEndTimeChange callback for changed end time
onSubmitted callback for submitted
onCancel callback for canceled
14
likes
130
points
186
downloads

Publisher

verified publishertrashfeed.net

Weekly Downloads

2024.07.03 - 2025.01.15

A simple time range picker for flutter

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on simple_time_range_picker