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

refactor: convert hype train event to StyledText #1268

Merged
merged 1 commit into from
Jun 21, 2024

Conversation

kevmo314
Copy link
Contributor

@kevmo314 kevmo314 commented Jun 21, 2024

Updates the text rendering in TwitchHypeTrainEventWidget to use StyledText() for a more flexible and maintainable approach to styling.

  • Replaces Text.rich() with StyledText() for rendering text, aligning with the proposed resolution to utilize StyledText() for text styling.
  • Utilizes tags within StyledText() to apply styles, specifically using the <b> tag to style certain text segments as bold, which is achieved through the StyledTextTag and leveraging the Theme.of(context).textTheme.titleSmall for styling.
  • Maintains the original text content and structure, ensuring that the transition to StyledText() does not alter the message conveyed to the user.

For more details, open the Copilot Workspace session.

@kevmo314 kevmo314 enabled auto-merge (squash) June 21, 2024 03:54
@kevmo314 kevmo314 merged commit bb2c38a into main Jun 21, 2024
5 checks passed
@kevmo314 kevmo314 deleted the kevmo314/styledtext-hypetrain branch June 21, 2024 03:55
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.

1 participant