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
Ayush Pawar
2023-10-18 22:20:29 +0530
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f8fd03e0014819eeaa12d65d0e26f710bed99e82
f8fd03e0
1 parent
940f1fad
dynamic flash icon added
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
example/lib/mobile_scanner_overlay.dart
example/lib/mobile_scanner_overlay.dart
View file @
f8fd03e
...
...
@@ -256,7 +256,7 @@ class _MyAppState extends State<BarcodeScannerWithOverlay> {
children:
[
IconButton
(
onPressed:
()=>{
controller
.
toggleTorch
()
},
icon:
const
Icon
(
Icons
.
flashlight_on
,
color:
Colors
.
white
,),),
},
icon:
Icon
(
Icons
.
flashlight_on
,
color:
controller
.
torchEnabled
?
Colors
.
yellow
:
Colors
.
black
,),),
IconButton
(
onPressed:
()=>{
controller
.
switchCamera
()
},
icon:
const
Icon
(
Icons
.
cameraswitch_rounded
,
color:
Colors
.
white
,)),
...
...
Please
register
or
login
to post a comment