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

Performance issue for long text #264

Open
Srimathi622 opened this issue Nov 28, 2023 · 5 comments
Open

Performance issue for long text #264

Srimathi622 opened this issue Nov 28, 2023 · 5 comments

Comments

@Srimathi622
Copy link

Hi, I am developing a Flutter desktop application. The typing speed is reduced if we go for huge text. is there any way to add lazy loading or something else?

@TheMultii
Copy link

You would have to mostly rewrite the entire text editor in flutter to get a working lazy loading. It's also possible to split the TextField into many TextFields, but this is also difficult to implement, and has no advantages other than performance.

#73
flutter/flutter#128575

@Srimathi622
Copy link
Author

Thanks for your reply. Now My app is hanged when we have huge text. There is some delay while typing. is there any way to overcome these issues?

@TheMultii
Copy link

The repository is under Apache 2.0 licence, so you could fork it and try to implement an idea with many TextFields. But then you would have to do some kind of content management (split) between them, which is probably hard to implement.

There's not much you can do if Flutter's TextField is laggy when handling too many lines of text.

The problem I mentioned is that it's only laggy on the web, not on different platforms. As far as I am concerned, it has performance issues on every single platform.

I guess we will have to wait until the issues are resolved.

@Srimathi622
Copy link
Author

Thanks for your reply, Marcel. I didn't get your idea (implement an idea with many TextFields). Could u pls explain this?

@Srimathi622
Copy link
Author

I read this issue. [https://github.com/flutter/flutter/issues/90063]. will it solve the performance issue if we implement the TextField with DeltaTextInputClient? What is your point of view about this Github discussion?

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