kuro7766

Results 17 comments of kuro7766

Sorry, I have changed the title. I mean uiwidget's latest version 1.5.4 My UnityVersion is 2019.4.12f1.

minimize example is adding one line `new TextField()` inside Column widget of README Counter Example script. Then compile it to apk

手机上textarea不能选择光标位置,楼主遇到过这个问题吗

Probably not. As the document said,this package is not another copy of flutter. It has different implementations.

I think it's because you have used material widgets in your code, so you need to wrap your app in a material app.This solution also applies to flutter. I removed...

MarkdownWidget issue 我研究了几天这个库的代码,全都是用Span横向排列来实现的,我觉得有下面这个问题 ![image](https://user-images.githubusercontent.com/49401947/112409876-3708eb00-8d55-11eb-944b-3af563014a2f.png) 这样的话,连基本的font标签都不支持,那么对于我上面的代码,期望是下面这样,删掉的信息应该以某种方式保留交给用户处理 ![image](https://user-images.githubusercontent.com/49401947/112410126-a8e13480-8d55-11eb-94b9-13c90423a7e2.png) # 1. 但是目前custom里面的回调的Node没有保存任何关于子节点的信息,因为是横向排列,没有层级的概念,这个和parseHtml函数的解析有关 回调的node应该保存子节点信息,就像这样(当然,没做类型检查),同时把后面多余的蓝色节点删了 ```js custom:(node){ return Column(Text(node.children[0]),Text(node.children[1]?.children[0]),Text(node.chilren[2])) } //对于上图案例,期望的回调 //node.children=[rr(Text),b(Element),RR(Text)] //其中b可以用户自行继续向下递归 ``` 后期这个库如果想扩展标签的话可以写个default标签工具类,(Widget)ElementUtils.handleTag('tag'); 供用户调用,毕竟md不是写html的。 如果子自定义标签还作为父自定义标签的child的话,可能custom回调还需要一个children布局相关的参数,实现起来比较吃力,但是我也简单描述一下另一个方法 # 2. ```js //custom回调的Node类型需要变化 Node{ List children; }...

我已经实现了上述第一个功能,就是去掉标签内文字,并交给custom回调给用户处理 ![image](https://user-images.githubusercontent.com/49401947/112461450-e320f500-8d9a-11eb-9776-915d68653f15.png) custom回调的log如下 log(67,element.runtimeType.toString()+','+element.textContent); 67 : Element, 67 : Text,ff 67 : Element,ttt 67 : Text,f

我发现html库还有个bug,就是他的parseFragment函数```abc```会把 abc当作"red"标签的子节点 https://github.com/dart-lang/html/issues/159