Skip to content

Conversation

@hunterwilhelm
Copy link

@hunterwilhelm hunterwilhelm commented Jan 14, 2023

Continuing with the pattern between the modes date and time having two different states.
Made a monthYear state that renders and stores values for month and year Is compatible with the localization of the date mode.
Changed asserts to match the same expectations.

Fixes issue/feature requests: [#93508]

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
  • I signed the CLA.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

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

Continuing with the pattern between the modes `date` and `time` having two different states.
Made a `monthYear` state that renders and stores values for month and year
Is compatible with the localization of the `date` mode.
@flutter-dashboard flutter-dashboard bot added f: cupertino flutter/packages/flutter/cupertino repository framework flutter/packages/flutter repository. See also f: labels. labels Jan 14, 2023
@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on Discord!).

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@hunterwilhelm
Copy link
Author

I am stuck on making the tests. I am not understanding the matchesGoldenFile function. I am getting guidance in discord under the #hackers-framework-🔩 channel

@MitchellGoodwin
Copy link
Contributor

Hi @hunterwilhelm. Thanks for the contribution! This looks like a really great addition. I saw you are asking in the discord about setting up a golden test, and that is the place to ask about it. In the mean time, it'd be best to also add some testing that don't use golden files that can be ran locally easier.

Also, it looks like you have some linting errors still.
info • The declaration '_scrollToDate' isn't referenced • packages/flutter/lib/src/cupertino/date_picker.dart:1647:8 • unused_element

@flutter-dashboard
Copy link

This pull request executed golden file tests, but it has not been updated in a while (20+ days). Test results from Gold expire after as many days, so this pull request will need to be updated with a fresh commit in order to get results from Gold.

For more guidance, visit Writing a golden file test for package:flutter.

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@MitchellGoodwin
Copy link
Contributor

Hi @hunterwilhelm. Hope all is well. Are you still working on this?

@MitchellGoodwin
Copy link
Contributor

Hi @hunterwilhelm. I hope all is going well. As this has not been updated in some time I am going to close this PR to clear up our queue. Please feel free to reopen if you ever are able to work on this change again. :)

lindsaypj added a commit to lindsaypj/flutter that referenced this pull request Apr 25, 2023
lindsaypj added a commit to lindsaypj/flutter that referenced this pull request Apr 27, 2023
@hunterwilhelm
Copy link
Author

For anyone wondering, this feature was added by the flutter team in 3.13! https://medium.com/flutter/whats-new-in-flutter-3-13-479d9b11df4d

@hunterwilhelm hunterwilhelm deleted the patch-1 branch April 20, 2024 22:49
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.

2 participants