Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

解决翻页卡顿建议 #9

Closed
trustyboy opened this issue Dec 8, 2020 · 7 comments
Closed

解决翻页卡顿建议 #9

trustyboy opened this issue Dec 8, 2020 · 7 comments

Comments

@trustyboy
Copy link

这种方式的翻页TextPainter有性能问题,你给TextSpan指定下fontFamily会流畅非常多。

@leetomlee123
Copy link
Owner

至少目前短文本卡顿感知不明显 长的就很明显了

该是要等待flutter 修复

OK 这周试试

@trustyboy
Copy link
Author

至少目前短文本卡顿感知不明显 长的就很明显了

该是要等待flutter 修复

OK 这周试试

这个翻页应该是来自高仿书旗的那个项目吧,我之前也尝试解决过。
后面参考了这个:
flutter/flutter#31774

@leetomlee123
Copy link
Owner

至少目前短文本卡顿感知不明显 长的就很明显了
该是要等待flutter 修复
OK 这周试试

这个翻页应该是来自高仿书旗的那个项目吧,我之前也尝试解决过。
后面参考了这个:
flutter/flutter#31774

的确 还是要等isolate中跑layout才是解决之道

@leetomlee123
Copy link
Owner

使用的是系统默认字体fontFamilyName 是啥呢

@trustyboy
Copy link
Author

使用的是系统默认字体fontFamilyName 是啥呢

我是直接自带了一个字体

@leetomlee123
Copy link
Owner

使用的是系统默认字体fontFamilyName 是啥呢

我是直接自带了一个字体

使用的是系统默认字体fontFamilyName 是啥呢

我是直接自带了一个字体

我直接用roboto 也没引入字体 也可用

@trustyboy
Copy link
Author

使用的是系统默认字体fontFamilyName 是啥呢

我是直接自带了一个字体

使用的是系统默认字体fontFamilyName 是啥呢

我是直接自带了一个字体

我直接用roboto 也没引入字体 也可用

嗯,应该都是可行的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants