这是indexloc提供的服务,不要输入任何密码
Skip to content

Change elevation to double of MergeableMaterial #81634

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

Merged

Conversation

Abhishek01039
Copy link
Contributor

@Abhishek01039 Abhishek01039 commented May 2, 2021

Update elevation from int to double
Fixes #11468

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 feature I am adding, or Hixie said the 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.

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

@flutter-dashboard flutter-dashboard bot added f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. labels May 2, 2021
@google-cla google-cla bot added the cla: yes label May 2, 2021
@Abhishek01039
Copy link
Contributor Author

Abhishek01039 commented May 2, 2021

Hello @Hixie
can you please review this PR?
Thanks

@Hixie
Copy link
Contributor

Hixie commented May 2, 2021

test-exempt: code refactor

Please don't forget to update the commit message above.

There's a bunch of places in this file that use "toDouble" that should now be redundant. We should remove those as well. (@a14n: might be worth a lint -- flagging cases where one has used toDouble() on a type we know statically to be a double, and similar, e.g. .round() on an int, or .toString() on a String)

If this lands successfully, we should also consider doing the next one up the chain, ExpansionPanel.

@Abhishek01039
Copy link
Contributor Author

Thanks @Hixie
I have removed those and updated the commit message

Copy link
Contributor

@Hixie Hixie left a comment

Choose a reason for hiding this comment

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

LGTM, assuming the tests pass! (The Google Testing ones are the ones I'm mostly concerned about...)

@Abhishek01039
Copy link
Contributor Author

Abhishek01039 commented May 2, 2021

Hey @Hixie
I have seen you in one of the boring flutter show
you are good tutor as well as Engineer
thanks for your hard work because I can see today is your holiday still you are doing work for make flutter better!

@thecalamiity
Copy link
Contributor

thecalamiity commented May 2, 2021

Why the .toDouble() for the expansion tile?

@thecalamiity
Copy link
Contributor

thecalamiity commented May 2, 2021

Also this probably fixes #11468

@Abhishek01039
Copy link
Contributor Author

hello @MrBirb
because expansion tile has final int elevation;

@Hixie
Copy link
Contributor

Hixie commented May 3, 2021

we should file a bug about ExpansionPanelList using int for elevation now too

@Abhishek01039
Copy link
Contributor Author

Sure @Hixie
And please assign to me!
Thanks

@fluttergithubbot fluttergithubbot merged commit 74d403a into flutter:master May 3, 2021
@Hixie
Copy link
Contributor

Hixie commented May 3, 2021

By "we" I meant "you", really. :-)

@Abhishek01039 Abhishek01039 deleted the elevation_MergeableMaterial branch May 4, 2021 05:27
@Abhishek01039
Copy link
Contributor Author

Great

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.

MergeableMaterial should express elevation as a double not as an int
4 participants