Flutter docs
Default skin

Watermark

Add specific text or patterns to the page.

When to use

  • Use when the page needs to be watermarked to identify the copyright.
  • Suitable for preventing information theft.

Examples

API

Watermark are exported from @ceebee/ui/client.

Watermark

PropertyDescriptionTypeDefaultVersion
widthThe width of the watermark, the default value of content is its own widthnumber120—
heightThe height of the watermark, the default value of content is its own heightnumber64—
inheritPass the watermark to the pop-up component such as Modal, Drawerbooleantrue5.11.0
rotateWhen the watermark is drawn, the rotation Angle, unit °number-22—
zIndexThe z-index of the appended watermark elementnumber999—
imageImage source, it is recommended to export 2x or 3x image, high priority (support base64 format)string-—
contentWatermark text contentstring | WatermarkText | (string | WatermarkText)[]-WatermarkText: 6.5.0
fontText styleFontFont—
gapThe spacing between watermarks\[number, number\]\[100, 100\]—
offsetThe offset of the watermark from the upper left corner of the container. The default is gap/2\[number, number\]\[gap\[0\]/2, gap\[1\]/2\]—
onRemoveCallback when the watermark is removed by DOM mutation() => void-6.0.0

WatermarkText

PropertyDescriptionTypeDefaultVersion
fontCustom line text styleFont-6.5.0
textLine textstring-6.5.0

Font

PropertyDescriptionTypeDefaultVersion
colorfont colorCanvasFillStrokeStyles.fillStylergba(0,0,0,.15)—
fontSizefont sizenumber16—
fontWeightfont weightnormal | lighter | bold | bolder | numbernormal—
fontFamilyfont familystringsans-serif—
fontStylefont stylenone | normal | italic | obliquenormal—
textAlignspecify the text alignment directionCanvasTextAligncenter5.10.0