Norbert
Norbert

Reputation: 7750

NoSuchMethodErrorThe getter 'value' was called on null

I am trying to play a local video.the user choose video and play it on button press.The code Here.However I get this error and can't seem to get around it.

I/flutter ( 7097): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════

I/flutter ( 7097): The following NoSuchMethodError was thrown building VideoChoosePost(dirty, state:
I/flutter ( 7097): _VideoChoosePostState#bd944):
I/flutter ( 7097): The getter 'value' was called on null
I/flutter ( 7097): Receiver: null 
I/flutter ( 7097): Tried calling: value

Upvotes: 0

Views: 1086

Answers (1)

Shady Aziza
Shady Aziza

Reputation: 53347

You are not instantiating playercontroller any where in your code, so it has a value of null.

Upvotes: 1

Related Questions