-
-
Notifications
You must be signed in to change notification settings - Fork 546
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
FormBuilderDateRangePicker example #290
Comments
Hi @jaxnz, The assertion is however strict, down to the millisecond, that if both the end time of your How would you have it? |
The assertion states: So I think the assertion should be:
This means the user doesn't need to fumble around with subtracting from I also think the If you agree, I am happy to do a PR |
Can be close this issue? |
Closed issue because example of FormBuilderDateRangePickerState alreasy exist |
Hi @danvick
Could you add an example for FormBuilderDateRangePicker / FormBuilderDateRangePickerState in documentation? I'm trying to Implement, but unsure how.
EDIT: Sorry - I am Implementing it like this:
With this I am getting an error:
Actually.. I have kinda figured it out.. Still would like a example. I am going do a PR to tidy it up as its quite broken and hard to use.
Second EDIT:
@danvick would you consider baking in
date_range_picker
- the author is no longer contributing and some assertions are broken. For example if I give initialValue these parameters:initialValue: [DateTime.now().subtract(Duration(days: 30)), DateTime.now()]
I get the assertion error: 'initialDate must be on or after firstDate'
But if I give initialValue these parameters, it works fine
initialValue: [DateTime.now().subtract(Duration(days: 30)), DateTime.now().subtract(Duration(seconds: 1))]
Jackson
The text was updated successfully, but these errors were encountered: