Skip to content
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

Add effective text style selectors #38

Merged
merged 5 commits into from
Jan 19, 2024

Conversation

danielmolnar
Copy link
Collaborator

This PR adds the following text selectors:

  • WidgetSelector<Text> withEffectiveTextStyleMatching(MatchProp<TextStyle> match)
  • WidgetSelector<Text> withEffectiveTextStyle(TextStyle? value)

// Select with single props
spot<Text>().withText('Great Text').withEffectiveTextStyleMatching(
(style) {
final subject = style.isNotNull();
Copy link
Owner

Choose a reason for hiding this comment

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

isNotNull() should be unnecessary

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good catch.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done 55c1146

@passsy passsy merged commit 495bfee into passsy:main Jan 19, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants