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
Julian Steenbakker
2022-12-12 16:05:38 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b4c1a10e17f049d80720f91e4162be00fd73f2c5
b4c1a10e
1 parent
4251b690
style: flutter format .
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
lib/src/mobile_scanner_controller.dart
lib/src/mobile_scanner_controller.dart
View file @
b4c1a10
...
...
@@ -301,8 +301,11 @@ class MobileScannerController {
/// is zoomed out.
Future
<
void
>
setZoomScale
(
double
zoomScale
)
async
{
if
(
zoomScale
<
0
||
zoomScale
>
1
)
{
throw
MobileScannerException
(
'The zoomScale must be between 0 and 1.'
,
throw
const
MobileScannerException
(
errorCode:
MobileScannerErrorCode
.
genericError
,
errorDetails:
MobileScannerErrorDetails
(
message:
'The zoomScale must be between 0 and 1.'
,
),
);
}
await
_methodChannel
.
invokeMethod
(
'setScale'
,
zoomScale
);
...
...
Please
register
or
login
to post a comment