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: flutter tex web not working #49

Closed
suchibrata opened this issue May 19, 2020 · 6 comments
Closed

Bug: flutter tex web not working #49

suchibrata opened this issue May 19, 2020 · 6 comments
Labels
bug Something isn't working

Comments

@suchibrata
Copy link

Inside web_tex_view.dart in the _getTeXViewUrl in the return statement when you are forming the URL,
query parameter rawTeXHTML should named urlRawTeXHTML.

It is being accessed as urlRawTeXHTML inside flutter_tex.js

@shah-xad
Copy link
Owner

Yes you are right, there are also so many other issues regarding web and I am working on those right now, I 'll update that soon.

@shah-xad shah-xad added the bug Something isn't working label May 23, 2020
@shah-xad
Copy link
Owner

shah-xad commented May 25, 2020

I have solved that particular issue, you can check it here https://flutter-tex.web.app, do check documentation on how to add support for web. But there's still an issue on setState everything disappears in Flutter Web, rest is almost fine. For that, you can open a new issue and I am closing this.

@suchibrata
Copy link
Author

Thank you.

For setState to work you have to move this assignment :viewId = UniqueKey().toString() in web_tex_view.dart inside this block
if (getRawData() != _lastData) {
...
}

@shah-xad
Copy link
Owner

Thank you.

For setState to work you have to move this assignment :viewId = UniqueKey().toString() in web_tex_view.dart inside this block
if (getRawData() != _lastData) { ... }

It didn't work. It's something else I am unable to figure out, see here https://flutter-tex.web.app it even disappears if we hover the cursor over the back button.

@suchibrata
Copy link
Author

suchibrata commented May 26, 2020

I am using an old version of your code and it is working for me after moving the assignment inside the block. So I could not reproduce this bug. However it is flickering when I move the cursor.

For this I found two issues being logged with flutter. Please find here and here

@shah-xad
Copy link
Owner

shah-xad commented May 26, 2020

In old code, I was loading data via URL parameters there wasn't this issue of disappearance just was blinking, but that had so many other issues now I am directly accessing Iframe and putting data into that via Javascript, rest everything is fine just this issue of disappearance. I don't have any issue with flickering but data should be there.
And thanks for those links I'll see those.

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

2 participants