|
2 년 전 | |
---|---|---|
.. | ||
assets | 2 년 전 | |
coverage | 2 년 전 | |
documentation | 2 년 전 | |
example | 2 년 전 | |
lib | 2 년 전 | |
test | 2 년 전 | |
.gitignore | 2 년 전 | |
.metadata | 2 년 전 | |
CHANGELOG.md | 2 년 전 | |
LICENSE | 2 년 전 | |
README.md | 2 년 전 | |
analysis_options.yaml | 2 년 전 | |
pubspec.yaml | 2 년 전 |
FlowyEditor
An easily extensible, test-covered rich text editing component for Flutter
由于可扩展的结构,以及随着功能的增多,我们鼓励每个提交的文件或者代码段,都可以在test下增加对应的测试用例代码,尽可能得保证提交者不需要担心自己的代码影响了已有的逻辑。
Due to the extensible structure and the increase in functionality, we encourage each commit to add test case code under test to ensure that the committer does not have to worry about their code affecting the existing logic as much as possible.
flutter pub add flowy_editor
flutter pub get
Creates editor with empty document
final editorState = EditorState.empty();
final editor = FlowyEditor(
editorState: editorState,
keyEventHandlers: const [],
customBuilders: const {},
);
Creates editor from JSON file
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
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated. Please look at CONTRIBUTING.md for details.