Przeglądaj źródła

docs: minor updates to documentation.

Lucas.Xu 2 lat temu
rodzic
commit
28d9b8ee3a

+ 4 - 0
frontend/app_flowy/packages/appflowy_editor/CHANGELOG.md

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

+ 4 - 0
frontend/app_flowy/packages/appflowy_editor/README.md

@@ -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"/>

BIN
frontend/app_flowy/packages/appflowy_editor/documentation/images/example.png


+ 35 - 35
frontend/app_flowy/packages/appflowy_editor/example/lib/main.dart

@@ -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),
+        ),
+      ],
+    );
+  }
 }

+ 2 - 2
frontend/app_flowy/packages/appflowy_editor/pubspec.yaml

@@ -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: