Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
mobile_scanner
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Navaron Bracke
2023-11-08 20:52:38 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
19fa6a195114b6cb46bb05dc94035e5f2e462ba8
19fa6a19
1 parent
c1862f8c
add build camera view method to controller
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
lib/src/mobile_scanner_controller.dart
lib/src/mobile_scanner_controller.dart
View file @
19fa6a1
import
'dart:async'
;
import
'package:flutter/foundation.dart'
;
import
'package:flutter/services.dart'
;
import
'package:flutter/widgets.dart'
;
import
'package:mobile_scanner/src/enums/barcode_format.dart'
;
import
'package:mobile_scanner/src/enums/camera_facing.dart'
;
import
'package:mobile_scanner/src/enums/detection_speed.dart'
;
...
...
@@ -159,6 +158,13 @@ class MobileScannerController extends ValueNotifier<MobileScannerState> {
return
MobileScannerPlatform
.
instance
.
analyzeImage
(
path
);
}
/// Build a camera preview widget.
Widget
buildCameraView
()
{
_throwIfNotInitialized
();
return
MobileScannerPlatform
.
instance
.
buildCameraView
();
}
/// Reset the zoom scale of the camera.
Future
<
void
>
resetZoomScale
()
async
{
_throwIfNotInitialized
();
...
...
Please
register
or
login
to post a comment