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

[Feature] How to get selection date click on ok without closing dialog. #30

Closed
DipakSkywave opened this issue Nov 4, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@DipakSkywave
Copy link

var results = await showCalendarDatePicker2Dialog(
context: context,
config: CalendarDatePicker2WithActionButtonsConfig(
calendarType: CalendarDatePicker2Type.range,
lastDate: DateTime.now(),
shouldCloseDialogAfterCancelTapped: true,
okButton: InkWell(
onTap: () {
print('Get Selection Date=====>>>');
},
child: Text('OK'),
dialogSize: Size(400, 400),
borderRadius: BorderRadius.circular(15),
);

this is my code.

Please, anyone let me know if any idea. 
Thank you in advance.
@theideasaler
Copy link
Owner

theideasaler commented Nov 4, 2022

Hi @DipakSkywave , this is not supported and is against the idea of dialog usage.

If you want to have it available, you will probably need to implement it yourself by wrapping CalendarDatePicker2WithActionButtons widget inside your own dialog

@theideasaler theideasaler added the enhancement New feature or request label Nov 4, 2022
@theideasaler theideasaler changed the title [Bug] How to get selection date click on ok without closing dialog. [Feature] How to get selection date click on ok without closing dialog. Nov 4, 2022
@theideasaler theideasaler added the good first issue Good for newcomers label Nov 4, 2022
@theideasaler theideasaler removed the good first issue Good for newcomers label Nov 9, 2022
@theideasaler theideasaler reopened this Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants