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

使用 RepaintBoundary 生成图片失败 #16

Closed
peak77 opened this issue Jun 9, 2022 · 2 comments
Closed

使用 RepaintBoundary 生成图片失败 #16

peak77 opened this issue Jun 9, 2022 · 2 comments

Comments

@peak77
Copy link

peak77 commented Jun 9, 2022

RepaintBoundary(
  key: _screenshotKey,
  child: PowerImage.network(
    'https://flutter.github.io/assets-for-api-docs/assets/widgets/owl.jpg',
    renderingType: renderingTypeTexture,
  ),
)
@wongkoo
Copy link
Collaborator

wongkoo commented Jun 9, 2022

renderingTypeTexture 使用了Texture Widget,无法生成图片。
renderingType换成renderingTypeExternal即可。

相关 flutter 问题:flutter/flutter#63265

@peak77 peak77 closed this as completed Jun 9, 2022
@peak77
Copy link
Author

peak77 commented Jun 9, 2022

看了公众号的文章的集中加载图片的数据对比和滚动流畅分析,使用 renderingTypeExternal 性能不太好~

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