|
2 years ago | |
---|---|---|
.. | ||
assets | 2 years ago | |
documentation | 2 years ago | |
example | 2 years ago | |
lib | 2 years ago | |
test | 2 years ago | |
.gitignore | 2 years ago | |
.metadata | 2 years ago | |
CHANGELOG.md | 2 years ago | |
LICENSE | 2 years ago | |
README.md | 2 years ago | |
analysis_options.yaml | 2 years ago | |
pubspec.yaml | 2 years ago |
A highly customizable rich-text editor for Flutter
flutter pub add appflowy_editor
flutter pub get
Let's create a new AppFlowyEditor object
final editorState = EditorState.empty(); // an empty state
final editor = AppFlowyEditor(
editorState: editorState,
keyEventHandlers: const [],
customBuilders: const {},
);
You can also create an editor from a JSON file
final json = ...;
final editorState = EditorState(StateTree.fromJson(data));
final editor = AppFlowyEditor(
editorState: editorState,
keyEventHandlers: const [],
customBuilders: const {},
);
To get a sense for how you might use it, run this example:
git clone https://github.com/AppFlowy-IO/AppFlowy.git
cd frontend/app_flowy/packages/appflowy_editor/example
flutter run
Please refer to customizing a component for more details.
Please refer to customizing a shortcut event for more details.
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.
Distributed under the AGPLv3 License. See LICENSE for more information.