This commit is contained in:
otsmr 2025-04-21 17:04:42 +02:00
parent f052be7b23
commit 9ab57b79cb

View file

@ -327,11 +327,13 @@ class _CameraPreviewViewState extends State<CameraPreviewView> {
}, },
), ),
ActionButton( ActionButton(
FontAwesomeIcons.boltLightning, isFlashOn
? Icons.flash_on_rounded
: Icons.flash_off_rounded,
tooltipText: context.lang.toggleFlashLight, tooltipText: context.lang.toggleFlashLight,
color: isFlashOn color: isFlashOn
? const Color.fromARGB(255, 255, 230, 0) ? Colors.white
: const Color.fromARGB(158, 255, 255, 255), : Color.fromARGB(158, 255, 255, 255),
onPressed: () async { onPressed: () async {
if (isFlashOn) { if (isFlashOn) {
controller.setFlashMode(FlashMode.off); controller.setFlashMode(FlashMode.off);