diff --git a/CHANGELOG.md b/CHANGELOG.md index fb85d7aa7..81768b04c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,34 @@ +## 1.4.0 +* feat: adjust the loading large document optimization in mobile platform by @LucasXu0 in ([#474](https://github.com/AppFlowy-IO/appflowy-editor/pull/474)) +* feat: simplify auto scroll behavior in ScrollServiceWidget by @LucasXu0 in ([#437](https://github.com/AppFlowy-IO/appflowy-editor/pull/437)) +* feat: implement delta diff and provide external values by @LucasXu0 in ([#444](https://github.com/AppFlowy-IO/appflowy-editor/pull/444)) +* feat: add more showcases on the mobile platform by @LucasXu0 in ([#479](https://github.com/AppFlowy-IO/appflowy-editor/pull/479)) +* feat: add more showcases on desktop/mobile platform by @LucasXu0 in ([#481](https://github.com/AppFlowy-IO/appflowy-editor/pull/481)) +* feat: support customizing the record time by @LucasXu0 in ([#461](https://github.com/AppFlowy-IO/appflowy-editor/pull/461)) +* feat: bulk open links shortcut by @Tony-MK in ([#419](https://github.com/AppFlowy-IO/appflowy-editor/pull/419)) +* feat: optimize the performance by @LucasXu0 in ([#442](https://github.com/AppFlowy-IO/appflowy-editor/pull/62)) +* fix: request focus in find replace menu by @Xazin in ([#440](https://github.com/AppFlowy-IO/appflowy-editor/pull/440)) +* fix: remove unused check in non_delta_input_service by @LucasXu0 in ([#447](https://github.com/AppFlowy-IO/appflowy-editor/pull/447)) +* fix: unable to paste html contains section by @LucasXu0 in ([#448](https://github.com/AppFlowy-IO/appflowy-editor/pull/448)) +* fix: sometimes failed to paste content from google translation by @LucasXu0 in ([#451](https://github.com/AppFlowy-IO/appflowy-editor/pull/451)) +* fix: duration cannot be zero in animate by @Xazin in ([#452](https://github.com/AppFlowy-IO/appflowy-editor/pull/452)) +* fix: image upload on web by @garv-shah in ([#453](https://github.com/AppFlowy-IO/appflowy-editor/pull/453)) +* fix block selection area by @LucasXu0 in ([#462](https://github.com/AppFlowy-IO/appflowy-editor/pull/462)) +* fix: resolve `RangeError` when last row deleted. by @sun-jiao in ([#470](https://github.com/AppFlowy-IO/appflowy-editor/pull/470)) +* fix: resolve layout problem of `FindMenuWidget` by @sun-jiao in ([#467](https://github.com/AppFlowy-IO/appflowy-editor/pull/467)) +* fix: show reset color button even if one of the selected text was formatted by @LucasXu0 in ([#476](https://github.com/AppFlowy-IO/appflowy-editor/pull/476)) +* fix: selection area doesn't show if in the long selection by @LucasXu0 in ([#477](https://github.com/AppFlowy-IO/appflowy-editor/pull/477)) +* fix: DT_TOOLCHAIN_DIR path in Podfile for iOS and macOS by @LucasXu0 in ([#483](https://github.com/AppFlowy-IO/appflowy-editor/pull/483)) +* fix: respect default and last direction on new line and indent by @zoli in ([#482](https://github.com/AppFlowy-IO/appflowy-editor/pull/482)) +* fix: link menu overflow in right by @sun-jiao in ([#478](https://github.com/AppFlowy-IO/appflowy-editor/pull/478)) +* fix: resolve "Bad state: no element" when in-table paragraph deleted by @sun-jiao in ([#471](https://github.com/AppFlowy-IO/appflowy-editor/pull/471)) +* chore: add jumpTo to editor scroll service by @Xazin in ([#466](https://github.com/AppFlowy-IO/appflowy-editor/pull/466)) +* chore: update l10n by @sun-jiao in ([#463](https://github.com/AppFlowy-IO/appflowy-editor/pull/463)) +* chore: refactor attribute comparison in Delta class diff loop by @LucasXu0 in ([#456](https://github.com/AppFlowy-IO/appflowy-editor/pull/456)) +* chore: update Chinese l10n by @sun-jiao in ([#445](https://github.com/AppFlowy-IO/appflowy-editor/pull/445)) +* chore: migrate tests by @MayurSMahajan in ([#438](https://github.com/AppFlowy-IO/appflowy-editor/pull/438)) +* chore: refactor color conversion method to handle RGB and hex formatsRefactor method to handle RGB and hex formats, improving color conversion by @LucasXu0 in ([#450](https://github.com/AppFlowy-IO/appflowy-editor/pull/450)) + ## 1.3.0 * feat: support table plugin by @zoli in ([#62](https://github.com/AppFlowy-IO/appflowy-editor/pull/62)) * feat: support alignment for block component by @LucasXu0 in ([#425](https://github.com/AppFlowy-IO/appflowy-editor/pull/425)) diff --git a/README.md b/README.md index d2fc1d1d7..e950e0e7a 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ and the Flutter guide for

