Flutter plugin for scanning and generating QR codes using the ZXing library, supporting Android, iOS, and desktop platforms
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

105 lines
2.0 KiB

import 'dart:typed_data';
import 'package:camera/camera.dart';
import 'flutter_zxing.dart';
Zxing getZxing() => ZxingWeb();
class ZxingWeb implements Zxing {
ZxingWeb();
@override
String version() => 'Unsupported';
@override
void setLogEnabled(bool enabled) {}
@override
String barcodeFormatName(int format) => 'Unsupported';
@override
Encode encodeBarcode(
String contents, {
int format = Format.qrCode,
int width = 300,
int height = 300,
int margin = 0,
int eccLevel = 0,
}) =>
throw UnimplementedError();
@override
Future<void> startCameraProcessing() => throw UnimplementedError();
@override
void stopCameraProcessing() => throw UnimplementedError();
@override
Future<Code> processCameraImage(
CameraImage image, {
Params? params,
}) =>
throw UnimplementedError();
@override
Future<Code?> readBarcodeImagePathString(
String path, {
Params? params,
}) =>
throw UnimplementedError();
@override
Future<Code?> readBarcodeImagePath(
XFile path, {
Params? params,
}) =>
throw UnimplementedError();
@override
Future<Code?> readBarcodeImageUrl(
String url, {
Params? params,
}) =>
throw UnimplementedError();
@override
Code readBarcode(
Uint8List bytes, {
required int width,
required int height,
Params? params,
}) =>
throw UnimplementedError();
@override
Future<List<Code>> readBarcodesImagePathString(
String path, {
Params? params,
}) =>
throw UnimplementedError();
@override
Future<List<Code>> readBarcodesImagePath(
XFile path, {
Params? params,
}) =>
throw UnimplementedError();
@override
Future<List<Code>> readBarcodesImageUrl(
String url, {
Params? params,
}) =>
throw UnimplementedError();
@override
List<Code> readBarcodes(
Uint8List bytes, {
required int width,
required int height,
Params? params,
}) =>
throw UnimplementedError();
}