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
2024-02-28 10:09:21 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f32083b54dd2026cb53d24ee25ffc6b5303b5167
f32083b5
1 parent
d6b1ee2d
explicitly state that analyze image is not supported on the web
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
lib/src/mobile_scanner_platform_interface.dart
lib/src/web/mobile_scanner_web.dart
lib/src/mobile_scanner_platform_interface.dart
View file @
f32083b
...
...
@@ -85,7 +85,7 @@ abstract class MobileScannerPlatform extends PlatformInterface {
///
/// Upon calling this method, the necessary camera permission will be requested.
///
/// The given [cameraDirection] is used as the direction for the camera that needs to be set up.
/// The given [
StartOptions.
cameraDirection] is used as the direction for the camera that needs to be set up.
Future
<
MobileScannerViewAttributes
>
start
(
StartOptions
startOptions
)
{
throw
UnimplementedError
(
'start() has not been implemented.'
);
}
...
...
lib/src/web/mobile_scanner_web.dart
View file @
f32083b
...
...
@@ -184,6 +184,11 @@ class MobileScannerWeb extends MobileScannerPlatform {
}
@override
Future
<
BarcodeCapture
?>
analyzeImage
(
String
path
)
{
throw
UnsupportedError
(
'analyzeImage() is not supported on the web.'
);
}
@override
Widget
buildCameraView
()
{
if
(!
_barcodeReader
.
isScanning
)
{
return
const
SizedBox
();
...
...
Please
register
or
login
to post a comment