• Ian Hickson's avatar
    Allow date pickers to not have selected date (#132343) · d19fb632
    Ian Hickson authored
    This enables our various date picker classes to have a null `initialDate`.
    
    It also fixes the logic of some of the widgets which used to do something when you _changed_ the `initial*` parameters, which is wrong for `initial*` properties (they by definition should only impact the initial state) and wrong for properties in general (behaviour should not change based on whether the widget was built with a new value or not, that violates the reactive design principles).
    
    Fixes https://github.com/flutter/flutter/issues/638.
    d19fb632
date_picker.dart 112 KB