|
|
3 years ago | |
|---|---|---|
| .. | ||
| assets | 3 years ago | |
| coverage | 3 years ago | |
| documentation | 3 years ago | |
| example | 3 years ago | |
| lib | 3 years ago | |
| test | 3 years ago | |
| .gitignore | 3 years ago | |
| .metadata | 3 years ago | |
| CHANGELOG.md | 3 years ago | |
| LICENSE | 3 years ago | |
| README.md | 3 years ago | |
| analysis_options.yaml | 3 years ago | |
| pubspec.yaml | 3 years ago | |
一个易于扩展,测试覆盖的 flutter 富文本编辑组件
flutter pub add flowy_editor
flutter pub get
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
目前正在完善更多的文档信息
我们还有很多工作需要继续完成,链接到contributing.md Project checker link.