Skip to content

Contributing

Matthew Whitaker edited this page Mar 12, 2025 · 5 revisions

Thanks for your interest in contributing to flutter_html!

Please adhere to the following guidelines when contributing:

Pull Request Guidelines

  1. For new features, please don't submit a pull request without describing the enhancement you are adding in an Issue report first. I often will give feedback on these Issue reports and I don't want you to have to do a whole bunch of work for nothing if the feature isn't one we plan on supporting.
  2. For bug fixes, please reference the Issue report where the bug is described. If it doesn't exist, please create one before filing the pull request.
  3. Please read through the wiki before contributing. This ensures you have a solid understanding of how the package works.

New Extension Guidelines

flutter_html strives to be as lightweight as possible, while maintaining a select few official extensions, including first-party extension packages (e.g. flutter_html_svg, flutter_html_iframe, etc.) and built-in convenience extensions (e.g. TagMatcherExtension, OnImageTapExtension, etc.). We may occasionally adopt additional official extensions. Here are the requirements any official extension will need to meet in order to be considered for adoption:

  1. Does the extension add functionality supported by major browsers today, but not supported by flutter_html? If no, consider releasing as a third-party extension package.
  2. Does the extension depend on a third-party package? If no, consider submitting to the core flutter_html library as a built-in HtmlExtension.
  3. Is the extension generally helpful and useable? If no, consider releasing as a third-party extension package.
  4. Is the extension of high quality? If no, consider adding tests and documentation to improve the quality of the package.

Additionally, code adopted into the official flutter_html packages will need to be MIT-licensed and use only permissively-licensed dependencies.

Clone this wiki locally