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

Dialog won't show #36

Open
felangga opened this issue Apr 8, 2020 · 3 comments
Open

Dialog won't show #36

felangga opened this issue Apr 8, 2020 · 3 comments

Comments

@felangga
Copy link

felangga commented Apr 8, 2020

I'm using Flutter version 1.12.13+hotfix.8 on stable channel.
The dialog won't show up and there's no error that I can track

@name-yy
Copy link

name-yy commented Apr 15, 2020

When initial date range(initialFirstDate ~ initialLastDate) outside limit range(firstDate ~ lastDate), there won't show up anything and there's no error.

@joshuadeguzman
Copy link

Hey, I think the README should be updated. The example provided there is not working at all, that's why there maybe some confusion with some folks.

@oieeaaaa
Copy link

oieeaaaa commented Aug 2, 2020

    final List<DateTime> range = await DateRangePicker.showDatePicker(
        context: context,
        initialFirstDate: DateTime.now(),
        initialLastDate: (DateTime.now()).add(Duration(days: 7)),
        firstDate: DateTime(2020),
        lastDate: DateTime(2050));

This works for me

The lastDate must be greater than the firstDate value.

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

4 participants