2017-10-30 01:05:11 +08:00
|
|
|
import 'dart:async';
|
|
|
|
|
|
|
|
import 'package:flutter/services.dart';
|
|
|
|
|
2017-10-30 07:35:38 +08:00
|
|
|
class BarcodeScanner {
|
2018-01-10 21:55:58 +08:00
|
|
|
static const CameraAccessDenied = 'PERMISSION_NOT_GRANTED';
|
2017-10-30 01:05:11 +08:00
|
|
|
static const MethodChannel _channel =
|
|
|
|
const MethodChannel('com.apptreesoftware.barcode_scan');
|
|
|
|
static Future<String> scan() async => await _channel.invokeMethod('scan');
|
|
|
|
}
|