flutter_html_bootstrap_css_utilities_extension 0.1.0
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_htmlextension that inlines Bootstrap 5.3 utility classes (spacing, colors, borders, display, sizing, typography, and more) as CSS understood byflutter_html. - Declarations
flutter_htmlcannot render are suppressed rather than merged intostyle="". Most were inert, butdisplaywas actively harmful:flutter_html's value parser falls back toDisplay.inlinefor anything outsideblock/inline/inline-block/list-item/none, sod-flexturned block<div>s inline.displayis 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 toFlutterError.onError(Sentry, for example) without interrupting rendering. Gated byreportUnsupportedClasses, defaulttrue. - A registered companion extension widens the renderable property set. Today
CssBorderRadiusHtmlExtensionre-enables therounded-*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, onBootstrapUtilitiesResolver,suppressUnrenderableDeclarations,extraSupportedPropertiesandresolveRaw().