Single source of truth for how a VideoTextOverlay looks.
The live preview (TextOverlayView) and the export rasterizer (rasterizeToPng) both build their text from these styles, so exported text matches what the user positioned on screen.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
boxRadius(
double pixelScale) → double -
fillStyle(
VideoTextOverlay overlay, double pixelScale) → TextStyle -
padding(
VideoTextOverlay overlay, double pixelScale) → EdgeInsets -
pixelScaleFor(
Size canvas) → double -
Converts VideoTextOverlay.fontSize units into pixels on
canvas. -
rasterizeToPng(
VideoTextOverlay overlay, Size canvas) → Future< RasterizedOverlay> -
Renders
overlayas a tightly cropped transparent PNG for a canvas ofcanvaspixels, rotation and scale included. -
stickerWidth(
VideoTextOverlay overlay, double pixelScale) → double - Width of an image sticker in canvas pixels, before VideoTextOverlay.scale. At the default size (64) it is about a quarter of a 1080px-wide frame.
-
strokeStyle(
VideoTextOverlay overlay, double pixelScale) → TextStyle? - Black outline drawn underneath the fill, or null for other styles.
Constants
- maxWidthFactor → const double
- Share of the canvas width a line may use before wrapping.