docs: minor updates to documentation.

This commit is contained in:
Lucas.Xu 2022-08-18 20:59:47 +08:00
parent b1bf93662e
commit 28d9b8ee3a
5 changed files with 45 additions and 37 deletions

View File

@ -1 +1,5 @@
## 0.0.2
Minor Updates to Documentation.
## 0.0.1
Initial Version of the library.

View File

@ -15,6 +15,10 @@ and the Flutter guide for
<p align="center">A highly customizable rich-text editor for Flutter</p>
<p align="center">
<a href="https://discord.gg/ZCCYN4Anzq"><b>Discord</b></a>
<a href="https://twitter.com/appflowy"><b>Twitter</b></a>
</p>
<div align="center">
<img src="https://raw.githubusercontent.com/AppFlowy-IO/AppFlowy/main/frontend/app_flowy/packages/appflowy_editor/documentation/images/example.png" width = "900"/>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 MiB

After

Width:  |  Height:  |  Size: 1.4 MiB

View File

@ -81,41 +81,6 @@ class _MyHomePageState extends State<MyHomePage> {
return Container();
}
Widget _buildExpandableFab() {
return ExpandableFab(
distance: 112.0,
children: [
ActionButton(
onPressed: () {
if (page == 0) return;
setState(() {
page = 0;
});
},
icon: const Icon(Icons.note_add),
),
ActionButton(
icon: const Icon(Icons.document_scanner),
onPressed: () {
if (page == 1) return;
setState(() {
page = 1;
});
},
),
ActionButton(
onPressed: () {
if (page == 2) return;
setState(() {
page = 2;
});
},
icon: const Icon(Icons.text_fields),
),
],
);
}
Widget _buildAppFlowyEditorWithEmptyDocument() {
final editorState = EditorState.empty();
final editor = AppFlowyEditor(
@ -176,4 +141,39 @@ class _MyHomePageState extends State<MyHomePage> {
),
);
}
Widget _buildExpandableFab() {
return ExpandableFab(
distance: 112.0,
children: [
ActionButton(
onPressed: () {
if (page == 0) return;
setState(() {
page = 0;
});
},
icon: const Icon(Icons.note_add),
),
ActionButton(
icon: const Icon(Icons.document_scanner),
onPressed: () {
if (page == 1) return;
setState(() {
page = 1;
});
},
),
ActionButton(
onPressed: () {
if (page == 2) return;
setState(() {
page = 2;
});
},
icon: const Icon(Icons.text_fields),
),
],
);
}
}

View File

@ -1,6 +1,6 @@
name: appflowy_editor
description: An easily extensible, test-covered rich text editing component for Flutter.
version: 0.0.1
description: A highly customizable rich-text editor for Flutter
version: 0.0.2
homepage: https://github.com/AppFlowy-IO/AppFlowy
environment: