GaspardMerten / date_range_picker

Date Range Picker is a user-friendly and simple package for Flutter that allows users to select a date range. It's designed to evolve over time, and its components are built to be reusable.
MIT License
12 stars 31 forks source link

Cancel & Confirm buttons not showing #6

Closed razer-santhosh closed 1 year ago

razer-santhosh commented 1 year ago

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'); },
)

razer-santhosh commented 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'); }, ); });