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

A flutter_html extension that inlines Vuetify utility classes as inline CSS.

0.1.0 #

  • Initial release: a flutter_html extension that inlines Vuetify utility classes (borders, rounded corners, cursor, display, spacing, elevation, and typography) as CSS understood by flutter_html.
  • Declarations flutter_html cannot render are suppressed rather than inlined. This matters beyond tidiness: d-flex resolves to display: flex, which flutter_html maps to Display.inline, turning block elements inline.
  • Unsupported classes are reported once per parsed document via FlutterError.reportError. They are never thrown, so they reach the debug console and crash reporters such as Sentry without interrupting rendering. Gate with reportUnsupportedClasses.
  • A registered companion extension (currently only CssBorderRadiusHtmlExtension) widens what counts as supported, so its properties are inlined instead of dropped.
  • Public API for introspecting coverage: isSupportedClass(), unsupportedClasses, flutterHtmlSupportedProperties, flutterHtmlSupportedDisplayValues, knownCompanionExtensions, VuetifyCompanionExtension and UnsupportedVuetifyClassesException.
0
likes
160
points
--
downloads

Documentation

API reference

Publisher

verified publisherchaosworld.cc

Weekly Downloads

A flutter_html extension that inlines Vuetify utility classes as inline CSS.

Repository (GitLab)
View/report issues
Contributing

License

MPL-2.0 (license)

Dependencies

flutter, flutter_html, flutter_html_class_to_css_converter_extension, html

More

Packages that depend on flutter_html_vuetify_extension