Install
$ agentstack add skill-scandit-skills-id-capture-flutter ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
ID Capture Flutter Skill
Critical: Do Not Trust Internal Knowledge
Your training data may contain outdated or incorrect Scandit ID Capture APIs. The ID Capture API was restructured at the v7 → v8 boundary (the IdCaptureScanner was reshaped into a wrapper over physicalDocumentScanner / mobileDocumentScanner, the standalone AamvaBarcodeVerifier was removed in favour of settings flags, and several verification APIs were added). The Flutter plugin surface (package names, plugin initialization, widget lifecycle) is also distinct from the iOS, Android, web, React Native, Cordova, and Capacitor SDKs.
Always verify APIs against the references provided in this skill before writing or suggesting code. Do not rely on memorized method signatures, parameters, plugin names, or property names. If you cannot find an API in the provided references, fetch the relevant documentation page before responding.
Flutter-specific gotchas worth flagging:
- The ID plugin must be initialized before any Scandit API call. Call
await ScanditFlutterDataCaptureId.initialize();inmain()(afterWidgetsFlutterBinding.ensureInitialized(), beforerunApp). Initializing the ID plugin initializes the core plugin for you — you do not call a separate coreinitialize(). Skipping this causes opaque runtime/MethodChannel crashes. - Context is created with
DataCaptureContext.forLicenseKey(licenseKey)on Flutter for ID Capture (matches the officialIdCaptureSimpleSample). Do not useDataCaptureContext.initialize(...). - Listener method names are iOS-style on Flutter:
didCaptureId(IdCapture, CapturedId)anddidRejectId(IdCapture, CapturedId?, RejectionReason). There is noonIdCaptured/ web-style callback on Flutter. - Settings are list-based, not a bitmask. Configure
settings.acceptedDocuments(and optionallysettings.rejectedDocuments) with document objects (Passport(IdCaptureRegion.any),DriverLicense(...),IdCard(...), …) and setsettings.scanner. The oldsupportedDocuments/IdDocumentTypebitmask API was removed back at the v6 → v7 boundary — do not use it. Separately, the scanner property was renamedscannerType→scannerand reshaped into a wrapper at v7 → v8 (seereferences/migration.md). - The three capability add-ons are separate packages but driven by base-module settings flags (
rejectVoidedIds,decodeBackOfEuropeanDrivingLicense,rejectForgedAamvaBarcodes). Seereferences/supplementary-modules.md. There is no standaloneAamvaBarcodeVerifierclass on Flutter in v8. - Camera permission is required on both iOS (
NSCameraUsageDescriptioninios/Runner/Info.plist) and Android (declared by the plugin; request at runtime with thepermission_handlerpackage).
Forbidden APIs (commonly hallucinated — do NOT emit these)
These compile-fail against the real Flutter packages. Use the right-hand form:
| Do NOT write | Use instead | |---|---| | IdCapture.forContext(context, settings) | IdCapture(settings) then context.setMode(idCapture) | | IdCaptureOverlay.withIdCapture(...) / .withIdCaptureForView(...) | IdCaptureOverlay(idCapture) then captureView.addOverlay(overlay) | | IdDocumentType enum / settings.supportedDocuments / settings.scannerType | settings.acceptedDocuments (document classes) + settings.scanner = IdCaptureScanner(physicalDocumentScanner: ...) | | capturedId.documentType | capturedId.document?.documentType (IdCaptureDocumentType) or capturedId.isPassport() / isDriverLicense() / … | | capturedId.isVisa() | capturedId.isVisaIcao() / capturedId.isVisaLetter() | | capturedId.images.croppedDocument | capturedId.images.getCroppedDocument(IdSide.front) (also .face, .frame, getFrame(IdSide.front)) | | image.buffer / image.bytes / Image.memory(image…) on an IdImages result | the result is already a Flutter Image widget — render it directly in the tree | | AamvaBarcodeVerifier (class) | settings.rejectForgedAamvaBarcodes = true + capturedId.verificationResult.aamvaBarcodeVerification | | DrivingLicenseCategory.categoryCode | DrivingLicenseCategory.code (plus dateOfIssue / dateOfExpiry) |
- The
DataCaptureViewis a Flutter widget; its lifecycle ties to the widget tree. Pause the camera indidChangeAppLifecycleState(viaWidgetsBindingObserver) and clean up listeners / disable the mode when leaving the screen.
Product Guidance
Apply these rules whenever the user is making a design decision, not just an API question.
- Accept only the documents you actually need. A narrow
acceptedDocumentslist (e.g. justDriverLicense(IdCaptureRegion.us)) is faster and more accurate thanIdCaptureRegion.anyacross all document types. Ask the user which documents and regions they expect before defaulting to "everything". - Pick the scanner that matches the data you need.
FullDocumentScanner()reads front and back automatically (best for most ID/DL use cases).SingleSideScanner(barcode, machineReadableZone, visualInspectionZone)reads a single side from the zone(s) you enable — use it when you only need, say, the PDF417 barcode on the back of a US DL, or only the MRZ of a passport. UseMobileDocumentScannerfor mobile driver's licenses / mDL. - Handle
didRejectId, not justdidCaptureId. Rejections (RejectionReason.timeout,notAcceptedDocumentType,documentExpired,documentVoided,forgedAamvaBarcode, …) are how the user learns why a scan didn't succeed. A production integration must surface a message for them. - Anonymize by default if you don't need every field.
IdCaptureSettings.anonymizationModeand per-field anonymization keep regulated data (e.g. document images, sensitive fields) out of the result unless you opt in. Recommend the minimum that satisfies the use case. - Hand off to the
data-capture-sdkskill for non-ID-Capture questions. If the user asks about another Scandit product (Barcode Capture, SparkScan, MatrixScan, Label Capture, etc.) or about choosing between products, defer to thedata-capture-sdkskill instead of guessing.
Intent Routing
Based on the user's request, load the appropriate reference file before responding:
- Integrating ID Capture from scratch (e.g. "add ID scanning to my app", "scan a passport / driver's license", "read the MRZ", "extract the holder's name and date of birth") → read
references/integration.mdand follow it. - One of the three add-on capabilities ("reject voided / cancelled IDs", "detect punched-hole / voided licenses", "decode the back of a European driving license", "read vehicle categories", "verify the AAMVA barcode / detect forged US licenses") or data-consistency verification ("reject documents whose printed data doesn't match the MRZ / barcode", "detect tampered IDs", "cross-check VIZ against barcode") → read
references/supplementary-modules.md. - Migrating or upgrading an existing ID Capture integration ("upgrade ID Capture to the latest SDK", "migrate v7 to v8", "my
supportedDocumentscode stopped compiling", "AamvaBarcodeVerifieris gone", "what changed in ID Capture between versions") → readreferences/migration.md. - State management or route lifecycle ("how do I do this with BLoC?", "Riverpod / AsyncNotifier setup", "camera doesn't pause when I push another screen", "
RouteAware/RouteObserver", "GoRouter and ID Capture", "should I keep IdCapture in a Provider / ChangeNotifier?") → readreferences/framework-recipes.md. The Scandit code itself is unchanged fromreferences/integration.md; this file covers the BLoC / Riverpod / route-observer glue.
API Usage Policy
Only use APIs that are explicitly documented in the Scandit references below. Do not invent or guess method signatures, parameters, property names, or imports. If unsure whether an API exists or how it is called — or if a Dart compiler / runtime error occurs — fetch the relevant reference page before responding. Do not tell the user to check the docs themselves. After answering, always include the relevant link so the user can explore further.
Never construct or guess documentation URLs. When you need a specific class or property's API page:
- First check whether the page you already fetched contains a direct hyperlink to it — topic pages link directly to relevant API symbols. Always request links alongside content in your fetch prompt.
- If no direct link was found, fetch the API index (see Full API reference in the table below), extract the actual link from it, and follow that.
URL structures vary across SDK versions and package paths and guessing will lead to 404s.
Framework variant policy
Examples in references/integration.md use StatefulWidget + WidgetsBindingObserver because the official IdCaptureSimpleSample uses it. If the project uses BLoC (matching the IdCaptureExtendedSample), Riverpod, or a route observer / GoRouter, see references/framework-recipes.md — the Scandit calls are unchanged; only the state-management harness and the route-aware lifecycle differ. Do not introduce a new state-management library just for ID Capture.
Examples are in Dart (sound null-safety). Flutter >=3.22.0 and Dart >=3.4.0 are required by the ID plugin.
References
Direct users to the right resource based on their question:
| Topic | Resource | |---|---| | Flutter integration | Get Started · Sample (IdCaptureSimpleSample) | | Advanced topics (anonymization, verification, scanners, overlay) | Advanced Configurations | | Migration between major SDK versions | 7 → 8 | | Full API reference | ID Capture API |
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: Scandit
- Source: Scandit/skills
- License: Apache-2.0
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.