Hexer10 / youtube_explode_dart

Dart library to interact with many Youtube APIs
https://pub.dev/packages/youtube_explode_dart
BSD 3-Clause "New" or "Revised" License
301 stars 122 forks source link

[BUG] UnmodifiableListView Freezed.dart not working #219

Closed DomingoMG closed 2 years ago

DomingoMG commented 2 years ago

Describe the bug I am having this problem using this plugin.

I think the problem is the plugins used by youtube_explode_dart are out of date and need to be updated to their latest versions.

To Reproduce Include the code which doesn't work in the code markdown..

YoutubeExplode youtubeExplode = YoutubeExplode();
    youtubeExplode.playlists.getVideos("OLAK5uy_nP0uD8g1Kh8UzdFWD4A8bwriCetnxR_84").listen((event) async {  
       debugPrint(event.id.value);
    });

Stacktrace

Launching lib\main.dart on Windows in debug mode...
lib\main.dart:1
/D:/flutter/.pub-cache/hosted/pub.dartlang.org/youtube_explode_dart-1.11.0/lib/src/videos/video.dart(1,8): error GDA81338A: Not found: 'dart:collection/collection.dart' [D:\Trabajos\************\build\windows\flutter\flutter_assemble.vcxproj]
/D:/flutter/.pub-cache/hosted/pub.dartlang.org/youtube_explode_dart-1.11.0/lib/src/videos/video.dart(129,7): error G7D2AEF3C: Type 'UnmodifiableListView' not found. [D:\Trabajos\************\build\windows\flutter\flutter_assemble.vcxproj]
/D:/flutter/.pub-cache/hosted/pub.dartlang.org/youtube_explode_dart-1.11.0/lib/src/videos/video.freezed.dart(31,7): error G7D2AEF3C: Type 'UnmodifiableListView' not found. [D:\Trabajos\************\build\windows\flutter\flutter_assemble.vcxproj]
/D:/flutter/.pub-cache/hosted/pub.dartlang.org/youtube_explode_dart-1.11.0/lib/src/videos/video.freezed.dart(88,3): error G7D2AEF3C: Type 'UnmodifiableListView' not found. [D:\Trabajos\************\build\windows\flutter\flutter_assemble.vcxproj]
/D:/flutter/.pub-cache/hosted/pub.dartlang.org/youtube_explode_dart-1.11.0/lib/src/videos/video.freezed.dart(121,7): error G7D2AEF3C: Type 'UnmodifiableListView' not found. [D:\Trabajos\************\build\windows\flutter\flutter_assemble.vcxproj]
/D:/flutter/.pub-cache/hosted/pub.dartlang.org/youtube_explode_dart-1.11.0/lib/src/videos/video.freezed.dart(256,7): error G7D2AEF3C: Type 'UnmodifiableListView' not found. [D:\Trabajos\************\build\windows\flutter\flutter_assemble.vcxproj]

/D:/flutter/.pub-cache/hosted/pub.dartlang.org/youtube_explode_dart-1.11.0/lib/src/videos/video.freezed.dart(413,9): error G7D2AEF3C: Type 'UnmodifiableListView' not found. [D:\Trabajos\************\build\windows\flutter\flutter_assemble.vcxproj]
/D:/flutter/.pub-cache/hosted/pub.dartlang.org/youtube_explode_dart-1.11.0/lib/src/videos/video.freezed.dart(494,7): error G7D2AEF3C: Type 'UnmodifiableListView' not found. [D:\Trabajos\************\build\windows\flutter\flutter_assemble.vcxproj]

