mirror of
https://github.com/simplezhli/flutter_barcode_reader.git
synced 2024-11-15 06:39:24 +08:00
14a744d0af
Android: Kotlin Package: `com.apptreesoftware.barcodescan` -> `de.mintware.barcode_scan` Manifest-Package: `com.yourcompany.barcodescan` -> `de.mintware.barcodescan` Activity: `com.apptreesoftware.barcodescan.BarcodeScannerActivity` -> `de.mintware.barcode_scan.BarcodeScannerActivity` iOS: Bundle ID: `com.apptreesoftware.barcode.plugin.example` -> `de.mintware.barcode_scan.plugin.example` Flutter: Method channel: `com.apptreesoftware.barcode_scan` -> `de.mintware.barcode_scan` pubspec.yaml: - homepage updated - deprecated author entry removed - comments removed - flutter.plugin.androidPackage: `com.apptreesoftware.barcode_scan` -> `de.mintware.barcode_scan` README.md updated and UPGRADE.md added
12 lines
369 B
Dart
12 lines
369 B
Dart
import 'dart:async';
|
|
|
|
import 'package:flutter/services.dart';
|
|
|
|
class BarcodeScanner {
|
|
static const CameraAccessDenied = 'PERMISSION_NOT_GRANTED';
|
|
static const UserCanceled = 'USER_CANCELED';
|
|
static const MethodChannel _channel =
|
|
const MethodChannel('de.mintware.barcode_scan');
|
|
static Future<String> scan() async => await _channel.invokeMethod('scan');
|
|
}
|