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

Is the package designed for web? #53

Open
AAGUPTA6209 opened this issue Jun 24, 2023 · 6 comments
Open

Is the package designed for web? #53

AAGUPTA6209 opened this issue Jun 24, 2023 · 6 comments

Comments

@AAGUPTA6209
Copy link

I have been developing a website in flutter using this package. It works well on localhost but fails on github pages. Is there anything I can do to make it compatible with web?

@busslina
Copy link

On pub.dev it isn't included but how it seems to work based on screen size it must be compatible. Good question. I hope the package maintainer is okay and be able to clarify this

@FilledStacks
Copy link
Owner

Hi,

We have not code that checks for hosting of anykind, we just use pure Flutter so the package works wherever it's hosted.

There's no way we can write code to make it only work on specific types of hosting, it's all the same to the package.

@FilledStacks
Copy link
Owner

And yes, we use it for web.

I don't actually know what I have to do to get web to show up for the package.

@fexd12
Copy link

fexd12 commented Feb 23, 2024

And yes, we use it for web.

I don't actually know what I have to do to get web to show up for the package.

Its not listed because have a import in the helpers import 'dart:io';, pub.dev automatically see this import and mark the package as not supported in the web.
see: https://dart.dev/tools/pub/pubspec#platforms
and imaNNeo/fl_chart#1577 (comment)

hope this helps.

@busslina
Copy link

Can be deleted that import?

@FilledStacks
Copy link
Owner

We're using that import to determine what platform we're running on, there might be a better way to do that.

You can submit a PR deleting it and I'll approve it.

But yes, we use this on web, it's just not showing in the tags on pub dev.

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

4 participants