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

Multiple date selection problem #58

Open
ilovexy2tom opened this issue Dec 27, 2024 · 3 comments
Open

Multiple date selection problem #58

ilovexy2tom opened this issue Dec 27, 2024 · 3 comments
Labels
bug Something isn't working released already released

Comments

@ilovexy2tom
Copy link

Confusion in selecting date

  1. When selecting a time range, the minimum date will exceed the maximum date

  2. When selecting a time, the maximum date will exceed the limited date

final ValueNotifier<DateTime> start =
ValueNotifier(DateTime.now().subtract(const Duration(days: 7)));
final ValueNotifier<DateTime> end = ValueNotifier(
DateTime.now(),
);

@override
Widget build(BuildContext context) {
return Material(
color: Colors.transparent,
child: InkWell(
onTap: () async {
final result = await showBoardDateTimeMultiPicker(
context: context,
pickerType: pickerType,
maximumDate: DateTime.now(),
minimumDate: DateTime.now().subtract(const Duration(days: 30)),
startDate: start.value,
endDate: end.value,
...

  1. Watch video
Screen_recording_20241227_161736.mp4
@ilovexy2tom
Copy link
Author

version: board_datetime_picker: 2.1.6

my flutter version 3.22.2

@mytooyo
Copy link
Owner

mytooyo commented Dec 27, 2024

@ilovexy2tom
Thank you for pointing that out. We will look into it, so please wait a moment.

@mytooyo mytooyo added the bug Something isn't working label Jan 2, 2025
mytooyo added a commit that referenced this issue Jan 5, 2025
@mytooyo mytooyo mentioned this issue Jan 5, 2025
mytooyo added a commit that referenced this issue Jan 5, 2025
* multiselection top widget
* #57 add reset button
* #58 fix multiple date selection bug
* #61 fix input form picker close
* v2.2.1 update
@mytooyo
Copy link
Owner

mytooyo commented Jan 5, 2025

@ilovexy2tom
The bug fix has been implemented in version 2.2.1.

@mytooyo mytooyo added the released already released label Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released already released
Projects
None yet
Development

No branches or pull requests

2 participants