jackxuechen
jackxuechen
> 已经正常播放了。播放后截图的。
重新固定了下主硬盘,没有在发过该问题
@sicreative The same BIOS, in Win10 using XTU can change the voltage and PL1/2
我打断点看了计算式正确的,但是实际显示出来会超出,感觉像是下面的方法出了问题 child: Text.rich( TextSpan(children: pageContentConfig.paragraphContents), // strutStyle: StrutStyle(forceStrutHeight: true, leading: 0.5), ),
有减去高度 /// 当前段落内容计算偏移量 /// 为什么要减一个lineHeight?因为getPositionForOffset判断依据是只要能展示, /// 所以即使展示不全,也在它的判定范围内,所以要减去一行高度,保证都能展示全 int endOffset = textPainter .getPositionForOffset(Offset( contentWidth, contentHeight - currentHeight - currentLineHeight)) .offset; 我把contentHeight的高度手动减少了很多,最中使用它Text.rich显示的时候还是有超出的情况,Text.rich实际渲染的比计算的高度要高 var contentHeight = constraints.maxHeight - AppSize.statusBarHeight - AppSize.bottomSafeMargin - 40...
加上style显示也有问题 child: Text.rich( TextSpan(children: pageContentConfig.paragraphContents), style: TextStyle(color: Colors.red, fontSize: 16, height: 2), // strutStyle: StrutStyle(forceStrutHeight: true, leading: 0.5), ),
好的,我在看下,感谢
@wengxianxun dev_2.0分支用flutter 2.8.1版本试下,我用这个可以跑起来