widget_to_html library
Support for doing something awesome.
More dartdocs go here.
Classes
- Alignment
- How a child is aligned within its parent.
- Border
- A border of a box, consisting of four sides.
- BorderRadius
- An immutable set of radii for each corner of a rectangle.
- BorderRadiusDirectional
- A BorderRadius with start and end instead of left and right. These are resolved based on text direction.
- BorderRadiusGeometry
- Base class for border radius.
- BorderSide
- A side of a border of a box.
- BoxConstraints
- Immutable layout constraints for boxes.
- Color
- A color represented as ARGB values.
- Colors
- Common color constants.
- EdgeInsets
- Immutable set of offsets in each of the four cardinal directions.
- EdgeInsetsDirectional
- An EdgeInsets with start and end instead of left and right. These are resolved based on text direction.
- EdgeInsetsGeometry
- Base class for edge insets.
- FontWeight
- Font weight options.
- HtmlAlign
- Align widget for HTML emails
- HtmlBuilder
- HTML builder utility for constructing HTML elements
- HtmlButton
- Button widget for HTML emails (bulletproof button)
- HtmlCenter
- Center widget for HTML emails
- HtmlColumn
- Column widget for HTML emails (vertical layout)
- HtmlContainer
- Container widget for HTML emails
- HtmlContext
- Context passed during HTML rendering
- HtmlDivider
- Divider widget for HTML emails
- HtmlDocument
- HtmlImage
- Image widget for HTML emails
- HtmlLink
- Link widget for HTML emails
- HtmlPadding
- Padding widget for HTML emails
- HtmlRenderable
- Abstract base class for all HTML renderable widgets
- HtmlRenderableWithChild
- HtmlRenderableWithChildren
- HtmlRichText
- RichText widget for HTML emails
- HtmlRow
- Row widget for HTML emails (horizontal layout)
- HtmlSizedBox
- SizedBox widget for HTML emails
- HtmlText
- Text widget for HTML emails
- HtmlTextSpan
- TextSpan for HtmlRichText
- Radius
- A radius for either circular or elliptical shapes.
- Size
- Holds a 2D size with width and height.
- TextDecoration
- Text decoration options.
- TextStyle
- Styling for text.
Enums
- BorderStyle
- Style of a border side.
- CrossAxisAlignment
- How children are placed along the cross axis.
- FontStyle
- Whether to use a normal or italic font style.
- MainAxisAlignment
- How children are placed along the main axis.
- TextAlign
- How text should be aligned horizontally.
- TextDirection
- A direction in which text flows.
Functions
-
htmlEscape(
String text) → String - HTML escape utility
-
toBase64DataUri(
Uint8List bytes, {String mimeType = 'image/png'}) → String - Converts Uint8List to base64 data URI for embedding images