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

Issue when using listview.builder with style_text #85

Open
jusunj opened this issue Jan 2, 2025 · 2 comments
Open

Issue when using listview.builder with style_text #85

jusunj opened this issue Jan 2, 2025 · 2 comments

Comments

@jusunj
Copy link

jusunj commented Jan 2, 2025

Hello,
I’ve been using style_text and it works great. However, I’ve encountered an issue. The problem arises when style_text is used inside a listview.builder to display a list. There is no issue when scrolling down, but when I scroll back up to check the previous list items, it starts to stutter. I believe this might be due to the way listview.builder works, where widgets for off-screen areas are disposed of, causing this issue. Is there any solution to this?

@Maatteogekko
Copy link

Hi @jusunj, can you provide some example code to reproduce the issue?
Does it happen if you set cacheExtent = double.infinity on the ListView?

@andyduke
Copy link
Owner

@jusunj I think the problem is in the asynchronous rendering of StyledText. What version of StyledText are you using? In version 9.0.0 the renderer is replaced with synchronous, have you tried this version?

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

3 participants