Effects Flutter
Effects / Guides / AR masks / Flutter

Add an AR face mask in Flutter with Nosmai Effects

Updated August 27, 2026

Download a face-tracked AR mask through Cloud Filters, apply it in Flutter, and remove it without rebuilding the preview.

Prerequisites

Obtain the mask

Select and download a compatible AR mask through Cloud Filters.

Apply it

final masks = await NosmaiFlutter.instance.getCloudFilters(
  filterType: NosmaiCloudFilterType.effects,
  page: 1,
  limit: 20,
);
final mask = masks.first;
final download = await NosmaiFlutter.instance.downloadCloudFilter(
  mask.cloudIdentifier,
);
final maskPath = download['path'] as String?;

if (maskPath == null || maskPath.isEmpty) {
  throw StateError('AR mask download failed');
}

final applied = await NosmaiFlutter.instance.applyEffect(maskPath);
if (!applied) {
  throw StateError('AR mask could not be applied');
}

Keep NosmaiCameraPreview mounted while changing Cloud Filters.

Remove it

await NosmaiFlutter.instance.removeAllFilters();

Verify it worked

Move out of frame and return. The mask should follow its configured face-found and face-lost behaviour.

Common errors

SymptomFix
Cloud Filter catalog is emptyCheck the project configuration and selected Cloud Filter category
Apply returns falseUse the successful download result and verify native versions

Next steps

References

Nosmai

An AR and AI company. Founded on the idea that the next decade of software will be visual, and that the tools for it should be within reach of anyone building.

Newsletter

Product updates and release notes. No spam.

© 2026 nosmai, inc · all rights reserved