A beautiful and animated time picker spinner
A beautiful and animated time picker spinner
Add the following line to your pubspec.yaml
file:
dependencies:
time_spinner_picker_plus: [latest]
A beautiful and animated time picker spinner
This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.
props | types | defaultValues |
---|---|---|
initialTime | DateTime | Current Time [ DateTime.now() ] |
minutesInterval | int | 1 |
secondsInterval | int | 1 |
is24h | bool | true |
isShowSeconds | bool | false |
selectedColor | Colors.black | false |
unSelectedColor | Colors.grey | false |
height | double | 100.0 |
fontSize | double | 16.0 |
onTimeChange | callback |
Widget widget() {
return TimeSpinnerPickerPlus(
selectedColor: Colors.red,
unSelectedColor:Colors.green,
is24h: false,
isShowSeconds: true,
onTimeChange: (value) {
setState(() {
data = value.toString();
});
},
);
}
For more customization options and advanced usage, refer to the API documentation .