scanner_document 1.1.1 copy "scanner_document: ^1.1.1" to clipboard
scanner_document: ^1.1.1 copied to clipboard

A document scanner plugin for Flutter. Scan and crop documents automatically on iOS and Android with ML Kit support.

1.1.1 #

  • Fixed the iOS document scanner never opening on scene-based apps (UISceneDelegateClassName / FlutterSceneDelegate, common on Flutter 3.44+). The plugin now resolves the presenting FlutterViewController by walking UIApplication.shared.connectedScenes (recursing through navigation/tab/child/presented containers) instead of relying on UIApplication.shared.delegate.window, which is nil under the scene lifecycle.
  • The gallery picker and gallery-toggle button no longer depend on the deprecated UIApplication.shared.keyWindow; they use a scene-aware key-window lookup.
  • When no FlutterViewController can be resolved, getPictures/getPicturesFromGallery now return a FlutterError instead of silently never completing (previously the Dart await would hang forever).

1.1.0 #

  • Added Swift Package Manager (SPM) support for iOS; the plugin no longer triggers Flutter's "does not support Swift Package Manager" warning.
  • Restructured the iOS plugin into the Swift Package layout, shared by both CocoaPods and SPM (no duplicated sources). CocoaPods remains fully supported.
  • Replaced the Objective-C registration shim with a pure-Swift DocumentScannerPlugin.

1.0.10 #

  • Removed OpenCV dependencies completely from Android implementation.
  • Reverted to ML Kit document scanner for better stability.
  • Updated Android build dependencies (Gradle 8.7.0, AGP 8.6.0, Kotlin 2.1.0).
  • Simplified document corner detection with manual adjustment support.
  • Improved build compatibility and reduced package size.

1.0.9 #

  • Fixed 16KB page size support by switching to opencv-android package.
  • Implemented auto-capture functionality using OpenCV document detection.
  • Added AutoCaptureDetector for stable document detection.
  • Auto-capture triggers when document is stable for consistent frames.
  • Improved document detection stability and accuracy.

1.0.8 #

  • Added support for Android 16KB page size.
  • Added NDK ABI filters for all supported architectures.
  • Created gradle.properties for plugin configuration.
  • Enabled BuildConfig feature for better compatibility.

1.0.7 #

  • Fixed missing AndroidX dependencies (appcompat and core-ktx).
  • Added androidx.appcompat:appcompat:1.7.0 dependency.
  • Added androidx.core:core-ktx:1.13.1 dependency.

1.0.6 #

  • Replaced Google ML Kit document scanner with OpenCV 4.10.0 for edge detection.
  • Implemented custom document corner detection using OpenCV algorithms (Canny edge detection, contour finding).
  • Removed dependency on com.google.android.gms:play-services-mlkit-document-scanner.
  • Improved document edge detection accuracy with advanced image processing techniques.

1.0.5 #

  • Version bump for package updates.

1.0.4 #

  • Version bump for package updates.

1.0.3 #

  • Version bump for internal updates.

1.0.2 #

  • Documentation improvements.

1.0.1 #

  • Added Xcode 15 fix instructions to README for WeScan pod configuration.
  • Fixed documentation references for IosImageFormat enum.

1.0.0 #

  • Initial major release.
  • Updated package identifiers from biz.cunning to com.scanner.
  • Enhanced API documentation with comprehensive dartdoc comments.
  • Updated documentation and repository references.
7
likes
160
points
372
downloads

Documentation

API reference

Publisher

verified publisherabdelrahmanreda.dev

Weekly Downloads

A document scanner plugin for Flutter. Scan and crop documents automatically on iOS and Android with ML Kit support.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, permission_handler, permission_handler_platform_interface, plugin_platform_interface

More

Packages that depend on scanner_document

Packages that implement scanner_document