|
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
Add the AppFlowy editor Flutter package to your environment.
flutter pub add appflowy_editor
flutter pub get
Start by creating a new empty 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 object in order to configure your initial state.
final json = ...;
final editorState = EditorState(StateTree.fromJson(data));
final editor = AppFlowyEditor(
editorState: editorState,
keyEventHandlers: const [],
customBuilders: const {},
);
To get a sense for how the AppFlowy Editor works, run our example:
git clone https://github.com/AppFlowy-IO/AppFlowy.git
cd frontend/app_flowy/packages/appflowy_editor/example
flutter run
Please refer to our documentation on customizing AppFlowy for a detailed discussion about customizing components.
Below are some examples of component customizations:
Please refer to our documentation on customizing AppFlowy for a detailed discussion about customizing shortcut events.
Below are some examples of shortcut event customizations:
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.