Jun Gu
Jun Gu
Unable to do that with this library. I don't known if this effect can be done with custom Span, since Span usually not draw anything, It just update the TextPaint's...
发现如果外层设置了 padding,还是会有问题
又添加了一个commit,把这个textPainter同步做了更新 之前漏了
`getOffsetForCaret` returned a weird offset in above code
发现如果这个`TextSpan`的text最后的字符是emoji就会有这个问题
最近也在思考这个问题,尝试用动态的运行指标去设置,发现不靠谱,于是尝试用设备的性能参数当做指标,可以参考下面的这个工具,自己再调整一下,效果应该还可以 https://github.com/facebook/device-year-class
@zmylls 举个例子: 2013 -> 1000 2015 -> 800 2017 -> 600 2019 -> 400 你可以给个大概的估值,再根据实际的卡顿数据调准这个估值啊
@zmylls 凭你的经验,这个值不可能一下子就得到的,你总得在真实的场景下面测试啊,比如说你在2013年的机器上设置了500,监控报警非常频繁,那明显这个值太小了,你再适当的调大一些
I got the same issue, the sample open `Leaderboard` is lags a lot. And I have done a method trace and I found the most of its time is doing...