time_duration_picker 0.0.1-dev.3 time_duration_picker: ^0.0.1-dev.3 copied to clipboard
A time picker for paired consecutive tasks. It lets you specify the icons for each of your actions and callbacks when the user rotates each icon.
A time picker for paired consecutive tasks. It lets you specify the icons for each of your actions and callbacks when the user rotates each icon. You can optionally give callback for the time duration, decorations for the knob, the knob background and also color for your icons. The time and duration values are not displayed by the TimeDurationPicker widget, instead they are passed to the callbacks provided.
Features #
Usage #
TimeDurationPicker(
diameter: 300,
icon1Data: Icons.notifications_none,
icon2Data: Icons.bed,
onIcon1RotatedCallback: (value) {
setState(() {
alarmTime = value;
});
},
onIcon2RotatedCallback: (value) {
setState(() {
bedTime = value;
});
})