Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix fontWeight binding (make it an abstract type)#776

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
MoOx merged 1 commit intomainfromfix-font-weight
Oct 20, 2022

Conversation

@cknitt
Copy link
Member

Closes#775

@cknittcknitt requested a review fromMoOxOctober 18, 2022 15:05
Copy link
Member

@MoOxMoOx left a comment

Choose a reason for hiding this comment

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

Nice. Sorry, I didn't had time to look for ideas as my life is a mess ATM :)
I guess we don't have much choice until syntax allow this.
Just thinking what user will have to do...
Previouslystyle(~fontWeight=#_100, ()) & nowstyle(~fontWeight=FontWeight._100, ()), that's correct ?

Since there is not a lot of value, why not just putting those directly at the root of Style module ?
If opened, this means people can dostyle(~fontWeight=_100, ()).

@cknitt
Copy link
MemberAuthor

Yes, that's correct.

I am not in favor of putting things directly intoStyle because:

  • Conceptually, these constants clearly belong toFontWeight;Style._100 seems weird compared toStyle.FontWeight._100.
  • If we get another property later that also needs a constantnormal, we'll have a name clash.
  • We are already doing it the same way withActivityIndicator.Size.small (notActivityIndicator.small).
MoOx reacted with thumbs up emoji

@MoOxMoOx merged commit44885db intomainOct 20, 2022
@MoOxMoOx deleted the fix-font-weight branchOctober 20, 2022 20:57
@MoOx
Copy link
Member

Not a fan (too verbose for me), but I guess you are right.

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

Reviewers

@MoOxMoOxMoOx approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

fontWeight broken in master

3 participants

@cknitt@MoOx

[8]ページ先頭

©2009-2025 Movatter.jp