GithubHelp home page GithubHelp logo

Comments (6)

shah-xad avatar shah-xad commented on May 16, 2024

Sorry currently there is nothing like that, but it would be soon..

from flutter_tex.

takdw avatar takdw commented on May 16, 2024

I am having this issue as well. It would be really cool if we could re-render the TeXView when the input data (teXHTML) changes.

from flutter_tex.

takdw avatar takdw commented on May 16, 2024

So I have tried wrapping the TeXView in StatefulWidget and also a Consumer widget but I can't force the TeXView to be rebuilt. Is there any way I can achieve this?

from flutter_tex.

OscarEReyes avatar OscarEReyes commented on May 16, 2024

@takdw
So I managed to get something working, still not sure if it is an efficient solution.

My need was to have the TexView change as the user types text (or presses buttons like a calculator, still working on the input) and have the TexView change to show the appropriate TeX rendered.

Look up the WebView documentation and look into the WebViewController and its loadUrl Method.
I used the BLoC pattern to handle this documentation.

Although I think I ended up using a pure WebViewController and borrowing code from the TexView. When you create a WebView you can get the controller for it. I would have to look into the documentation. Let me know if this helps you get started.

from flutter_tex.

shah-xad avatar shah-xad commented on May 16, 2024

loadUrl method wont work as that don't support laod from assets, if you want this you have to go to prior version before removing the server. as server makes it to load very slow, so I removed that and customized it to load directly from assets without server..

from flutter_tex.

shah-xad avatar shah-xad commented on May 16, 2024

Now this you can rerender or refresh the TeXView on setState, Please install latest version

flutter_tex: ^1.0.9.

from flutter_tex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.