Effects Flutter
Effects / Guides / Beauty filters / Flutter

Apply a beauty filter in Flutter with Nosmai Effects

Updated August 22, 2026

Add adjustable skin smoothing, whitening, sharpening, and teeth whitening to NosmaiCameraPreview from Dart.

Prerequisites

Apply a subtle preset

Call the beauty methods after onInitialized:

final nosmai = NosmaiFlutter.instance;

await nosmai.applySkinSmoothing(0.35);
await nosmai.applySkinWhitening(0.10);
await nosmai.applySharpening(0.15);
await nosmai.applyTeethWhitening(0.20);

Parameter ranges

MethodRangeOff valueVisible result
applySkinSmoothing0.0 to 1.00.0Softens skin detail
applySkinWhitening0.0 to 1.00.0Brightens skin tone
applySharpening0.0 to 1.00.0Restores edge detail
applyTeethWhitening0.0 to 1.00.0Brightens detected teeth

For a slider, clamp the value and avoid awaiting stale updates after the widget has been disposed.

Reset beauty

await NosmaiFlutter.instance.removeBuiltInFilters();

Verify it worked

Set smoothing to 0.0, then 0.35, while a face is visible. The preview should change without rebuilding NosmaiCameraPreview.

Common errors

SymptomCauseFix
SDK not initialized. Please initialize the SDK first.The method ran before initializationAwait NosmaiFlutter.initialize before mounting the camera screen
No visible changeThe callback ran before the native preview was readyApply from onInitialized
Preview restarts while draggingThe camera widget is rebuilt with a changing keyKeep one stable preview and update only the effect value

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