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-05-31 11:32:59 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
964abb0cc90df310121db8ceaff5b42655c002b4
964abb0c
1 parent
cbebbf3f
imp: fix flutter v3 warnings
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
android/build.gradle
lib/src/mobile_scanner.dart
android/build.gradle
View file @
964abb0
...
...
@@ -46,7 +46,12 @@ android {
dependencies
{
implementation
"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation
'com.google.android.gms:play-services-mlkit-barcode-scanning:18.0.0'
// Use this dependency to bundle the model with your app
implementation
'com.google.mlkit:barcode-scanning:17.0.2'
// Use this dependency to use the dynamically downloaded model in Google Play Services
// implementation 'com.google.android.gms:play-services-mlkit-barcode-scanning:18.0.0'
implementation
"androidx.camera:camera-camera2:1.2.0-alpha01"
implementation
'androidx.camera:camera-lifecycle:1.2.0-alpha01'
...
...
lib/src/mobile_scanner.dart
View file @
964abb0
...
...
@@ -47,7 +47,7 @@ class _MobileScannerState extends State<MobileScanner>
@override
void
initState
()
{
super
.
initState
();
WidgetsBinding
.
instance
?
.
addObserver
(
this
);
WidgetsBinding
.
instance
.
addObserver
(
this
);
controller
=
widget
.
controller
??
MobileScannerController
();
}
...
...
@@ -131,7 +131,7 @@ class _MobileScannerState extends State<MobileScanner>
@override
void
dispose
()
{
controller
.
dispose
();
WidgetsBinding
.
instance
?
.
removeObserver
(
this
);
WidgetsBinding
.
instance
.
removeObserver
(
this
);
super
.
dispose
();
}
}
...
...
Please
register
or
login
to post a comment