Search packages, repositories and app categories

scanning_effect cover
Package detailsv1.0.11

scanning_effect

Scanning effect for wrapping around a camera view with customizable borders using CustomPainter.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
440
Likes
42
Pub points
140

Install package

flutter pub add scanning_effect

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The scanning_effect package provides a customizable scanning animation for camera views, ideal for QR code and document scanning applications. Using CustomPainter, it wraps around the camera feed with animated borders that simulate a scanning effect. Developers can adjust border colors, thickness, and animation speed to match their app's design. The package supports multiple platforms including Android, iOS, Web, macOS, Windows, and Linux, making it versatile for cross-platform development. It enhances user experience by providing visual feedback during scanning processes.

Use cases

  • QR code scanning interfaces
  • Document scanner UIs
  • Mobile inventory tracking apps
  • Barcode reading tools
  • Interactive camera overlays
  • Digital receipt capture

Key features

  • Customizable border styles
  • Animated scanning effect
  • Cross-platform compatibility
  • Camera view integration
  • Configurable animation speed
  • Extensible with CustomPainter

Suitable for

  • Developers building scanning apps
  • UI designers seeking dynamic camera effects
  • Cross-platform mobile applications
  • Apps requiring real-time scanning feedback
  • Projects using camera-based input

Considerations

  • Requires camera access permissions
  • May impact performance on low-end devices
  • Customization requires knowledge of CustomPainter
  • Limited to visual effects, not scanning logic
  • Not suitable for non-camera use cases

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Scanning Effect

License: MIT

Scanning Effect to wrap around the camera

Demo Image Alt Text

Demo Code

Wrap the ScanningEffect widget around your widget

@override
Widget build(BuildContext context) {
  return ScanningEffect(
    scanningColor: Colors.red,
    borderLineColor: Colors.green,
    delay: Duration(seconds: 1),
    duration: Duration(seconds: 2),
    child: Container(
      child: SizedBox(),
    ),
  );
}

You can set the custom config base on these param:

  • scanningColor: The color of the scanning animation
  • borderLineColor: The color of the border line
  • scanningHeightOffset: The percent of scanning animation with the view height
  • delay: The delay between each animation
  • duration: The length of time this animation should last.
  • scanningLinePadding: The padding of the scanning animation

Categories

Source repository

Projects using this package

No data available yet.