Ver Fonte

chore: update appflowy_board pub.dev config

appflowy há 2 anos atrás
pai
commit
61df3848e4

+ 3 - 0
frontend/app_flowy/packages/appflowy_board/CHANGELOG.md

@@ -1,3 +1,6 @@
+# 0.0.4
+* fix some bugs
+
 # 0.0.3
 * Support customize UI
 * Update example

+ 1 - 1
frontend/app_flowy/packages/appflowy_board/README.md

@@ -7,7 +7,7 @@ The **appflowy_board** is a package that is used in [AppFlowy](https://github.co
 ## Getting Started
 
 <p>
-<img src="" width="180" title="AppFlowyBoard">
+<img src="https://github.com/AppFlowy-IO/AppFlowy/blob/main/frontend/app_flowy/packages/appflowy_board/example/gifs/appflowy_board_video_1.gif?raw=true" width="680" title="AppFlowyBoard">
 </p>
 
 ```dart

+ 19 - 16
frontend/app_flowy/packages/appflowy_board/example/lib/multi_board_list_example.dart

@@ -99,22 +99,25 @@ class _MultiBoardListExampleState extends State<MultiBoardListExample> {
     }
 
     if (item is RichTextItem) {
-      return Padding(
-        padding: const EdgeInsets.all(20),
-        child: Column(
-          crossAxisAlignment: CrossAxisAlignment.start,
-          children: [
-            Text(
-              item.title,
-              style: const TextStyle(fontSize: 14),
-              textAlign: TextAlign.left,
-            ),
-            const SizedBox(height: 10),
-            Text(
-              item.subtitle,
-              style: const TextStyle(fontSize: 12, color: Colors.grey),
-            )
-          ],
+      return Align(
+        alignment: Alignment.centerLeft,
+        child: Padding(
+          padding: const EdgeInsets.all(20),
+          child: Column(
+            crossAxisAlignment: CrossAxisAlignment.start,
+            children: [
+              Text(
+                item.title,
+                style: const TextStyle(fontSize: 14),
+                textAlign: TextAlign.left,
+              ),
+              const SizedBox(height: 10),
+              Text(
+                item.subtitle,
+                style: const TextStyle(fontSize: 12, color: Colors.grey),
+              )
+            ],
+          ),
         ),
       );
     }

+ 1 - 1
frontend/app_flowy/packages/appflowy_board/lib/src/widgets/reorder_flex/drag_target.dart

@@ -187,7 +187,7 @@ class _ReorderDragTargetState<T extends DragTargetData>
         clipBehavior: Clip.hardEdge,
         child: ConstrainedBox(
           constraints: constraints,
-          child: Opacity(opacity: 0.6, child: child),
+          child: Opacity(opacity: 0.3, child: child),
         ),
       ),
     );

+ 3 - 5
frontend/app_flowy/packages/appflowy_board/lib/src/widgets/reorder_flex/reorder_flex.dart

@@ -33,7 +33,7 @@ abstract class ReoderFlexItem {
 
 class ReorderFlexConfig {
   /// The opacity of the dragging widget
-  final double draggingWidgetOpacity = 0.2;
+  final double draggingWidgetOpacity = 0.3;
 
   // How long an animation to reorder an element
   final Duration reorderAnimationDuration = const Duration(milliseconds: 250);
@@ -499,16 +499,14 @@ class ReorderFlexState extends State<ReorderFlex>
     switch (widget.direction) {
       case Axis.horizontal:
         return Row(
-          mainAxisSize: MainAxisSize.min,
-          crossAxisAlignment: CrossAxisAlignment.stretch,
+          crossAxisAlignment: CrossAxisAlignment.start,
           mainAxisAlignment: widget.mainAxisAlignment,
           children: children,
         );
       case Axis.vertical:
       default:
         return Column(
-          mainAxisSize: MainAxisSize.min,
-          crossAxisAlignment: CrossAxisAlignment.stretch,
+          crossAxisAlignment: CrossAxisAlignment.start,
           mainAxisAlignment: widget.mainAxisAlignment,
           children: children,
         );

+ 3 - 3
frontend/app_flowy/packages/appflowy_board/pubspec.yaml

@@ -1,8 +1,8 @@
 name: appflowy_board
-description: A new Flutter package project.
-version: 0.0.3
+description: AppFlowy board implementation.
+version: 0.0.4
 homepage: https://github.com/AppFlowy-IO/AppFlowy
-repository: https://github.com/AppFlowy-IO/AppFlowy
+repository: https://github.com/AppFlowy-IO/AppFlowy/tree/main/frontend/app_flowy/packages/appflowy_board
 
 environment:
   sdk: ">=2.17.0 <3.0.0"