mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-01-15 12:48:41 +00:00
fix #113
This commit is contained in:
parent
f052be7b23
commit
9ab57b79cb
1 changed files with 5 additions and 3 deletions
|
|
@ -327,11 +327,13 @@ class _CameraPreviewViewState extends State<CameraPreviewView> {
|
|||
},
|
||||
),
|
||||
ActionButton(
|
||||
FontAwesomeIcons.boltLightning,
|
||||
isFlashOn
|
||||
? Icons.flash_on_rounded
|
||||
: Icons.flash_off_rounded,
|
||||
tooltipText: context.lang.toggleFlashLight,
|
||||
color: isFlashOn
|
||||
? const Color.fromARGB(255, 255, 230, 0)
|
||||
: const Color.fromARGB(158, 255, 255, 255),
|
||||
? Colors.white
|
||||
: Color.fromARGB(158, 255, 255, 255),
|
||||
onPressed: () async {
|
||||
if (isFlashOn) {
|
||||
controller.setFlashMode(FlashMode.off);
|
||||
|
|
|
|||
Loading…
Reference in a new issue