Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear default dates in range and multiple picker. #11

Closed
zeiasoroush opened this issue Jun 19, 2020 · 1 comment
Closed

Clear default dates in range and multiple picker. #11

zeiasoroush opened this issue Jun 19, 2020 · 1 comment

Comments

@zeiasoroush
Copy link

when passing an empty list to some-calendar you select the
default dates value(DateTime.now()+4 days).I want to clear the default selected dates.
and let User select dates.
To Reproduce
Steps to reproduce the behavior:
1.SomeCalendar(
primaryColor: Color(0xff5833A5),
mode: SomeMode.Multi,
scrollDirection: Axis.vertical,
isWithoutDialog: true,
selectedDates: selectedDates,
selectedDate: selectedDate,
startDate: Jiffy().subtract(years: 3),
lastDate: Jiffy().add(months: 9),
done: (date) {},
),

1

@agryva
Copy link
Owner

agryva commented Jul 2, 2020

Hii @zeiasoroush
for the "somecalendar" range mode we deliberately provide a default date to reduce user confusion when using this calendar .
a solution, you might be able to provide users with information before using this calendar that the start date is only an initial value Thanks 😄

@agryva agryva closed this as completed Jul 2, 2020
agryva added a commit that referenced this issue Jul 2, 2020
agryva added a commit that referenced this issue Jul 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants