WhatsAppUIClone icon indicating copy to clipboard operation
WhatsAppUIClone copied to clipboard

initializer error in CameraValue

Open s2010 opened this issue 6 years ago • 3 comments

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) {

s2010 avatar Jul 28 '18 10:07 s2010

declare this : dependencies: camera: ^0.2.4

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

faisalramdan-id avatar Nov 28 '18 02:11 faisalramdan-id

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

love3forever avatar Dec 15 '18 15:12 love3forever

The issue is solved by @love3forever

AloyASen avatar Jun 27 '19 01:06 AloyASen