/D:/flutter/.pub-cache/hosted/pub.dartlang.org/youtube_explode_dart-1.11.0/lib/src/videos/video.freezed.dart(541,3): error G7D2AEF3C: Type 'UnmodifiableListView' not found. [D:\Trabajos\************\build\windows\flutter\flutter_assemble.vcxproj]
/D:/flutter/.pub-cache/hosted/pub.dartlang.org/implicitly_animated_reorderable_list-0.4.2/lib/src/util/util.dart(10,20): warning GBC99161D: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null. [D:\Trabajos\************\build\windows\flutter\flutter_assemble.vcxproj]
/D:/flutter/.pub-cache/hosted/pub.dartlang.org/youtube_explode_dart-1.11.0/lib/src/videos/video.dart(90,9): error GB1B8BC88: Method not found: 'UnmodifiableListView'. [D:\Trabajos\************\build\windows\flutter\flutter_assemble.vcxproj]
/D:/flutter/.pub-cache/hosted/pub.dartlang.org/youtube_explode_dart-1.11.0/lib/src/videos/video.dart(129,7): error G0225F9AD: 'UnmodifiableListView' isn't a type. [D:\Trabajos\************\build\windows\flutter\flutter_assemble.vcxproj]
/D:/flutter/.pub-cache/hosted/pub.dartlang.org/youtube_explode_dart-1.11.0/lib/src/videos/video.freezed.dart(31,7): error G0225F9AD: 'UnmodifiableListView' isn't a type. [D:\Trabajos\************\build\windows\flutter\flutter_assemble.vcxproj]
/D:/flutter/.pub-cache/hosted/pub.dartlang.org/youtube_explode_dart-1.11.0/lib/src/videos/video.freezed.dart(121,7): error G0225F9AD: 'UnmodifiableListView' isn't a type. [D:\Trabajos\************\build\windows\flutter\flutter_assemble.vcxproj]
/D:/flutter/.pub-cache/hosted/pub.dartlang.org/youtube_explode_dart-1.11.0/lib/src/videos/video.freezed.dart(196,18): error G0225F9AD: 'UnmodifiableListView' isn't a type. [D:\Trabajos\************\build\windows\flutter\flutter_assemble.vcxproj]
/D:/flutter/.pub-cache/hosted/pub.dartlang.org/youtube_explode_dart-1.11.0/lib/src/videos/video.freezed.dart(256,7): error G0225F9AD: 'UnmodifiableListView' isn't a type. [D:\Trabajos\************\build\windows\flutter\flutter_assemble.vcxproj]
/D:/flutter/.pub-cache/hosted/pub.dartlang.org/youtube_explode_dart-1.11.0/lib/src/videos/video.freezed.dart(336,18): error G0225F9AD: 'UnmodifiableListView' isn't a type. [D:\Trabajos\************\build\windows\flutter\flutter_assemble.vcxproj]
/D:/flutter/.pub-cache/hosted/pub.dartlang.org/youtube_explode_dart-1.11.0/lib/src/videos/video.freezed.dart(413,9): error G0225F9AD: 'UnmodifiableListView' isn't a type. [D:\Trabajos\************\build\windows\flutter\flutter_assemble.vcxproj]
/D:/flutter/.pub-cache/hosted/pub.dartlang.org/youtube_explode_dart-1.11.0/lib/src/videos/video.freezed.dart(494,7): error G0225F9AD: 'UnmodifiableListView' isn't a type. [D:\Trabajos\************\build\windows\flutter\flutter_assemble.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(241,5): error MSB8066: Compilaci�n personalizada de "D:\Trabajos\************\build\windows\CMakeFiles\4f89c1d4a889ecf9b97530ad9e019ab2\flutter_windows.dll.rule;D:\Trabajos\*********\build\windows\CMakeFiles\9bc03a5fe877e3f9c1c3d210d424cad5\flutter_assemble.rule" terminada con el c�digo 1. [D:\Trabajos\********\build\windows\flutter\flutter_assemble.vcxproj]
Exception: Build process failed.
Exited (sigterm)

Enviroment: (please complete the following information):

DomingoMG commented 2 years ago

I just fixed the problem.

I have updated all the libraries used by youtube_explode_dart to their latest version.

There were changes in the files for example: Previously called: UnmodifiableListView

Now it is called: EqualUnmodifiableListView

I've done the refactoring on the other files and it seems to work fine.