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 32 forks source link

Add new option allowSingleTapDaySelection #14

Closed mauriziopinotti closed 7 months ago

mauriziopinotti commented 8 months ago

If the user wants to select a single-day range they need to tap twice (at least, if the initial date range is not null). Setting to true the new allowSingleTapDaySelection option will instead call onDateChanged even at the first tap.

The default value is false for backward compatibility.