GaspardMerten / date_field

Flutter DateField and DateFormField
Other
46 stars 32 forks source link

fix clear button disappearing on rebuild #57

Closed torbenkeller closed 10 months ago

torbenkeller commented 10 months ago

When providing the current selected value as initialValue, the clear button disappears on rebuild. This was intendet to not show the clear button when the initial value was selected. But I realized this produces unexpected behaviour of the widget. After the change the user can still implement this himself by changing canClear from outside