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-08 11:31:41 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a2d04e318fe7e0bd92f98efdbf6b88ea7f396d82
a2d04e31
1 parent
4051f8dc
feat: add zoomScale api for android and iOS
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
CHANGELOG.md
macos/Classes/MobileScannerPlugin.swift
CHANGELOG.md
View file @
a2d04e3
...
...
@@ -15,6 +15,7 @@ Breaking changes:
Improvements:
*
Toggling the device torch now does nothing if the device has no torch, rather than throwing an error.
*
Removed
`called stop while already stopped`
messages.
Features:
*
Added a new
`placeholderBuilder` function to the `MobileScanner`
widget to customize the preview placeholder.
...
...
macos/Classes/MobileScannerPlugin.swift
View file @
a2d04e3
...
...
@@ -238,9 +238,7 @@ public class MobileScannerPlugin: NSObject, FlutterPlugin, FlutterStreamHandler,
func
toggleTorch
(
_
call
:
FlutterMethodCall
,
_
result
:
@escaping
FlutterResult
)
{
if
(
device
==
nil
)
{
result
(
FlutterError
(
code
:
"MobileScanner"
,
message
:
"Called toggleTorch() while stopped!"
,
details
:
nil
))
result
(
nil
)
return
}
do
{
...
...
Please
register
or
login
to post a comment