- +
## Key Features diff --git a/assets/images/toolbar/center.svg b/assets/images/toolbar/center.svg index ea834a35b..154eae469 100644 --- a/assets/images/toolbar/center.svg +++ b/assets/images/toolbar/center.svg @@ -1,5 +1,3 @@ - - - + diff --git a/assets/images/toolbar/highlight_color.svg b/assets/images/toolbar/highlight_color.svg index 5b89af1e0..251185a46 100644 --- a/assets/images/toolbar/highlight_color.svg +++ b/assets/images/toolbar/highlight_color.svg @@ -1 +1,5 @@ - \ No newline at end of file + + + + + diff --git a/assets/images/toolbar/left.svg b/assets/images/toolbar/left.svg index b4f2d0101..4e7e43f46 100644 --- a/assets/images/toolbar/left.svg +++ b/assets/images/toolbar/left.svg @@ -1,5 +1,3 @@ - - - + diff --git a/assets/images/toolbar/right.svg b/assets/images/toolbar/right.svg index 86a1facaa..38689618c 100644 --- a/assets/images/toolbar/right.svg +++ b/assets/images/toolbar/right.svg @@ -1,5 +1,5 @@ - - - + + + diff --git a/assets/images/toolbar/text_color.svg b/assets/images/toolbar/text_color.svg index d15f04ecf..1277658aa 100644 --- a/assets/images/toolbar/text_color.svg +++ b/assets/images/toolbar/text_color.svg @@ -1 +1,4 @@ - \ No newline at end of file + + + + diff --git a/assets/images/toolbar/text_direction_auto.svg b/assets/images/toolbar/text_direction_auto.svg new file mode 100644 index 000000000..74256bc31 --- /dev/null +++ b/assets/images/toolbar/text_direction_auto.svg @@ -0,0 +1,4 @@ + + + + diff --git a/assets/images/toolbar/text_direction_left.svg b/assets/images/toolbar/text_direction_left.svg new file mode 100644 index 000000000..b2b7e337b --- /dev/null +++ b/assets/images/toolbar/text_direction_left.svg @@ -0,0 +1,4 @@ + + + + diff --git a/assets/images/toolbar/text_direction_right.svg b/assets/images/toolbar/text_direction_right.svg new file mode 100644 index 000000000..31d66284b --- /dev/null +++ b/assets/images/toolbar/text_direction_right.svg @@ -0,0 +1,4 @@ + + + + diff --git a/documentation/images/showcase.png b/documentation/images/showcase.png new file mode 100644 index 000000000..e686c9576 Binary files /dev/null and b/documentation/images/showcase.png differ diff --git a/lib/src/editor/toolbar/desktop/items/alignment_toolbar_items.dart b/lib/src/editor/toolbar/desktop/items/alignment_toolbar_items.dart index bb7b9a78c..85af2ae46 100644 --- a/lib/src/editor/toolbar/desktop/items/alignment_toolbar_items.dart +++ b/lib/src/editor/toolbar/desktop/items/alignment_toolbar_items.dart @@ -1,26 +1,22 @@ import 'package:appflowy_editor/appflowy_editor.dart'; -import 'package:flutter/material.dart'; final List alignmentItems = [ _AlignmentToolbarItem( id: 'align_left', name: 'left', tooltip: 'left', - icon: Icons.format_align_left, align: 'left', ), _AlignmentToolbarItem( id: 'align_center', name: 'center', tooltip: 'center', - icon: Icons.format_align_center, align: 'center', ), _AlignmentToolbarItem( id: 'align_right', name: 'right', tooltip: 'right', - icon: Icons.format_align_right, align: 'right', ), ]; @@ -30,7 +26,6 @@ class _AlignmentToolbarItem extends ToolbarItem { required String id, required String name, required String tooltip, - required IconData icon, required String align, }) : super( id: 'editor.$id', @@ -42,12 +37,9 @@ class _AlignmentToolbarItem extends ToolbarItem { final isHighlight = nodes.every( (n) => n.attributes[blockComponentAlign] == align, ); + return SVGIconItemWidget( - iconBuilder: (_) => Icon( - icon, - size: 16, - color: isHighlight ? highlightColor : Colors.white, - ), + iconName: 'toolbar/$name', isHighlight: isHighlight, highlightColor: highlightColor, tooltip: tooltip, diff --git a/lib/src/editor/toolbar/desktop/items/color/highlight_color_toolbar_item.dart b/lib/src/editor/toolbar/desktop/items/color/highlight_color_toolbar_item.dart index 10f842a99..9da05f24c 100644 --- a/lib/src/editor/toolbar/desktop/items/color/highlight_color_toolbar_item.dart +++ b/lib/src/editor/toolbar/desktop/items/color/highlight_color_toolbar_item.dart @@ -1,5 +1,4 @@ import 'package:appflowy_editor/appflowy_editor.dart'; -import 'package:flutter/material.dart'; ToolbarItem buildHighlightColorItem({List? colorOptions}) { return ToolbarItem( @@ -19,7 +18,6 @@ ToolbarItem buildHighlightColorItem({List? colorOptions}) { }); return SVGIconItemWidget( iconName: 'toolbar/highlight_color', - iconSize: const Size.square(14), isHighlight: isHighlight, highlightColor: highlightColor, tooltip: AppFlowyEditorLocalizations.current.highlightColor, diff --git a/lib/src/editor/toolbar/desktop/items/color/text_color_toolbar_item.dart b/lib/src/editor/toolbar/desktop/items/color/text_color_toolbar_item.dart index a1547d00f..f84b92290 100644 --- a/lib/src/editor/toolbar/desktop/items/color/text_color_toolbar_item.dart +++ b/lib/src/editor/toolbar/desktop/items/color/text_color_toolbar_item.dart @@ -1,5 +1,4 @@ import 'package:appflowy_editor/appflowy_editor.dart'; -import 'package:flutter/material.dart'; ToolbarItem buildTextColorItem({ List? colorOptions, @@ -22,7 +21,6 @@ ToolbarItem buildTextColorItem({ iconName: 'toolbar/text_color', isHighlight: isHighlight, highlightColor: highlightColor, - iconSize: const Size.square(14), tooltip: AppFlowyEditorLocalizations.current.textColor, onPressed: () { bool showClearButton = false; diff --git a/lib/src/editor/toolbar/desktop/items/text_direction_toolbar_items.dart b/lib/src/editor/toolbar/desktop/items/text_direction_toolbar_items.dart index de7862273..51b6135cd 100644 --- a/lib/src/editor/toolbar/desktop/items/text_direction_toolbar_items.dart +++ b/lib/src/editor/toolbar/desktop/items/text_direction_toolbar_items.dart @@ -1,24 +1,23 @@ import 'package:appflowy_editor/appflowy_editor.dart'; -import 'package:flutter/material.dart'; final List textDirectionItems = [ _TextDirectionToolbarItem( id: 'text_direction_auto', name: blockComponentTextDirectionAuto, tooltip: AppFlowyEditorLocalizations.current.auto, - icon: Icons.swap_horiz, + iconName: 'text_direction_auto', ), _TextDirectionToolbarItem( id: 'text_direction_ltr', name: blockComponentTextDirectionLTR, tooltip: AppFlowyEditorLocalizations.current.ltr, - icon: Icons.format_textdirection_l_to_r, + iconName: 'text_direction_left', ), _TextDirectionToolbarItem( id: 'text_direction_rtl', name: blockComponentTextDirectionRTL, tooltip: AppFlowyEditorLocalizations.current.rtl, - icon: Icons.format_textdirection_r_to_l, + iconName: 'text_direction_right', ), ]; @@ -27,7 +26,7 @@ class _TextDirectionToolbarItem extends ToolbarItem { required String id, required String name, required String tooltip, - required IconData icon, + required String iconName, }) : super( id: 'editor.$id', group: 7, @@ -39,11 +38,7 @@ class _TextDirectionToolbarItem extends ToolbarItem { (n) => n.attributes[blockComponentTextDirection] == name, ); return SVGIconItemWidget( - iconBuilder: (_) => Icon( - icon, - size: 16, - color: isHighlight ? highlightColor : Colors.white, - ), + iconName: 'toolbar/$iconName', isHighlight: isHighlight, highlightColor: highlightColor, tooltip: tooltip, diff --git a/pubspec.yaml b/pubspec.yaml index af9951544..be22000fc 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: appflowy_editor description: A highly customizable rich-text editor for Flutter. The AppFlowy Editor project for AppFlowy and beyond. -version: 1.3.0 +version: 1.4.0 homepage: https://github.com/AppFlowy-IO/appflowy-editor platforms: