Skip to content

Conversation

@viralkachhadiya
Copy link
Contributor

@viralkachhadiya viralkachhadiya commented Jun 24, 2021

Related to #85013

added new two enum dialOnly and inputOnly. when App writer choose this type of TimePickerEnteryMode, showing only that type of dialog and hide switch button. when App writer choose other mode, showing switch button .

@flutter-dashboard flutter-dashboard bot added f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. labels Jun 24, 2021
@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.

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.

@google-cla google-cla bot added the cla: yes label Jun 24, 2021
@viralkachhadiya
Copy link
Contributor Author

@darrenaustin
@HansMuller

Can you please check my latest PR?

@darrenaustin darrenaustin self-requested a review June 24, 2021 19:36
@viralkachhadiya viralkachhadiya changed the title Added new functionality in Time Picker Ability to specify which TimePickerEntryModes to use and hide switch button Jun 26, 2021
Copy link
Contributor

@darrenaustin darrenaustin left a comment

Choose a reason for hiding this comment

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

@viralkachhadiya thanks for the contribution. Looks good, but I have a few suggestions below.

In addition, we need a test to verify that this new feature works (and to prevent someone coming along later and breaking it 😉). You can add it to the rest of the time picker tests in: packages/flutter/test/material/time_picker_test.dart. If you need some help with this, you can look at the date picker PR that was mentioned in the bug report to see how that was tested.

@google-cla
Copy link

google-cla bot commented Jun 30, 2021

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@google-cla google-cla bot added cla: no and removed cla: yes labels Jun 30, 2021
@google-cla
Copy link

google-cla bot commented Jun 30, 2021

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@viralkachhadiya
Copy link
Contributor Author

@darrenaustin I resolved all issue and fixed with new structure. please checkout it.

@google-cla
Copy link

google-cla bot commented Jun 30, 2021

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@darrenaustin
Copy link
Contributor

Hi @viralkachhadiya, looks like there is an issue when you merged master. It picked up a bunch of changes that weren't from you, which throws off the CLA bot. The easiest way to fix this is to rebase your changes on top of master and then force push to your branch on github:

% git pull --rebase upstream master
% git push --force origin specifying_timepickermode_switchbutton

Copy link
Contributor

@darrenaustin darrenaustin 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 the updates, they look good (with a suggestion below).

However we still need an added test for this feature as I mentioned in my last review.

Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of an assert it would be better to use a FlutterError here. Take a look for other examples that use this. Also, _entryMode in the string needs a $ in front of it, or the error message will literarily be: `Can not change entry mode from _entryMode'.

@google-cla
Copy link

google-cla bot commented Jul 1, 2021

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@viralkachhadiya viralkachhadiya force-pushed the specifying_timepickermode_switchbutton branch from 728697a to c6c5da6 Compare July 1, 2021 08:29
@google-cla
Copy link

google-cla bot commented Jul 1, 2021

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@viralkachhadiya viralkachhadiya force-pushed the specifying_timepickermode_switchbutton branch from c6c5da6 to 28f09c9 Compare July 1, 2021 08:40
@google-cla
Copy link

google-cla bot commented Jul 1, 2021

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

1 similar comment
@google-cla
Copy link

google-cla bot commented Jul 1, 2021

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@viralkachhadiya
Copy link
Contributor Author

Hi @viralkachhadiya, looks like there is an issue when you merged master. It picked up a bunch of changes that weren't from you, which throws off the CLA bot. The easiest way to fix this is to rebase your changes on top of master and then force push to your branch on github:

% git pull --rebase upstream master
% git push --force origin specifying_timepickermode_switchbutton

i try it but still it has same merge issue.

@google-cla
Copy link

google-cla bot commented Jul 1, 2021

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

1 similar comment
@google-cla
Copy link

google-cla bot commented Jul 1, 2021

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@viralkachhadiya
Copy link
Contributor Author

@darrenaustin I did not know. Why is it happing?
Can you help me please?

@viralkachhadiya viralkachhadiya force-pushed the specifying_timepickermode_switchbutton branch from 5a8c3c3 to 2260767 Compare July 1, 2021 16:54
@google-cla
Copy link

google-cla bot commented Jul 1, 2021

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@viralkachhadiya viralkachhadiya force-pushed the specifying_timepickermode_switchbutton branch from 2260767 to 0b9005e Compare July 2, 2021 17:24
@google-cla
Copy link

google-cla bot commented Jul 2, 2021

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

1 similar comment
@google-cla
Copy link

google-cla bot commented Jul 2, 2021

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@viralkachhadiya viralkachhadiya force-pushed the specifying_timepickermode_switchbutton branch from cb569b7 to 3cfe83b Compare July 2, 2021 17:34
@google-cla google-cla bot added cla: yes and removed cla: no labels Jul 2, 2021
@viralkachhadiya
Copy link
Contributor Author

@darrenaustin can you check it?

@viralkachhadiya
Copy link
Contributor Author

@PixelToast @Piinks can you please review this pr?

Copy link
Contributor

@darrenaustin darrenaustin left a comment

Choose a reason for hiding this comment

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

@viralkachhadiya, sorry this took me a while to take another look at this. The code looks fine as I mentioned in my last review (although it looks like you have a new change that came in from a merge that will need to be reverted).

However, you keep requesting reviews for this change when you have not yet provided a test for that ensures this change works. I have asked now twice before, once with pointers on how to go about writing such a test. Without a test we will not be able to accept this PR as per https://github.com/flutter/flutter/wiki/Tree-hygiene#tests.

Copy link
Contributor

Choose a reason for hiding this comment

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

What does this change have to do with the TimePicker? It looks like something that came in with a merge that shouldn't have. Please revert this change.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i can't do it bcz whenever I merge my local branch with master then it is generate automatically

@viralkachhadiya viralkachhadiya force-pushed the specifying_timepickermode_switchbutton branch from 76a1beb to af22c2d Compare August 8, 2021 14:07
@viralkachhadiya
Copy link
Contributor Author

viralkachhadiya commented Aug 8, 2021

@darrenaustin I added test. please review my PR.

@Piinks
Copy link
Contributor

Piinks commented Aug 17, 2021

Hi @viralkachhadiya it looks like many tests are failing currently for this PR, can you take a look?

@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.

@Piinks
Copy link
Contributor

Piinks commented Sep 9, 2021

This PR has not been updated in a while, so I am going to close it. If you would like to continue working on this change, please re-open it. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants