소스 검색

Merge pull request #259 from juliuscanute/257-barcode-view-not-found

Fixed CameraException on Android when disposing (#257)
flutter-beta
Julian Steenbakker 5 년 전
committed by GitHub
부모
커밋
4778236290
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. +2
    -1
      lib/src/qr_code_scanner.dart

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

@@ -1,4 +1,5 @@
import 'dart:async';
import 'dart:io';

import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
@@ -311,7 +312,7 @@ class QRViewController {

/// Stops the camera and disposes the barcode stream.
void dispose() {
stopCamera();
if (Platform.isIOS) stopCamera();
_scanUpdateController.close();
}



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