Flutter 颤振:颤振\u tex视图不工作。“显示”;IMEREAD未启用";
TeXView无法显示任何文本。它显示未启用ImeThread。 我想在我的应用程序中显示数学方程。所以,我用它来表示数学方程。它在以前版本的软件包中运行良好。但当前版本无法显示任何文本或方程式 控制台显示:Flutter 颤振:颤振\u tex视图不工作。“显示”;IMEREAD未启用";,flutter,flutter-web,Flutter,Flutter Web,TeXView无法显示任何文本。它显示未启用ImeThread。 我想在我的应用程序中显示数学方程。所以,我用它来表示数学方程。它在以前版本的软件包中运行良好。但当前版本无法显示任何文本或方程式 控制台显示: D/Surface ( 5430): Surface::setBufferCount(this=0x8ae13f00,bufferCount=4) D/WebView ( 5430): loadUrl(extra headers)=http://localhost:5353/package
D/Surface ( 5430): Surface::setBufferCount(this=0x8ae13f00,bufferCount=4)
D/WebView ( 5430): loadUrl(extra headers)=http://localhost:5353/packages/flutter_tex/src/tex_libs/katex/index.html?teXViewServerPort=5353
I/cr_Ime ( 5430): ImeThread is not enabled.
我的代码:
TeXView(
renderingEngine: RenderingEngine.Katex,
children: [
TeXViewChild(
id: "child_1",
title: r"<h3>Quadratic Equation</h3>",
body: r"""<p>
When \(a \ne 0 \), there are two solutions to \(ax^2 + bx + c = 0\) and they are
$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$</p>""",
decoration: TeXViewDecoration(
style: TeXViewStyle(
backgroundColor: Colors.green,
contentColor: Colors.white,
),
titleStyle: TeXViewStyle(
textAlign: TeXViewTextAlign.Center,
backgroundColor: Colors.red,
contentColor: Colors.white,
),
bodyStyle: TeXViewStyle.fromCSS(
"color:white;background-color:light-green")))
],
style: TeXViewStyle(
elevation: 10,
border: TeXViewBorder(
all: TeXViewBorderDecoration(
borderColor: Colors.blue,
borderStyle: TeXViewBorderStyle.Solid,
borderWidth: 5)),
backgroundColor: Colors.white,
),
loadingWidget: Center(
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisSize: MainAxisSize.min,
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
CircularProgressIndicator(),
Text("Rendering with ")
],
),
),
onTap: (childID) {
print("TeXView $childID is tapped.");
}),
TeXView(
renderingEngine:renderingEngine.Katex,
儿童:[
TeXViewChild(
id:“child_1”,
标题:r“二次方程”,
正文:r“”
当\(a\ne 0\)时,有两种解决方案\(ax^2+bx+c=0\),它们是
$$x={-b\pm\sqrt{b^2-4ac}\over 2a}.$$“,
装饰:TexView装饰(
样式:TeXViewStyle(
背景颜色:Colors.green,
contentColor:Colors.white,
),
标题样式:TeXViewStyle(
textAlign:TeXViewTextAlign.Center,
背景颜色:Colors.red,
contentColor:Colors.white,
),
bodyStyle:TeXViewStyle.fromCSS(
“颜色:白色;背景色:浅绿色”))
],
样式:TeXViewStyle(
标高:10,
边框:TeXViewBorder(
全部:TexviewBorderEdition(
边框颜色:颜色。蓝色,
borderStyle:TeXViewBorderStyle.Solid,
边框宽度:5),
背景颜色:Colors.white,
),
加载小部件:中心(
子:列(
crossAxisAlignment:crossAxisAlignment.center,
mainAxisSize:mainAxisSize.min,
mainAxisAlignment:mainAxisAlignment.center,
儿童:[
CircularProgressIndicator(),
文本(“使用渲染”)
],
),
),
onTap:(childID){
打印(“点击TeXView$childID”);
}),
请帮助我,如果你知道为什么会发生这个问题,以及如何解决它
谢谢您的问题解决了吗?如果没有,请考虑最新版本的FrutTr.Type。谢谢您的评论。本期现已结束。我制造了一个问题,现在解决了。瞧,你的问题解决了吗?如果没有,请考虑最新版本的FrutTr.Type。谢谢您的评论。本期现已结束。我制造了一个问题,现在解决了。看这里