mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-01-15 14: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(
|
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);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue