Skip to content

Commit

Permalink
update scanner button widget with new camera facing values
Browse files Browse the repository at this point in the history
  • Loading branch information
navaronbracke committed Feb 13, 2025
1 parent 8570dea commit 0125659
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions example/lib/scanner_button_widgets.dart
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ class SwitchCameraButton extends StatelessWidget {
icon = const Icon(Icons.camera_front);
case CameraFacing.back:
icon = const Icon(Icons.camera_rear);
case CameraFacing.external:
icon = const Icon(Icons.usb);
case CameraFacing.unknown:
icon = const Icon(Icons.device_unknown);
}

return IconButton(
Expand Down

0 comments on commit 0125659

Please sign in to comment.