Closed razer-santhosh closed 1 year ago
I didn't used the showDateRangePickerDialog, now, it's fixed.
showDateRangePickerDialog( context: context, builder: (BuildContext context, dynamic Function(DateRange) onDateRangeChanged) { return DateRangePickerWidget( height: height * 0.412, doubleMonth: false, maximumDateRangeLength: 7, minimumDateRangeLength: 7, minDate: DateTime(2020), maxDate: DateTime(2025), initialDateRange: DateRange(DateTime.now(), DateTime.now().add(const Duration(days: 7))), initialDisplayedDate: DateTime.now(), onDateRangeChanged: (val) { print('val -$val'); }, ); });
DateRangePickerWidget( height: height * 0.412, doubleMonth: false, maximumDateRangeLength: 7, minimumDateRangeLength: 7, minDate: DateTime(2020), maxDate: DateTime(2025), initialDateRange: DateRange(DateTime.now(), DateTime.now().add(const Duration(days: 7))), initialDisplayedDate: DateTime.now(), onDateRangeChanged: (val) { print('val -$val'); },
)