modwedar / YoutubeDataApi

A Flutter package for fetching complete data from YouTube.
Apache License 2.0
10 stars 13 forks source link

YoutubeDataApi().fetchVideoData(widget.videoId) & YoutubeDataApi().fetchPlayListVideos(widget.videoId) #8

Open abhihasabe opened 1 year ago

abhihasabe commented 1 year ago

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: NoSuchMethodError: The method '[]' was called on null. E/flutter ( 5273): Receiver: null E/flutter ( 5273): Tried calling: E/flutter ( 5273): #0 Object.noSuchMethod (dart:core-patch/object_patch.dart:38:5) E/flutter ( 5273): #1 new VideoPage.fromMap (package:youtube_data_api/models/video_page.dart:47:167) E/flutter ( 5273): #2 YoutubeDataApi.fetchVideoData (package:youtube_data_api/youtube_data_api.dart:435:28) E/flutter ( 5273): E/flutter ( 5273): #3 _VideoDetailPageState.showData (package:entertenment_hub/video_detail_page.dart:630:9) E/flutter ( 5273):

Muhammad-Ullah commented 11 months ago

Did you find a solution of this?

ebel-frank commented 9 months ago

Yes, I created a PR.

Now I am working on a new project and I wonder why the PR hasn't been merged

SagarKoliRetire100 commented 5 months ago

I am facing this issue. Can someone please help me resolving it.

AsadDev40 commented 2 weeks ago

i got the issue when i gave video ids to this method but it did not get these videos by ids instead of this it gets related videos not the actual videos which ids i gave to this method.Any one help me to solve this