简体   繁体   English

如何在 Flutter 应用中实现文本编辑器

[英]how to implement text editor in flutter app

How does flutter implement an editor, such as a code editor, which controls can be used to implement it? Flutter是如何实现一个编辑器的,比如代码编辑器,可以用哪些控件来实现呢?

TextField is not appropriate? TextField 不合适?

how to make this kind of text editor option?如何制作这种文本编辑器选项?

In Flutter: a Drawer is a sideBar that can be dragged like a menu.在 Flutter 中:Drawer 是一个可以像菜单一样拖动的侧边栏。

But what you are looking for is Custom Paint Widget .但是您正在寻找的是Custom Paint Widget

I hope this helps!我希望这有帮助!

你应该使用CustomPainter小部件小部件:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM