import 'package:fis_ui/define.dart';
import 'package:flutter/cupertino.dart';
import 'package:qr_code_scanner/qr_code_scanner.dart';

///[QRView]是摄像机所在的视图
class FQRView extends QRView implements FWidget {
  const FQRView({
    required Key key,
    required QRViewCreatedCallback onQRViewCreated,
    QrScannerOverlayShape? overlay,
    EdgeInsetsGeometry overlayMargin = EdgeInsets.zero,
    CameraFacing cameraFacing = CameraFacing.back,
    PermissionSetCallback? onPermissionSet,
    List<BarcodeFormat> formatsAllowed = const <BarcodeFormat>[],
  }) : super(
          key: key,
          onQRViewCreated: onQRViewCreated,
          overlay: overlay,
          overlayMargin: overlayMargin,
          cameraFacing: cameraFacing,
          onPermissionSet: onPermissionSet,
          formatsAllowed: formatsAllowed,
        );
}
