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: replace Text.rich with StyledText in subscription events #1265

Merged
merged 2 commits into from
Jun 20, 2024

Conversation

kevmo314
Copy link
Contributor

@kevmo314 kevmo314 commented Jun 20, 2024

Replaces Text.rich with StyledText in subscription_event.dart for enhanced text styling and consistency with follow_event.dart.

  • Imports the styled_text package at the beginning of the file to enable the use of StyledText.
  • Updates TwitchSubscriptionEventWidget, TwitchSubscriptionGiftEventWidget, and TwitchSubscriptionMessageEventWidget to use StyledText instead of Text.rich. This change allows for more flexible and consistent text styling across different event types.
  • Utilizes StyledTextTag within StyledText to maintain existing text styles and apply additional styling where necessary, ensuring visual consistency with the rest of the application.

For more details, open the Copilot Workspace session.

@kevmo314 kevmo314 enabled auto-merge (squash) June 20, 2024 20:54
@kevmo314 kevmo314 disabled auto-merge June 20, 2024 20:55
@kevmo314 kevmo314 enabled auto-merge (squash) June 20, 2024 20:57
@kevmo314 kevmo314 merged commit 20b226e into main Jun 20, 2024
5 checks passed
@kevmo314 kevmo314 deleted the kevmo314/update-subscription-event branch June 20, 2024 20:58
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