0 purchases
calendar picker
Calendar Picker #
This package enables the display of a Material Date Picker and offers additional functionality, including the ability to exclude specific dates.
Usage #
MaterialButton(
color: Colors.blue,
onPressed: () {
showCustomCalendarPicker(
context: context,
initialDate: DateTime.now(),
firstDate: DateTime.now(),
lastDate: DateTime.now().add(const Duration(days: 30)),
excluded: [
DateTime.now().add(const Duration(days: 2)),
DateTime.now().add(const Duration(days: 5)),
DateTime.now().subtract(const Duration(days: 5)),
],
onSelected: (date) {
print("date $date");
},
);
},
child: const Text("calendar picker", style: TextStyle(color: Colors.white),),
)
copied to clipboard
Contributing #
Any kind of support in the form of reporting bugs, answering questions or PRs is always appreciated.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.