소스 검색

refactor: change formatsAllowed to non null

flutter-beta
Julian Steenbakker 5 년 전
부모
커밋
0f3b2bbef3
No known key found for this signature in database GPG 키 ID: 16E437C7A3D94250
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      lib/src/qr_code_scanner.dart

+ 2
- 2
lib/src/qr_code_scanner.dart 파일 보기

@@ -26,7 +26,7 @@ class QRView extends StatefulWidget {
this.overlayMargin = EdgeInsets.zero,
this.cameraFacing = CameraFacing.back,
this.onPermissionSet,
this.formatsAllowed,
this.formatsAllowed = const <BarcodeFormat>[],
}) : super(key: key);

/// [onQRViewCreated] gets called when the view is created
@@ -49,7 +49,7 @@ class QRView extends StatefulWidget {
final PermissionSetCallback? onPermissionSet;

/// Use [formatsAllowed] to specify which formats needs to be scanned.
final List<BarcodeFormat>? formatsAllowed;
final List<BarcodeFormat> formatsAllowed;

@override
State<StatefulWidget> createState() => _QRViewState();


불러오는 중...
취소
저장