Skip to content

Commit 28d9b8e

Browse files
committed
docs: minor updates to documentation.
1 parent b1bf936 commit 28d9b8e

File tree

5 files changed

+45
-37
lines changed

5 files changed

+45
-37
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1+
## 0.0.2
2+
Minor Updates to Documentation.
3+
14
## 0.0.1
5+
Initial Version of the library.

frontend/app_flowy/packages/appflowy_editor/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ and the Flutter guide for
1515

1616
<p align="center">A highly customizable rich-text editor for Flutter</p>
1717

18+
<p align="center">
19+
<a href="https://discord.gg/ZCCYN4Anzq"><b>Discord</b></a> •
20+
<a href="https://twitter.com/appflowy"><b>Twitter</b></a>
21+
</p>
1822

1923
<div align="center">
2024
<img src="https://raw.githubusercontent.com/AppFlowy-IO/AppFlowy/main/frontend/app_flowy/packages/appflowy_editor/documentation/images/example.png" width = "900"/>
345 KB
Loading

frontend/app_flowy/packages/appflowy_editor/example/lib/main.dart

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -81,41 +81,6 @@ class _MyHomePageState extends State<MyHomePage> {
8181
return Container();
8282
}
8383

84-
Widget _buildExpandableFab() {
85-
return ExpandableFab(
86-
distance: 112.0,
87-
children: [
88-
ActionButton(
89-
onPressed: () {
90-
if (page == 0) return;
91-
setState(() {
92-
page = 0;
93-
});
94-
},
95-
icon: const Icon(Icons.note_add),
96-
),
97-
ActionButton(
98-
icon: const Icon(Icons.document_scanner),
99-
onPressed: () {
100-
if (page == 1) return;
101-
setState(() {
102-
page = 1;
103-
});
104-
},
105-
),
106-
ActionButton(
107-
onPressed: () {
108-
if (page == 2) return;
109-
setState(() {
110-
page = 2;
111-
});
112-
},
113-
icon: const Icon(Icons.text_fields),
114-
),
115-
],
116-
);
117-
}
118-
11984
Widget _buildAppFlowyEditorWithEmptyDocument() {
12085
final editorState = EditorState.empty();
12186
final editor = AppFlowyEditor(
@@ -176,4 +141,39 @@ class _MyHomePageState extends State<MyHomePage> {
176141
),
177142
);
178143
}
144+
145+
Widget _buildExpandableFab() {
146+
return ExpandableFab(
147+
distance: 112.0,
148+
children: [
149+
ActionButton(
150+
onPressed: () {
151+
if (page == 0) return;
152+
setState(() {
153+
page = 0;
154+
});
155+
},
156+
icon: const Icon(Icons.note_add),
157+
),
158+
ActionButton(
159+
icon: const Icon(Icons.document_scanner),
160+
onPressed: () {
161+
if (page == 1) return;
162+
setState(() {
163+
page = 1;
164+
});
165+
},
166+
),
167+
ActionButton(
168+
onPressed: () {
169+
if (page == 2) return;
170+
setState(() {
171+
page = 2;
172+
});
173+
},
174+
icon: const Icon(Icons.text_fields),
175+
),
176+
],
177+
);
178+
}
179179
}

frontend/app_flowy/packages/appflowy_editor/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: appflowy_editor
2-
description: An easily extensible, test-covered rich text editing component for Flutter.
3-
version: 0.0.1
2+
description: A highly customizable rich-text editor for Flutter
3+
version: 0.0.2
44
homepage: https://github.com/AppFlowy-IO/AppFlowy
55

66
environment:

0 commit comments

Comments
 (0)