chore: update appflowy_board pub.dev config

This commit is contained in:
appflowy 2022-08-09 10:03:42 +08:00
parent 70fbcb0de9
commit 61df3848e4
6 changed files with 30 additions and 26 deletions
frontend/app_flowy/packages/appflowy_board

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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