spinner_date_time_picker

Creator: coderz1093

Last updated:

0 purchases

spinner_date_time_picker Image
spinner_date_time_picker Images

Languages

Categories

Add to Cart

Description:

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.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.