Closed ajinzrathod closed 2 years ago
If my pull request is not accepted, you can see how to reverse the days in this commit
After changing the actual library file, do this,
child: DatePicker(
DateTime.now().subtract(Duration(days: 5)),
initialSelectedDate: DateTime.now(),
selectionColor: Colors.black,
selectedTextColor: Colors.white,
daysCount: 6,
onDateChange: (date) {
// New date selected
}
reverseDays = true, // <-------------- Add this line
)
and it will show dates in reverse order
This is my code
This code shows me Dates from April 1st to April 6th, But what I want is to see dates in reverse order,
April 6 must be displayed first and then 5, 4, 3, 2, 1