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

Flutter web #1

Closed
ChristopheChanteur opened this issue Apr 27, 2023 · 5 comments
Closed

Flutter web #1

ChristopheChanteur opened this issue Apr 27, 2023 · 5 comments

Comments

@ChristopheChanteur
Copy link

Hi,
Thank you for this great package,
It works well on device platforms, but it says it supports also Flutter Web, but it seems it isn't the case.
please see attached the screenshot error I have on the chrome web simulator.
I have tried deploying my flutter webapp also and tried the app on a device's via weblink, and it doesn't work on the flutter webapp.

Can you check this package on Flutter web please?

The Error on Flutter Web
image

The same Code working perfectly on device platform (ios, android...)
image

regards,
Chris

@ChristopheChanteur
Copy link
Author

ChristopheChanteur commented Apr 27, 2023

update: after some checks, the Widget partially works on web,
if I give it an errorWidget property, it displays that widget on Flutter web, so I suppose the issue is the animated emoji part needs to be looked at.

Looking at the Lottie flutter package - it seems they have upgraded their package to version 2.3.2 - which according to the changelog fixes issues on flutter web.
That could be the source of your package not working on flutter web - it may need upgrading to accept the new version of lottie package

@ChristopheChanteur
Copy link
Author

last update: I tried to fork your package and update it with the latest Lottie version - and the error still exists.
I also tried to only use the Lottie package and link it to the json url your package points to.
and it still is the same issue.
I think the issue may either lie with Lottie, or with the json at the url provided ...

hope you can find a way to solve it because your package is awesome

@RoundedInfinity
Copy link
Owner

Hey, thanks for the feedback,

I've looked into this issue and I think it does not work because of the CORS settings of the Noto Emoji Website. Just fetching the emoji url with http.get throws an error on flutter web.

I'm planning on adding support for loading the emojis from the local assets. That would fix the problem, but I'm not quite sure on how to tackle this.

@ChristopheChanteur
Copy link
Author

you're welc.

Thanks for looking into this for us.
Looking forward to the update

@hsbijarniya
Copy link
Contributor

#3 implemented

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants