-
Notifications
You must be signed in to change notification settings - Fork 35
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
Asynchrony problem #16
Comments
|
I would like to express my sincere thanks to you for your valuable support
in the recent project. Your help helped me to complete the task on time and
achieve the desired results.
Thanks again!
Have a great day!
…On Thu, 22 Aug 2024 at 02:43, tuxsoft ***@***.***> wrote:
Future<DateTimeRange?> customDateRangePickerAsync() async {
final completer = Completer<DateTimeRange?>();
DateTime? startDate;
DateTime? endDate;
showCustomDateRangePicker(
context,
dismissible: true,
minimumDate: DateTime.now().subtract(const Duration(days: 0)),
maximumDate: DateTime.now().add(const Duration(days: 30)),
endDate: endDate,
startDate: startDate,
backgroundColor: Theme.of(context).scaffoldBackgroundColor,
primaryColor: Theme.of(context).colorScheme.onPrimaryContainer,
onApplyClick: (start, end) {
DateTimeRange d = DateTimeRange(start: start, end: end);
completer.complete(d);
},
onCancelClick: () {
completer.complete(null);
},
);
return completer.future;
}
—
Reply to this email directly, view it on GitHub
<#16 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A6RV4HVZBFZMBWYYPB2TMDTZSTUXZAVCNFSM6AAAAABKODVE6OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBSHA4DIOJSHA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Like other date pickers, I think the showCustomDateRangePicker function should be an asynchronous function.
The text was updated successfully, but these errors were encountered: