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-03-03 16:27:51 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
afc4dc60f747f9ca0bff70c1c6373c51c1812dc1
afc4dc60
1 parent
d2cdf2af
imp: add image picker button
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
example/lib/barcode_scanner_controller.dart
example/lib/barcode_scanner_controller.dart
View file @
afc4dc6
...
...
@@ -115,6 +115,19 @@ class _BarcodeScannerWithControllerState
iconSize:
32.0
,
onPressed:
()
=>
controller
.
switchCamera
(),
),
IconButton
(
color:
Colors
.
white
,
icon:
Icon
(
Icons
.
browse_gallery
),
iconSize:
32.0
,
onPressed:
()
async
{
// final ImagePicker _picker = ImagePicker();
// // Pick an image
// final XFile? image = await _picker.pickImage(source: ImageSource.gallery);
// if (image != null) {
// controller.analyzeImage(image.path);
// }
},
),
],
),
),
...
...
Please
register
or
login
to post a comment