chore: update version and documentation
This commit is contained in:
parent
3673851acf
commit
a8340d90e4
3 changed files with 1 additions and 5 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
## 0.0.7
|
## 0.0.7
|
||||||
* Refactor theme customizer, and support dark mode.
|
* Refactor theme customizer, and support dark mode.
|
||||||
|
* Support export and import markdown.
|
||||||
* Fix some bugs.
|
* Fix some bugs.
|
||||||
|
|
||||||
## 0.0.6
|
## 0.0.6
|
||||||
|
|
|
||||||
|
|
@ -54,11 +54,9 @@ flutter pub get
|
||||||
Start by creating a new empty AppFlowyEditor object.
|
Start by creating a new empty AppFlowyEditor object.
|
||||||
|
|
||||||
```dart
|
```dart
|
||||||
final editorStyle = EditorStyle.defaultStyle();
|
|
||||||
final editorState = EditorState.empty(); // an empty state
|
final editorState = EditorState.empty(); // an empty state
|
||||||
final editor = AppFlowyEditor(
|
final editor = AppFlowyEditor(
|
||||||
editorState: editorState,
|
editorState: editorState,
|
||||||
editorStyle: editorStyle,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -66,11 +64,9 @@ You can also create an editor from a JSON object in order to configure your init
|
||||||
|
|
||||||
```dart
|
```dart
|
||||||
final json = ...;
|
final json = ...;
|
||||||
final editorStyle = EditorStyle.defaultStyle();
|
|
||||||
final editorState = EditorState(Document.fromJson(data));
|
final editorState = EditorState(Document.fromJson(data));
|
||||||
final editor = AppFlowyEditor(
|
final editor = AppFlowyEditor(
|
||||||
editorState: editorState,
|
editorState: editorState,
|
||||||
editorStyle: editorStyle,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -293,7 +293,6 @@ final editorState = EditorState(
|
||||||
);
|
);
|
||||||
return AppFlowyEditor(
|
return AppFlowyEditor(
|
||||||
editorState: editorState,
|
editorState: editorState,
|
||||||
editorStyle: EditorStyle.defaultStyle(),
|
|
||||||
shortcutEvents: const [],
|
shortcutEvents: const [],
|
||||||
customBuilders: {
|
customBuilders: {
|
||||||
'network_image': NetworkImageNodeWidgetBuilder(),
|
'network_image': NetworkImageNodeWidgetBuilder(),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue