0 purchases
spinner date time picker
This is a very simple spinner date picker, that i often use projects.
Features #
Set initial date time.
Set minimum date date.
Set maximum date date.
Set picker type. date, time or date&time.
Set 24h true/false.
Set time callback.
Getting started #
TODO: List prerequisites and provide or point to information on how to
start using the package.
Usage #
You can use it to make a dialog.
showDialog(
context: context,
builder: (context) {
var now = DateTime.now();
return Dialog(
child: SpinnerDateTimePicker(
initialDateTime: now,
maximumDate: now.add(Duration(days: 7)),
minimumDate: now.subtract(Duration(days: 1)),
mode: CupertinoDatePickerMode.dateAndTime,
use24hFormat: true,
didSetTime: (value) {
log.d("did set time: $value");
},
),
);
},
);
copied to clipboard
Additional information #
Nothing for now. Let me know if i missed anything i need to add.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.