-
Notifications
You must be signed in to change notification settings - Fork 21
upgrade to null safety #13
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
Open
lslv1243
wants to merge
36
commits into
FooStudio:master
Choose a base branch
from
lslv1243:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 3 commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
8c302ef
upgrade to null safety
lslv1243 467de07
updated dependencies
lslv1243 eb3efbd
remove unnecessary late
lslv1243 87f654c
using Pigment lib instead of reimplementing colorFromString
lslv1243 56d7d94
Update issue templates
calvintam236 f61116c
Update pubspec for this fork
calvintam236 f431be7
Update underlying color with setting alpha and opacity.
TNorbury 2f13899
restructure as a library
TNorbury 1997311
format code for pub points
TNorbury 797606a
Fixes issues #2 and #10 in FooStudio/tinycolor
dsyrstad ee3ab47
Merge pull request #5 from dsyrstad/master
calvintam236 acf1be2
Merge remote-tracking branch 'upstream/master' into fix_set_alpha_opa…
TNorbury 68d18fd
spelling
TNorbury 1fc89ce
Create SECURITY.md
calvintam236 7ab3574
Update issue templates
calvintam236 ee0125f
Merge pull request #9 from TinyCommunity/hotfix/issues-template
calvintam236 2d25c26
Merge pull request #10 from TinyCommunity/hotfix/security-policy
calvintam236 3cf7078
Update changelog template
calvintam236 89c7b9d
Merge pull request #12 from TinyCommunity/hotfix/changelog
calvintam236 e33128c
Merge pull request #4 from TNorbury/fix_set_alpha_opacity
calvintam236 eebc84c
Replace .gitignore from flutter/packages
calvintam236 a331464
Reimport .gitignore from dart template
calvintam236 d9737dc
Remove pubspec.lock
calvintam236 1274905
Merge pull request #14 from TinyCommunity/patch-gitignore
calvintam236 4b92abe
Add .equals() (#16)
calvintam236 c7b9db7
Fix #19
calvintam236 627818f
Merge pull request #20 from TinyCommunity/bugfix/hashcode
calvintam236 983245c
Update with template gitignore
calvintam236 4806874
Ignore OS related files
calvintam236 825a1b4
Ignore IDE related files
calvintam236 a6e7c4a
Add .toHex8() (#17)
calvintam236 c2c29d5
Merge pull request #21 from TinyCommunity/hotfix/gitignore
calvintam236 5a58244
Add autogenerated files in .idea/ folder (#22)
WieFel e52805a
Add component ProjectRootManager line in misc.xml (#23)
WieFel d3710c1
rename method copy -> clone
lslv1243 5b4b323
Merge https://github.com/TinyCommunity/tinycolor2
lslv1243 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was actually thinking just
or is that bad practice somehow? :) the extension seems overkill, just for the internals of a constructor. Or do you believe it is generally useful? Personally I haven't had the need yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would actually be (reference color):
I don't think it is overkill, since the extension is private.
I am used to creating extensions for these cases to simplify the constructor and improve formatting, but it is just a matter of taste.
Both ways will produce the same end result, as of before, it was allowing the variable to not be initialized if somebody was to change the constructor and probably adding a tiny runtime penalty.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, I forgot the color ref.
sorry, I did not realize it was a private extension. thanks for explaining