Comments (6)
How are you using multiple webview??
from flutter_tex.
Hi, we are loading multiple WebViews inside a ListView. In order to use the TeXView inside lost, we need to wrap it inside a fixed height widget. The issue is that WebView has onPageFinished callback which we are able to use to find the height of the WebView. But in TeXView there is no such callback. So is it possible to calculate the height of the TeXView after rendering?
from flutter_tex.
Hey I have added onPagedFinished
callback to the TeXView
, hope it would solve your issue.. you should update it to latest version flutter_tex-1.0.1
from flutter_tex.
Hi, we are loading multiple WebViews inside a ListView. In order to use the TeXView inside lost, we need to wrap it inside a fixed height widget. The issue is that WebView has onPageFinished callback which we are able to use to find the height of the WebView. But in TeXView there is no such callback. So is it possible to calculate the height of the TeXView after rendering?
would you like to share, how are you finding height of WebView?
from flutter_tex.
would you like to share, how are you finding height of WebView?
double height = double.parse(await _listController[index].evaluateJavascript("document.documentElement.scrollHeight;"));
I've tried exposing onPageFinished callback manually already. But the issue is after rendering the formulas the height gets increased than calculated one.
Also getting "Failed to create server socket" error always.
from flutter_tex.
I have updated the package with onRenderFinished
callback with calculated height, just check that.
from flutter_tex.
Related Issues (20)
- r""" <h2>(D) \( a_0 = \frac{{\hbar }}{{m_e ke^2 }} \)</h2>"""
- If it is not English, the custom font does not work
- Custom Fonts Do Not Work
- Please update the package to latest version 🙏 HOT 2
- On web, using multiple TeXViews does not work. Only the last will render. HOT 6
- On android,\begin{align} environment does not work HOT 1
- my app getting crashed HOT 2
- Oh bhai mere update krdo is ko Meherbani kro HOT 1
- TeXView Widget takes more space than needed at the bottom in ListView.builder
- TeXView is selectable by default when hover over it in flutter web HOT 1
- in web in texview not takes proper height likes in container which has box constraints with min and mx height it always takes min height HOT 1
- webview_flutter_plus dependency issues in other packages HOT 2
- i want to disable right click on texview in flutter web HOT 1
- I can't display math images
- Does this package support all HTML tags? HOT 1
- images not rendering properly HOT 1
- Try to put Arabic or Kurdish text inside TeXView HOT 2
- TeXViewRenderingEngine katex(); $Package's mathematical formula $... $, and does not translate into a mathematical formula HOT 2
- Error: Unable to load asset: "favicon.ico". HOT 1
- WebView.destroy() called while WebView is still attached to window. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_tex.