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 rich text spans with StyledText #1264

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

kevmo314
Copy link
Contributor

@kevmo314 kevmo314 commented Jun 20, 2024

Replaces Text.rich widgets with StyledText widgets in raid_event.dart and raiding_event.dart files to improve text formatting consistency.

  • Text Formatting: Implements StyledText for dynamic text formatting in raid_event.dart and raiding_event.dart, replacing the previous Text.rich implementations. This change aligns with the use of StyledText in other parts of the application for consistent text styling.
  • Tag-based Styling: Utilizes tags within StyledText to apply text styles, making the code more readable and maintainable. This approach simplifies the styling process by using predefined tags instead of manual TextSpan configurations.
  • Maintains Visual Output: Ensures that the visual output remains unchanged by matching the StyledText styling with the previous TextSpan styling, thus preserving the user interface's look and feel.

For more details, open the Copilot Workspace session.

@kevmo314 kevmo314 enabled auto-merge (squash) June 20, 2024 20:44
@kevmo314 kevmo314 merged commit d22bf8b into main Jun 20, 2024
7 checks passed
@kevmo314 kevmo314 deleted the kevmo314/replace-rich-text branch June 20, 2024 20:45
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