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.
Overlay a mask only on the image variant of the same name — an aligned_face mask belongs on the aligned_face image, never on the original photo. The variants use different coordinate systems. See pair each mask with the matching image.
Both URLs come from the batch results endpoint; see API for Masks for where they sit in the response.
_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: