1
0
mirror of https://github.com/git-touch/git-touch synced 2025-02-02 08:56:54 +01:00

fix: android markdown webview render

closes #123
This commit is contained in:
Rongjian Zhang 2020-12-13 13:53:20 +08:00
parent 378d406d37
commit fb3ed14b4f

View File

@ -48,8 +48,8 @@ class _HtmlViewState extends State<HtmlView> {
encoding: Encoding.getByName('utf-8'),
);
return Container(
height:
height ?? 0.01, // 0 would return the wrong height on page finished.
height: height ??
1, // must be integer(android). 0 would return the wrong height on page finished.
child: WebView(
initialUrl: uri.toString(),
javascriptMode: JavascriptMode.unrestricted,