flutter_html_bootstrap_css_utilities_extension 0.1.0 copy "flutter_html_bootstrap_css_utilities_extension: ^0.1.0" to clipboard
flutter_html_bootstrap_css_utilities_extension: ^0.1.0 copied to clipboard

A flutter_html extension that adds support for Bootstrap CSS utility classes.

0.1.0 #

  • Initial release: a flutter_html extension that inlines Bootstrap 5.3 utility classes (spacing, colors, borders, display, sizing, typography, and more) as CSS understood by flutter_html.
  • Declarations flutter_html cannot render are suppressed rather than merged into style="". Most were inert, but display was actively harmful: flutter_html's value parser falls back to Display.inline for anything outside block/inline/inline-block/list-item/none, so d-flex turned block <div>s inline. display is emitted only for values it understands.
  • Unsupported classes are reported once per parsed document via FlutterError.reportError. They are never thrown, so they reach the debug console and crash reporters hooked to FlutterError.onError (Sentry, for example) without interrupting rendering. Gated by reportUnsupportedClasses, default true.
  • A registered companion extension widens the renderable property set. Today CssBorderRadiusHtmlExtension re-enables the rounded-* family. Detection is duck-typed by class name, so no dependency on any companion package.
  • Public API for introspecting coverage: isSupportedClass(), unsupportedClasses, UnsupportedBootstrapClassesException, CssCompanionExtension / kKnownCssCompanions, and, on BootstrapUtilitiesResolver, suppressUnrenderableDeclarations, extraSupportedProperties and resolveRaw().