|
3 gadi atpakaļ | |
---|---|---|
.. | ||
.vscode | 3 gadi atpakaļ | |
assets | 3 gadi atpakaļ | |
coverage | 3 gadi atpakaļ | |
documentation | 3 gadi atpakaļ | |
example | 3 gadi atpakaļ | |
lib | 3 gadi atpakaļ | |
test | 3 gadi atpakaļ | |
.gitignore | 3 gadi atpakaļ | |
.metadata | 3 gadi atpakaļ | |
CHANGELOG.md | 3 gadi atpakaļ | |
LICENSE | 3 gadi atpakaļ | |
README.md | 3 gadi atpakaļ | |
analysis_options.yaml | 3 gadi atpakaļ | |
pubspec.yaml | 3 gadi atpakaļ |
一个可扩展,测试覆盖的 flutter 富文本编辑组件
TODO: List what your package can do. Maybe include images, gifs, or videos.
flutter pub add flowy_editor
flutter pub get
TODO: List prerequisites and provide or point to information on how to start using the package.
TODO: Include short and useful examples for package users. Add longer examples
to /example
folder.
Empty document
final editorState = EditorState.empty();
final editor = FlowyEditor(
editorState: editorState,
keyEventHandlers: const [],
customBuilders: const {},
);
从JSON文件中读取
final json = ...;
final editorState = EditorState(StateTree.fromJson(data));
final editor = FlowyEditor(
editorState: editorState,
keyEventHandlers: const [],
customBuilders: const {},
);
For more. Run the example.
git clone https://github.com/AppFlowy-IO/AppFlowy.git
cd frontend/app_flowy/packages/flowy_editor/example
flutter run
TODO: Tell users more about the package: where to find more information, how to contribute to the package, how to file issues, what response they can expect from the package authors, and more.
目前正在完善更多的文档信息
我们还有很多工作需要继续完成, Project checker link.