SvgImage class

Draws a constrained SVG subset with CustomPaint.

Inheritance

Constructors

SvgImage(String svg, {double width = 120, double height = 80, String color = '1A237E', double strokeWidth = 1.2})
SvgImage API.
const

Properties

color → String
Fallback stroke/fill when the element omits color.
final
flowChildren → List<Widget>?
Children MultiPage should flow individually (vertical columns).
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
height → double
height API.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
strokeWidth → double
strokeWidth API.
final
svg → String
Raw SVG markup (subset).
final
width → double
width API.
final

Methods

layout(Context context, BoxConstraints constraints) → PwBox
layout API.
override
layoutSpan(Context context, BoxConstraints constraints) → SpanSlice?
Split across pages when constraints has a bounded height.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paintStamp(Context context, double pageW, double pageH) → void
Stamp paint. The default lays out and paints glyph by glyph.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited