simple_time_range_picker

Last updated:

0 purchases

simple_time_range_picker Image
simple_time_range_picker Images
Add to Cart

Description:

simple time range picker

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

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.