Nosmai  Effects Nosmai  Moderation Nosmai Try-ons coming soon
Docs menu Flutter
How-to guide

Bundle an Asset Store filter in Flutter

Declare a production .nosmai package folder as a Flutter asset, discover it through Dart, and apply its local path.

Platform Flutter SDK version 1.0.2 Updated Aug 22, 2026 Time 6 min

Prerequisites

Add the package resources

assets/nosmai_filters/heart_face/
  heart_face.nosmai
  heart_face_manifest.json
  heart_face_preview.png

Declare the folder:

flutter:
  assets:
    - assets/nosmai_filters/heart_face/

Discover and apply it

final filters = await NosmaiFlutter.instance.getLocalFilters(
  forceRefresh: true,
);
final filter = filters.firstWhere((item) => item.name == 'heart_face');

await NosmaiFlutter.instance.applyEffect(filter.path);

Use the actual package name. The SDK reads the package type and activates the matching slot.

Verify it worked

Run flutter clean after changing native or asset packaging, then test offline after license verification.

Common errors

SymptomFix
Local list is emptyCheck pubspec.yaml indentation and rebuild the application
Filter does not update after adding itCall local discovery with forceRefresh: true
applyEffect failsPass the discovered path unchanged and verify native compatibility

Next steps

References

Was this page helpful?

Your response helps us prioritize documentation improvements.

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