akvelon / flutter-code-editor

Flutter Code Editor is a multi-platform code editor supporting syntax highlighting, code blocks folding, autocompletion, read-only code blocks, hiding specific code blocks, themes, and more.

Home Page:https://akvelon.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Performance issue for long text

Srimathi622 opened this issue · comments

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?

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

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?

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.

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

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?