Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Date Picker - placeholder #306

Closed
drandell opened this issue Apr 28, 2022 · 0 comments · Fixed by #406
Closed

Date Picker - placeholder #306

drandell opened this issue Apr 28, 2022 · 0 comments · Fixed by #406
Labels
enhancement New feature or request

Comments

@drandell
Copy link

More of a question than any particular bug. The documentation shows a placeholder for the date picker: https://pub.dev/packages/fluent_ui#date-picker

But me doing the same following the example :

// property.date is set to DateTime.now()
Row(
            mainAxisAlignment: MainAxisAlignment.spaceBetween,
            children: [
              Expanded(
                  child: Padding(
                      padding: const EdgeInsets.only(left: 5),
                      child: DatePicker(
                        header: property.label,
                        onChanged: (v) => setState(() => property.date = v),
                        selected: property.date,
                      )))
            ]);

Gives me the current date with no placeholder.
Since I can't set the selected value to null, is that screenshot/gif correct in the documentation?

Screenshots
Documentation placeholder screenshot:
image

@bdlukaa bdlukaa added the enhancement New feature or request label May 28, 2022
@bdlukaa bdlukaa mentioned this issue Jun 25, 2022
3 tasks
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants