You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been facing this problem for over a month, and I haven't been able to find a solution so far. I have searched and used artificial intelligence tools like ChatGPT, Google Bard, and Github Copilot, but none of them could provide the appropriate solution.
When building my project with "flutter run," I encountered several issues due to the use of "youtube_player_iframe."
I have solved most of the problems, but there is one issue that I haven't been able to resolve yet. The error is as follows:
lib/screens/items/youtube_videos.dart:28:13:Error:No named parameter with the name 'videoId'.
videoId:^^^^^^^/C:/Users/Sheko/AppData/Local/Pub/Cache/hosted/pub.dev/youtube_player_iframe-4.0.4/lib/src/controller/youtube_player_controller.dart:27:3:Context:Foundthis candidate, but the arguments don't match. YoutubePlayerController({ ^^^^^^^^^^^^^^^^^^^^^^^Target kernel_snapshot failed: Exception
FAILURE: Build completed with 2 failures.
Version:
Flutter: 3.18.0-0.2.pre • channel beta
Dart: 3.3.0-174.3.beta
youtube_player_iframe: 5.0.0
Here is the "youtube_videos.dart" file where the problems appear.
I guess you are mixing two different packages.
Both youtube_player_flutter and youtube_player_iframe have YoutubePlayerController.
However, videoId only exists in youtube_player_flutter and params only exists in youtube_player_iframe.
You can instead use another function:
Hello,
I have been facing this problem for over a month, and I haven't been able to find a solution so far. I have searched and used artificial intelligence tools like ChatGPT, Google Bard, and Github Copilot, but none of them could provide the appropriate solution.
When building my project with "flutter run," I encountered several issues due to the use of "youtube_player_iframe."
I have solved most of the problems, but there is one issue that I haven't been able to resolve yet. The error is as follows:
FAILURE: Build completed with 2 failures.
Version:
Here is the "youtube_videos.dart" file where the problems appear.
The text was updated successfully, but these errors were encountered: