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

initializer error in CameraValue #3

Open
s2010 opened this issue Jul 28, 2018 · 3 comments
Open

initializer error in CameraValue #3

s2010 opened this issue Jul 28, 2018 · 3 comments

Comments

@s2010
Copy link

s2010 commented Jul 28, 2018

I have issues running the app relating to an initializer in CameraValue

Waiting for another flutter command to release the startup lock...
compiler message: lib/pages/camera_screen.dart:39:27: Error: The getter 'initialized' isn't defined for the class '#lib1::CameraValue'.
compiler message: Try correcting the name to the name of an existing getter, or defining a getter or field named 'initialized'.
compiler message: if (!controller.value.initialized) {

@faisalramdan-id
Copy link

declare this :
dependencies:
camera: ^0.2.4

in pubspec.yaml
in my project it is running.
good luck 👍

@love3forever
Copy link

@s2010 replace controller.value.initialized with controller.value.isInitialized
problem solved.

@AloyASen
Copy link

The issue is solved by @love3forever

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants