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.