Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] type 'Null' is not a subtype of type 'List<int>' in type cast #577

Closed
xarmatura opened this issue Nov 12, 2021 · 8 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@xarmatura
Copy link

The following _CastError was thrown resolving an image codec:
type 'Null' is not a subtype of type 'List' in type cast

When the exception was thrown, this was the stack:
#1 NetworkImage._loadAsync (package:flutter/src/painting/_network_image_io.dart:99:24)

(elided one frame from dart:async)
Image provider: NetworkImage("https://i3.ytimg.com/vi_webp/mrMmoQFCUmI/sddefault.webp", scale: 1.0)
Image key: NetworkImage("https://i3.ytimg.com/vi_webp/mrMmoQFCUmI/sddefault.webp", scale: 1.0)

It happened when a video is loaded.

@xarmatura xarmatura added the bug Something isn't working label Nov 12, 2021
@xarmatura
Copy link
Author

Please, how to fix it?

@manishtalreja0510
Copy link

this error occurs when you are providing the wrong URL to the network image. Make sure you are providing the right URL(that ends with a format extension that is supported by the network image).

@xarmatura
Copy link
Author

@manishtalreja0510 URL is correct.

@manishtalreja0510
Copy link

@xarmatura copy the link in google chrome and check if the image is loading in chrome or not

@xarmatura
Copy link
Author

@manishtalreja0510 It's the URL to the video. I'm using a YouTube player to show videos from YouTube.

@xarmatura
Copy link
Author

Do not recommend using this plugin.

@SakshamKarnawat
Copy link

How did you resolve the issue @xarmatura ? Please tell.

@xarmatura
Copy link
Author

How did you resolve the issue @xarmatura ? Please tell.

I haven't solved it, I just don't use it anymore. Sorry, can't help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants