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
ryuta46
2023-04-12 07:40:47 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
06997ab5a262ed0e28898c8b1a91e4d94580aa6c
06997ab5
1 parent
f18b117d
style: remove extra new lines. fix typo.
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 additions
and
6 deletions
android/src/main/kotlin/dev/steenbakker/mobile_scanner/MobileScanner.kt
android/src/main/kotlin/dev/steenbakker/mobile_scanner/MobileScannerHandler.kt
ios/Classes/MobileScanner.swift
lib/src/mobile_scanner_controller.dart
android/src/main/kotlin/dev/steenbakker/mobile_scanner/MobileScanner.kt
View file @
06997ab
...
...
@@ -297,5 +297,4 @@ class MobileScanner(
camera!!.cameraControl.setZoomRatio(1f)
}
}
...
...
android/src/main/kotlin/dev/steenbakker/mobile_scanner/MobileScannerHandler.kt
View file @
06997ab
...
...
@@ -74,7 +74,6 @@ class MobileScannerHandler(
barcodeHandler.publishEvent(mapOf("name" to "zoomScaleState", "data" to zoomScale))
}
init {
methodChannel = MethodChannel(binaryMessenger,
"dev.steenbakker.mobile_scanner/scanner/method")
...
...
@@ -240,7 +239,7 @@ class MobileScannerHandler(
mobileScanner!!.resetScale()
result.success(null)
} catch (e: ZoomWhenStopped) {
result.error("MobileScanner", "Called setScale() while stopped!", null)
result.error("MobileScanner", "Called
re
setScale() while stopped!", null)
}
}
...
...
ios/Classes/MobileScanner.swift
View file @
06997ab
...
...
@@ -40,7 +40,6 @@ public class MobileScanner: NSObject, AVCaptureVideoDataOutputSampleBufferDelega
/// When zoom scale is changes, this callback will be called
let
zoomScaleChangeCallback
:
ZoomScaleChangeCallback
/// If provided, the Flutter registry will be used to send the output of the CaptureOutput to a Flutter texture.
private
let
registry
:
FlutterTextureRegistry
?
...
...
lib/src/mobile_scanner_controller.dart
View file @
06997ab
...
...
@@ -88,7 +88,6 @@ class MobileScannerController {
/// A notifier that provides zoomScale.
final
ValueNotifier
<
double
>
zoomScaleState
=
ValueNotifier
(
0.0
);
bool
isStarting
=
false
;
/// A notifier that provides availability of the Torch (Flash)
...
...
@@ -327,7 +326,6 @@ class MobileScannerController {
await
_methodChannel
.
invokeMethod
(
'resetScale'
);
}
/// Disposes the MobileScannerController and closes all listeners.
///
/// If you call this, you cannot use this controller object anymore.
...
...
Please
register
or
login
to post a comment