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

feat(CupertinoDatePicker): add a two points time seperator column #163417

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

koukibadr
Copy link

This pull request adds a flag attribute to cupertino date picker to show/hide the two points seperator ":" between minutes and hours, this feature add more customization to the cupertino date picker widget.
This new flag is by default set to false and it's an optional flag, the default cupertino date picker behavior stays the same.

CupertinoDatePIcker before:

CupertinoDatePicker After

List which issues are fixed by this PR. You must list at least one issue. An issue is not required if the PR fixes something trivial like a typo.
Here's the issue in question for more details about the proposal and the use cases:
Issue#163416

If you had to change anything in the flutter/tests repo, include a link to the migration guide as per the breaking change policy.

Pre-launch Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@github-actions github-actions bot added framework flutter/packages/flutter repository. See also f: labels. f: cupertino flutter/packages/flutter/cupertino repository labels Feb 16, 2025
Copy link
Contributor

@MitchellGoodwin MitchellGoodwin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for putting this together! I left a couple of comments.

@koukibadr koukibadr reopened this Mar 2, 2025
Copy link
Contributor

@MitchellGoodwin MitchellGoodwin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the updates. I left some comments, which I think addresses some of the failing checks.

Copy link
Contributor

@MitchellGoodwin MitchellGoodwin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the update. Just two things and then I think this is ready.

@MitchellGoodwin
Copy link
Contributor

@koukibadr I think this PR picked up some infra issues we were having last week. A lot of the failed checks look unrelated. Could you rebase this PR? It's not letting me do so through Github.

@koukibadr
Copy link
Author

Okay I'll rebase my branch with the latest updates

Copy link
Contributor

@MitchellGoodwin MitchellGoodwin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you for the PR. Next this will need a secondary reviewer before it can merge. I'll ask around for one.

Copy link
Contributor

@justinmc justinmc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two things we should probably fix, everything else are just ideas/suggestions.

  1. Misspelling of "separator"
  2. I think we should add a widget test that shows that the separator appears in the widget tree.

@koukibadr
Copy link
Author

@justinmc thanks for review, I'll update the implementation to resolve your review comments

@koukibadr koukibadr requested a review from justinmc March 16, 2025 15:05
Copy link
Contributor

@justinmc justinmc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with nits, thanks for the changes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
f: cupertino flutter/packages/flutter/cupertino repository framework flutter/packages/flutter repository. See also f: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants