-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
Support Flutter Web #6
Comments
I guess in principle it should be possible to support web as well, since the underlying engine is JavaScript. But it wasn't straightforward when I looked into it last time, and web support isn't something that I personally need, so it's not really on my radar. Sorry, I don't know if there are any workarounds. |
I'm not sure how this would even work since KaTeX can't render to bitmap or canvas (see KaTeX/KaTeX#328, KaTeX/KaTeX#504), or any other source of bytes: it renders to DOM elements, which I don't think would work at all with Flutter widgets. Maybe it would be doable by adding yet another package like html2canvas to render the KaTeX output to bitmap. But that's a lot of indirection and is pretty far over my head. |
Maybe I spoke too soon; this looks like it might be similar to what we want: https://stackoverflow.com/questions/60276170/use-js-library-in-flutter-web |
That looks good, thanks! |
I got it sort of working: The main issue is that the This is about as far as I'm interested in working on this. If someone else wants to swoop in and let me know how to address the layout issue, I'm all ears. The code is on the |
I have migrated the plugin to the federated architecture, so if someone does manage to implement a web version they can more easily use it. |
Hi,
Thanks for the great work!
Are there any plans to support Flutter Web?
Otherwise, is there any suggested workaround?
The text was updated successfully, but these errors were encountered: