|
2 vuotta sitten | |
---|---|---|
.. | ||
assets | 2 vuotta sitten | |
documentation | 2 vuotta sitten | |
example | 2 vuotta sitten | |
lib | 2 vuotta sitten | |
test | 2 vuotta sitten | |
.gitignore | 2 vuotta sitten | |
.metadata | 2 vuotta sitten | |
CHANGELOG.md | 2 vuotta sitten | |
LICENSE | 2 vuotta sitten | |
README.md | 2 vuotta sitten | |
analysis_options.yaml | 2 vuotta sitten | |
pubspec.yaml | 2 vuotta sitten |
An completely customize, test-covered rich text editing component for Flutter
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 other committer does not have to worry about their code affecting the existing logic as much as possible. For more testing information, please check TESTING.md
flutter pub add flowy_editor
flutter pub get
Creates editor with empty document
final editorState = EditorState.empty();
final editor = AppFlowyEditor(
editorState: editorState,
keyEventHandlers: const [],
customBuilders: const {},
);
Creates editor from JSON file
final json = ...;
final editorState = EditorState(StateTree.fromJson(data));
final editor = AppFlowyEditor(
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
Please refer to customizing a component for more details.
Please refer to customizing a shortcut event for more details.
We are working on more detailed instructions, for now please refer to the API documentation.
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.