Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable flash #10

Closed
allanwolski opened this issue Oct 20, 2018 · 17 comments
Closed

Enable flash #10

allanwolski opened this issue Oct 20, 2018 · 17 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@allanwolski
Copy link

Good job, I was looking for this.

Is there a way to enable flash?

@victoraugustolls
Copy link

I tried using a package for controlling the flash outside:

https://github.com/clovisnicolas/flutter_lamp

The problem is, it reserves the camera, so the preview won't open. So is there anyway to enable flash in this package? @facundomedica

@allanwolski
Copy link
Author

I also tried using this package without success.

@facundomedica facundomedica added help wanted Extra attention is needed good first issue Good for newcomers labels Nov 2, 2018
@facundomedica
Copy link
Owner

In order of priorities I would like to change Firebase MLKit for something else first, but I'm open to PRs.

@allanwolski
Copy link
Author

I like Firebase MLKit and I need it for other things, like scanning the QR-Code from an image.

@victoraugustolls
Copy link

victoraugustolls commented Nov 3, 2018 via email

@josenicolas0105
Copy link

@facundomedica estimado existe una forma de usar el flash de la camara ??... quedo atento a sus comentarios.

@adlanarifzr
Copy link
Contributor

I've submitted PR for this issue.

@douglaswender
Copy link

how to use toggle flash?

@douglaswender
Copy link

I need it

@douglaswender
Copy link

I did, I was using the dependencies in the pub version

@kaifigirdhar
Copy link

@douglaswender Can you please elaborate how you resolve this

@douglaswender
Copy link

I used dependencies for git. then I realized that he has a new method that is toogleFlash(), I just created a method to change the application state with the icon on and off.

Dependencies:

fast_qr_reader_view:
    git:
      url: git://github.com/facundomedica/fast_qr_reader_view.git

Method:

Future _turnFlash() async {
    controller.toggleFlash();
    controller.startScanning();
    setState(() {
      isOn = !isOn;
    });
  }

@kaifigirdhar
Copy link

kaifigirdhar commented Jul 23, 2019

I am getting this error: [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: MissingPluginException(No implementation found for method toggleFlash on channel fast_qr_reader_view)

@douglaswender
Copy link

Did you add the dependencies to pubspec.yalm? If not added add, if added use the flutter pub get command.

@facundomedica
Copy link
Owner

Fixed!

@douglaswender
Copy link

douglaswender commented Jul 18, 2021

Thanks, are you doing null safety update? I'll probably need in next project ☺️

@facundomedica
Copy link
Owner

facundomedica commented Jul 18, 2021

@douglaswender I think it's already in. I'm not a 100% sure, but seems like it. I work as a backend engineer, so it's been a while since I used Flutter 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

7 participants