mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
## Description This PR fixes the default value for `DateRangePickerDialog.currentDate`. Before this PR, the comment mentions that `currentDate` defaults to `DateTime.now()` but this is not the case (the value is not initialised). After this PR, `currentDate` defaults to `calendarDelegate.now()`. ## Related Issue Fixes [DateRangePickerDialog crashes when currentDate is omitted](https://github.com/flutter/flutter/issues/177441) ## Tests - Adds 1 test