forked from AppFlowy-IO/appflowy-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* main: feat: simplify auto scroll behavior in ScrollServiceWidget (AppFlowy-IO#437) chore: bump version 1.3.0 (AppFlowy-IO#435) fix: better column resize performance (AppFlowy-IO#434) fix: table padding and selection (AppFlowy-IO#432) fix: table block bugs (AppFlowy-IO#431) fix: refactor text alignment handling in block components Revert "fix: remove flutter overlay (AppFlowy-IO#358)" (AppFlowy-IO#427) feat: support alignment for block component (AppFlowy-IO#425) fix: remove flutter overlay (AppFlowy-IO#358) feat: toggle highlight using ctrl/cmd + shift + h (AppFlowy-IO#333) feat: table plugin (AppFlowy-IO#62) feat: editor state update node (AppFlowy-IO#405) fix: exception on prev node text direction null (AppFlowy-IO#404) fix: html encoder not adding multiple text decorations (AppFlowy-IO#424) feat: default text direction property (AppFlowy-IO#402) fix: fixed the cursor not moving to next line after inserting divider (AppFlowy-IO#371) chore: update theme colors for editor feat: refactor floating toolbar positioning logic fix: update resizable image width calculation with minimum width constraint
- Loading branch information
Showing
82 changed files
with
5,069 additions
and
432 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
lib/src/editor/block_component/base_component/align_mixin.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import 'package:appflowy_editor/appflowy_editor.dart'; | ||
import 'package:flutter/material.dart'; | ||
|
||
mixin BlockComponentAlignMixin { | ||
Node get node; | ||
|
||
Alignment? get alignment { | ||
final alignString = node.attributes[blockComponentAlign] as String?; | ||
switch (alignString) { | ||
case 'center': | ||
return Alignment.center; | ||
case 'right': | ||
return Alignment.centerRight; | ||
case 'left': | ||
return Alignment.centerLeft; | ||
default: | ||
return null; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,50 @@ | ||
// paragraph | ||
export 'text_block_component/text_block_component.dart'; | ||
|
||
// to-do list | ||
export 'todo_list_block_component/todo_list_block_component.dart'; | ||
export 'todo_list_block_component/todo_list_character_shortcut.dart'; | ||
export 'todo_list_block_component/todo_list_command_shortcut.dart'; | ||
|
||
export 'base_component/align_mixin.dart'; | ||
export 'base_component/background_color_mixin.dart'; | ||
export 'base_component/block_component_action_wrapper.dart'; | ||
export 'base_component/block_component_configuration.dart'; | ||
// base | ||
export 'base_component/convert_to_paragraph_command.dart'; | ||
export 'base_component/indent_command.dart'; | ||
export 'base_component/insert_newline_in_type_command.dart'; | ||
export 'base_component/markdown_format_helper.dart'; | ||
export 'base_component/outdent_command.dart'; | ||
export 'base_component/text_direction_mixin.dart'; | ||
export 'base_component/text_style_configuration.dart'; | ||
export 'base_component/widget/full_screen_overlay_entry.dart'; | ||
export 'base_component/widget/nested_list_widget.dart'; | ||
export 'base_component_keys.dart'; | ||
// bulleted list | ||
export 'bulleted_list_block_component/bulleted_list_block_component.dart'; | ||
export 'bulleted_list_block_component/bulleted_list_character_shortcut.dart'; | ||
|
||
// numbered list | ||
export 'numbered_list_block_component/numbered_list_block_component.dart'; | ||
export 'numbered_list_block_component/numbered_list_character_shortcut.dart'; | ||
|
||
// quote | ||
export 'quote_block_component/quote_block_component.dart'; | ||
export 'quote_block_component/quote_character_shortcut.dart'; | ||
|
||
// divider | ||
export 'divider_block_component/divider_block_component.dart'; | ||
export 'divider_block_component/divider_character_shortcut.dart'; | ||
export 'divider_block_component/divider_menu_item.dart'; | ||
// heading | ||
export 'heading_block_component/heading_block_component.dart'; | ||
export 'heading_block_component/heading_character_shortcut.dart'; | ||
|
||
// image | ||
export 'image_block_component/image_block_component.dart'; | ||
export 'image_block_component/image_upload_widget.dart'; | ||
|
||
// divider | ||
export 'divider_block_component/divider_block_component.dart'; | ||
export 'divider_block_component/divider_character_shortcut.dart'; | ||
export 'divider_block_component/divider_menu_item.dart'; | ||
|
||
// base | ||
export 'base_component/convert_to_paragraph_command.dart'; | ||
export 'base_component/insert_newline_in_type_command.dart'; | ||
export 'base_component/indent_command.dart'; | ||
export 'base_component/outdent_command.dart'; | ||
export 'base_component/widget/full_screen_overlay_entry.dart'; | ||
|
||
// rich text | ||
export 'rich_text/default_selectable_mixin.dart'; | ||
// numbered list | ||
export 'numbered_list_block_component/numbered_list_block_component.dart'; | ||
export 'numbered_list_block_component/numbered_list_character_shortcut.dart'; | ||
// quote | ||
export 'quote_block_component/quote_block_component.dart'; | ||
export 'quote_block_component/quote_character_shortcut.dart'; | ||
export 'rich_text/appflowy_rich_text.dart'; | ||
export 'rich_text/appflowy_rich_text_keys.dart'; | ||
|
||
export 'base_component/block_component_configuration.dart'; | ||
export 'base_component/text_style_configuration.dart'; | ||
export 'base_component/background_color_mixin.dart'; | ||
export 'base_component/text_direction_mixin.dart'; | ||
export 'base_component/markdown_format_helper.dart'; | ||
export 'base_component/widget/nested_list_widget.dart'; | ||
export 'base_component/block_component_action_wrapper.dart'; | ||
|
||
// rich text | ||
export 'rich_text/default_selectable_mixin.dart'; | ||
export 'standard_block_components.dart'; | ||
export 'base_component_keys.dart'; | ||
export 'table_block_component/table_action.dart'; | ||
// table | ||
export 'table_block_component/table_block_component.dart'; | ||
export 'table_block_component/table_cell_block_component.dart'; | ||
export 'table_block_component/table_commands.dart'; | ||
export 'text_block_component/text_block_component.dart'; | ||
// to-do list | ||
export 'todo_list_block_component/todo_list_block_component.dart'; | ||
export 'todo_list_block_component/todo_list_character_shortcut.dart'; | ||
export 'todo_list_block_component/todo_list_command_shortcut.dart'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.