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
2022-11-20 14:52:48 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2ddac10f3a6c31589f0d236128e57397ac928349
2ddac10f
1 parent
a39ac870
dispose of controllers in example app
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
3 deletions
example/lib/barcode_list_scanner_controller.dart
example/lib/barcode_scanner_controller.dart
example/lib/barcode_scanner_returning_image.dart
example/lib/barcode_list_scanner_controller.dart
View file @
2ddac10
...
...
@@ -15,7 +15,7 @@ class _BarcodeListScannerWithControllerState
with
SingleTickerProviderStateMixin
{
BarcodeCapture
?
barcodeCapture
;
MobileScannerController
controller
=
MobileScannerController
(
final
MobileScannerController
controller
=
MobileScannerController
(
torchEnabled:
true
,
// formats: [BarcodeFormat.qrCode]
// facing: CameraFacing.front,
...
...
@@ -174,4 +174,10 @@ class _BarcodeListScannerWithControllerState
),
);
}
@override
void
dispose
()
{
controller
.
dispose
();
super
.
dispose
();
}
}
...
...
example/lib/barcode_scanner_controller.dart
View file @
2ddac10
...
...
@@ -15,7 +15,7 @@ class _BarcodeScannerWithControllerState
with
SingleTickerProviderStateMixin
{
BarcodeCapture
?
barcode
;
MobileScannerController
controller
=
MobileScannerController
(
final
MobileScannerController
controller
=
MobileScannerController
(
torchEnabled:
true
,
// formats: [BarcodeFormat.qrCode]
// facing: CameraFacing.front,
...
...
@@ -172,4 +172,10 @@ class _BarcodeScannerWithControllerState
),
);
}
@override
void
dispose
()
{
controller
.
dispose
();
super
.
dispose
();
}
}
...
...
example/lib/barcode_scanner_returning_image.dart
View file @
2ddac10
...
...
@@ -17,7 +17,7 @@ class _BarcodeScannerReturningImageState
BarcodeCapture
?
barcode
;
MobileScannerArguments
?
arguments
;
MobileScannerController
controller
=
MobileScannerController
(
final
MobileScannerController
controller
=
MobileScannerController
(
torchEnabled:
true
,
// formats: [BarcodeFormat.qrCode]
// facing: CameraFacing.front,
...
...
@@ -168,4 +168,10 @@ class _BarcodeScannerReturningImageState
),
);
}
@override
void
dispose
()
{
controller
.
dispose
();
super
.
dispose
();
}
}
...
...
Please
register
or
login
to post a comment