safe_media_scanner library

On-device NSFW content detection for Flutter.

Provides programmatic APIs and a ready-to-use widget for detecting NSFW content in images and videos. All processing runs on-device using TFLite (Android) and CoreML (iOS) — no data leaves the phone.

Classes

FlutterNsfwDetector
On-device NSFW content detection for Flutter.
NsfwGuardTheme
Theme configuration for the NsfwGuardWidget.
NsfwGuardWidget
A widget that automatically scans media for NSFW content and either displays it normally or applies a protective overlay.
NsfwLabel
Represents a single classification label with its confidence score.
ScanResult
The result of scanning a single media file (image or video).

Enums

NsfwGuardState
The current state of the NsfwGuardWidget scan lifecycle.