Skip to content

Conversation

@ProjectAJ14
Copy link
Contributor

Description

This PR adds the html_rich_text package to the Flutter Forge monorepo. The package provides a lightweight widget for rendering HTML-styled text in Flutter applications using TextSpan, without external dependencies.

Changes

  • Added new html_rich_text package with HtmlRichText widget
  • Implemented HTML tag parsing and rendering using Flutter's built-in RichText
  • Added comprehensive test suite with 11 test cases
  • Fixed initial test that was incorrectly looking for Text widget instead of RichText
  • Updated monorepo documentation to include the new package

Features

  • Lightweight HTML text rendering without external dependencies
  • Support for custom tag styling
  • Case-insensitive tag matching
  • Proper style merging between base and tag styles
  • Comprehensive example application demonstrating various use cases

Additional Notes

The package uses a regex-based approach to parse only defined tags, ignoring undefined ones. This makes it efficient and predictable for simple HTML formatting needs in Flutter apps.

@ProjectAJ14 ProjectAJ14 merged commit 2406e06 into main Aug 2, 2025
8 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