For the complete documentation index, see llms.txt. This page is also available as Markdown.

Visualize masks in Flutter

Flutter example for overlaying a Face Skin Analysis 3.0 SVG mask on its matching face image, with a runnable DartPad playground.

Example code for rendering Face Skin Analysis 3.0 SVG masks in a Flutter app. For HTML, JavaScript and CSS patterns, see API for Masks.

Both URLs come from the batch results endpoint; see API for Masks for where they sit in the response.

Code

Recoloring the mask

_sanitizeSvg() above strips the <style> block from the SVG because flutter_svg can choke on CSS-in-SVG. That block is also where the vectorEffectClass rules live, so the CSS recoloring shown in API for Masks will not work once it is removed. In Flutter, apply color through the widget instead:


Book a demo external-linkFace Skin Analysis 3.0 on haut.ai

Last updated