time_pickerr 1.0.6 time_pickerr: ^1.0.6 copied to clipboard
A hour picker for DateTime.
Time Pickerr #
A flutter plugin for a horizontal picker.
Usage #
You can use time_pickerr as a normal widget like:
buildCustomTimer(BuildContext context) {
return CustomHourPicker(
elevation: 2,
onPositivePressed: (context, time) {
print('onPositive');
},
onNegativePressed: (context) {
print('onNegative');
},
);
};
or in a showdialog:
showDialog(
context: context,
builder: (BuildContext context) {
return buildCustomTimer(context);
},
);
Additional information #
Feel free to do pull requests or ask for changes on issues(on gitHub). There is a simple example on the github.