패키지, 저장소 및 앱 카테고리 검색

GitHub 저장소mirzamahmud/qr_scanner_with_effect

효과가 있는 QR 스캐너

mirzamahmud/qr_scanner_with_effect open-source repository details.

효과가 있는 QR 스캐너 프로젝트 이미지
스타
4
포크
3
최근 푸시(UTC)
2024. 9. 8.
프로젝트 상태
활성

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

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.

Mirza Mahmud Hossan GitHub avatar
GitHub 작성자

Mirza Mahmud Hossan ↗

AppSync StudioDhaka, Bangladesh
언어C++CMakeDartCSwiftHTMLShellObjective-CJavaKotlin

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 4 개

프로젝트에 맞는 저장소를 선택하려면?

사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.

  1. 이름, 작성자 또는 설명으로 검색하고 기술 주제로 범위를 좁힙니다.
  2. 스타, 포크, 최근 푸시를 함께 비교하세요. 스타는 관심의 지표이며 품질을 보장하지 않습니다.
  3. 사용하기 전에 GitHub에서 README, 라이선스, Issues를 확인하세요.

출처 및 관리

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