Skip to content

Conversation

@a14n
Copy link
Contributor

@a14n a14n commented Jun 25, 2019

Description

Enables lint use_full_hex_values_for_flutter_colors

Related Issues

None

Tests

None

Breaking Change

Does your PR require Flutter developers to manually update their apps to accommodate your change?

  • Yes, this is a breaking change (Please read Handling breaking changes). Replace this with a link to the e-mail where you asked for input on this proposed change.
  • No, this is not a breaking change.

@a14n a14n requested a review from dnfield June 25, 2019 15:13
TextSpan(
text: 'inner',
style: TextStyle(color: Color(0xff402f4ff)),
style: TextStyle(color: Color(0xf402f4ff)),
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this pass?

I suspect the intention here was to have full alpha and drop that last f, but hard to say.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it passes locally. I didn't really know what was expected but as 0xff402f4ff is treated as 32 bits integer it's logically truncated on left.

Copy link
Contributor

@dnfield dnfield left a comment

Choose a reason for hiding this comment

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

LGTM

@a14n a14n merged commit b5ce061 into flutter:master Jun 25, 2019
@a14n a14n deleted the enable-lint-use_full_hex_values_for_flutter_colors branch June 25, 2019 15:58
johnsonmh pushed a commit to johnsonmh/flutter that referenced this pull request Jul 30, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants