TeXView не может отображать текст. Он показывает, что ImeThread не включен.
Я хочу показать математические уравнения в своем приложении. Итак, я использую flutter_tex , чтобы показать математические уравнения. Он нормально работает в предыдущей версии пакета flutter_tex . Но текущая версия не может отображать текст или уравнения.
Консоль показывает :
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.");
}),
Пожалуйста, помогите мне, если вы знаете, почему возникает эта проблема и как ее решить.
Спасибо