Search packages, repositories and app categories

Package detailsv2.0.0

qr_scanner_with_effect

A Flutter package for QR scanner with scanning effect.

AndroidiOS
30-day downloads
116
Likes
27
Pub points
160

Install package

flutter pub add qr_scanner_with_effect

Package Overview

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

A Flutter package that provides a QR code scanner with animated scanning effects, enhancing user experience during barcode and QR code detection. Built for Android and iOS, it integrates seamlessly into Flutter applications, offering real-time visual feedback as the scanner searches for codes. The package is lightweight and designed for developers seeking an engaging scanning interface without complex setup. It leverages native camera access and includes smooth animations to indicate scanning progress and success.

Use cases

  • Real-time QR code scanning in retail apps
  • Event ticket validation with visual feedback
  • Inventory management with interactive scanning
  • Mobile payment systems requiring clear scan indicators

Key features

  • Animated scanning effect
  • Cross-platform support (Android & iOS)
  • Simple integration with Flutter
  • Real-time visual feedback
  • Lightweight and efficient
  • Camera-based QR detection

Suitable for

  • Developers building interactive scanning features
  • Apps needing engaging user experiences
  • Retail and event management tools
  • Quick QR code capture utilities

Considerations

  • Requires camera permissions on target devices
  • May impact performance on low-end hardware
  • Limited customization of animation styles
  • Depends on stable camera access and lighting conditions

Original README

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

qr_scanner_with_effect

A Flutter widget that will use for scanning QR Code and it also has scanning effect.

QR Scanner with Effect

pub package GH Actions

Features

Parameter Definition
GlobalKey<State<StatefulWidget>> qrKey (Required) [qrKey] uniquely identify elements
void Function(QRViewController) onQrScannerViewCreated (Required) [onQRViewCreated] gets called when the view is created
EdgeInsetsGeometry overlayMargin (Predefined) use [overlayMargin] to provide a margin to [overlay]
CameraFacing cameraFacing (Predefined) Set which camera to use on startup.[cameraFacing] can either be CameraFacing.front or CameraFacing.back
void Function(QRViewController, bool)? onPermissionSet (Optional) Calls the provided [onPermissionSet] callback when the permission is set
List<BarcodeFormat> formatsAllowed (Predefined) Use [formatsAllowed] to specify which formats needs to be scanned
Color qrOverlayBorderColor (Required) [qrOverlayBorderColor] is used for giving color of qr overlay border
double qrOverlayBorderRadius (Predefined) [qrOverlayBorderRadius] is used for giving border radius of qr overlay border
double qrOverlayBorderWidth (Predefined) [qrOverlayBorderWidth] it defines the width of the qr overlay border
double qrOverlayBorderLength (Predefined) [qrOverlayBorderLength] it defines the length of the qr overlay border
Gradient? effectGradient (Optional) use [effectGradient] for effect animated color from begin to top
double effectWidth (Predefined) [effectWidth] define the width of the effect
bool isScanComplete (Predefined) [isScanComplete] is used for remove effect after scanning complete
Color? effectColor (Optional) use [effectColor] for color of the effect
double? cutOutSize
double? cutOutHeight
double? cutOutWidth
double cutOutBottomOffset

Demo

ezgif com-optimize

Installation

Add dependency for package on your pubspec.yaml:

    dependencies:
      qr_scanner_with_effect: latest

or

flutter pub add qr_scanner_with_effect

Usage

QrScannerWithEffect(
  isScanComplete: isComplete,
  qrKey: qrKey,
  onQrScannerViewCreated: onQrScannerViewCreated,
  qrOverlayBorderColor: Colors.redAccent,
  cutOutSize: (MediaQuery.of(context).size.width < 300 || MediaQuery.of(context).size.height < 400) ? 250.0 : 300.0,
  onPermissionSet: (ctrl, p) => onPermissionSet(context, ctrl, p),
  effectGradient: const LinearGradient(
    begin: Alignment.topCenter,
    end: Alignment.bottomCenter,
    stops: [0.0, 1],
    colors: [
      Colors.redAccent,
      Colors.redAccent,
    ],
  ),
)

Additional information

This package is built on "qr_code_scanner". When we use "qr_scanner_with_effect" package than we also use "qr_code_scanner" package for fetching its controller.

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package

No data available yet.