Commit graph appflowy-editor/example
Author SHA1 Message Date
Yijing Huang
8bfb37f691
fix: keep keyboard appearance as same brightness as system theme (#264) 2023-07-03 12:51:18 +08:00
Lucas.Xu
435f1a6f9a
feat: support customizing image menu (#265) 2023-06-30 13:40:18 +08:00
Muhammad Rizwan
fe0aa7192b
feat: support item count filter in selection menu results (#254)
* feat: support item count filter in selection menu

* chore: code formatting

* chore: formatting

* chore: removed example changes

* chore: example files fix
2023-06-27 11:16:20 +08:00
Yijing Huang
09fd4c8d56
feat: text and background color in mobile toolbar (#233)
* refactor: move shared code out of desktop

* refactor: fix double exist error and extract color option

* feat: update color icon

* refactor: refactor MobileToolbarItemMenuBtn to be more flexiable

* feat: add textAndBackgroundColorMobileToolbarItem

* chore: dart fix

* refactor: extract MobileToolbarMenuGridDelegate

* chore: update UI parameters

* refactor: delete format color in format_rich_text_style.dart and refactor the code

* chore: remove the bottom line of tabbar

* refactor: set color opitions to be customizable

* chore: add scrollbar in opitions grid view

* test: update code to pass the previous tests

* chore: add Material in testing

* chore: unify text and background default color opitions

* test: add textAndBackgroundColorMobileToolbarItem test

* chore: update AppFlowyEditorLocalizations

* chore: replace string by components' key in tests

* test: add color options widgets tests

* chore: dart fix

* chore: dart format
2023-06-25 15:06:52 +08:00
Lucas.Xu
2ea98f1491
fix: extend attribute keys shouldn't be sliced (#248) 2023-06-24 10:51:31 +08:00
Lucas.Xu
d359da89c9
feat: support customizing text attribute key and rendering (#244) 2023-06-23 18:36:33 +08:00
Lucas.Xu
3614cc5bf1
Revert "fix: copy handler migrated to latest api (#192)" (#236)
This reverts commit ad838cfa86.
2023-06-22 10:04:42 +08:00
Aman Negi
03bc577fcd
feat: add underline shortcut (#199)
* feat: Add underline divider shortcut

* chore: stage uncommitted files

* chore: Add tests for character_shortcut_event
2023-06-20 22:33:46 +08:00
Ali Hassan
ad838cfa86
fix: copy handler migrated to latest api (#192)
* fix: copy handler migrated to latest api

* flutter analyze

* code formatted

* fix: test added for copy handler

* more test added for copy handler

* fix:write test for copy handler

* text added for html to nodes

* fix: added more test for html encoder

* fix:removed unused imports

* fix: copyhandler collapse state test added

* added direct event handler in test

* flutter analyze

* revert changes in example.json
2023-06-20 17:12:14 +08:00
Lucas.Xu
2a5069d62b chore: remove floating action button 2023-06-20 11:07:44 +08:00
Lucas.Xu
6e79060260
feat: support mobile drag selection (#209)
* feat: add handler for mobile selection widget

* feat: support dragging handler to update selection

* chore: format code

* feat: support dragging the cursor on mobile platform

* feat: optimize the scroll service
2023-06-20 10:26:22 +08:00
Yijing Huang
6a4a8ae818
feat: mobile tool bar basic features (#161)
* refactor: refactor mobile toolbar

* feat: add text decoration icon in AFMobileIcons

* chore: update mobile parameter

* feat: add text decoration basic feature

* chore: replace text by AppFlowyEditorLocalizations

* feat: add code toolbar item

* chore: refactor code
- add hasMenu in MToolbarItem
- add const size

* feat: add line input menu

* chore: create toolbar items draft file

* refactor: textDecorationMToolbarItem refactor

* fix: add key to ensures MToolbarWidget is rebuilt whenever the selection changes

* feat: add link toolbar item and the way to close item menu

* chore: replace m by mobile

* chore:replace BuiltInAttributeKey by FlowyRichTextKeys

* chore: replace m by mobile

* refactor: refactor MobileToolbarWidget

* refactor: add MobileToolbarStyle to control all cosmetic parameters

* refactor: refactor MobileToolbarItemMenuBtn to stateless widget

* feat: add heading menu

* fix: fix open the wrong menu

* feat: add heading icon

* feat: add todo list and list toolbar item

* feat: add quote toolbar item

* fix: fix selection service error

* test: add mobile toolbar basic elements test

* test: add item menu button test and helper widgets

* test: add text decoration mobile toolbar item test

* test: add code mobile toolbar item test

* test: add heading mobile toolbar item test

* test: add list mobile toolbar item test

* chore: fix typo

* test: add quote mobile toolbar item test

* test: add todo list mobile toolbar item test

* test: add link mobile toolbar item test

* chore: update name and add Material widget

* fix: flutter analyze

* fix: flutter analyze in test mobile toolbar

* chore: dart format test code

* refactor: improve code

* fix: fix refactor error

* chore: move all the tests in mobile to test/mobile

* chore: move toolbar/items to toolbar/desktop/items

* chore: remove the mobileToolbarItemMenuStateKey

* chore: add some comments

* test: update testing

---------

Co-authored-by: Lucas.Xu <lucas.xu@appflowy.io>
2023-06-13 14:01:08 +08:00
Lucas.Xu
f2630b4e93 fix: toolbar item size and scroll widget layout 2023-06-05 13:16:20 +08:00
Lucas.Xu
a7d2d32055 fix: unable to delete node on the mobile platform 2023-06-01 15:09:54 +08:00
Lucas.Xu
c573b9a80f
feat: rename delta and document (#153)
* chore: rename delta

* fix: rename attributes to data

* chore: rename document to page

* fix: flutter analyze
2023-06-01 14:43:12 +08:00
Lucas.Xu
839bb94cba feat: support paste html 2023-05-31 16:05:49 +08:00
Lucas.Xu
9199d0e94d fix: Cannot type on empty document in latest changes 2023-05-31 11:44:37 +08:00
Lucas.Xu
30ce149371
fix: new editor bugs (#137)
* chore: rename file to avoid pub get error

* fix: cursor blink

* fix: remove redundant padding on the mobile platform

* feat: customize the style of the selection menu
2023-05-27 21:15:05 +08:00
Mathias Mogensen
cbe2902373
chore: upgrade flutter to 3.10.1 (#136)
* chore: upgrade to flutter 3.10.1

* cicd: update actions

* fix: example application upgrade

* fix: formatting issues
2023-05-26 10:04:33 +08:00
Yijing Huang
edf5c7a634
feat: mobile toolbar basic UI (#8)
* chore: add mobile icon files

* chore: add AFMobileIcon and draft toolbar UI

* chore: move toolbar items out of MobileToolbar
2023-05-24 09:31:41 +08:00
Lucas.Xu
b29d053924 fix: flutter analyze and dart lint 2023-05-22 14:51:57 +08:00
Yijing Huang
ac1723171b
fix: overflow error in mobile (#6) 2023-05-20 17:43:38 +07:00
Lucas.Xu
fc3f2a952f feat: support paste plain text 2023-05-16 19:15:14 +08:00
Yijing Huang
5c43d1daad
feat: migrate link menu and color picker (#4)
* chore: move selectionRects to editorState

* chore: delete unused attributeKey font

* feat: refactor showLinkMenu and LinkMenu

* feat: replace old linkMenu

* feat: add text color toolbar item
- separate text color and highlight color item in toolbar
- renaming in BuiltInAttributeKey(color -> textColor, backgroundColor -> highlightColor)
- add text color and highlight color attribute in example.json
- add icons for text color and highlight color in the toolbar

* feat: add highlight color item in toolbar
- add clear highlight color button
- add onDismiss in ColorPicker to remove the overlay after remove highlight color

* chore: delete old ColorPicker

* test: migrate link menu test

* chore: remove editorStyle from color menu and color picker

* test: add color picker test

* feat: remove editor style from link menu
- add utils function and widgets for overlay
- organize utils folder
- add constant text into AppFlowyEditorLocalizations
- improve pop up menu style

* feat: add show link menu command shortcut
- refactor CommandShortcutEventHandler
- update related callback

* feat: add showTextColorMenuCommand and showHighlightColorMenuCommand

* fix: fix merge error in example.json

* refactor: reorganize the file hierarchy

* refactor: migrate format_style_handler_test.dart
- delete format_style_handler_test.dart
- migrate to markdown_commands_test.dart
- move highlight test outside of markdown_commands_test

* feat: delete show menu type command shortcut and their tooltip

* fix: fix tooltip text

* chore: delete context from CommandShortcutEventHandler

* feat: add command shortcut for link menu

* test: add show link menu command test
2023-05-11 11:26:52 +08:00
Lucas.Xu
bd854202bb fix: the placeholder text doesn't show 2023-05-04 16:26:37 +08:00
Lucas.Xu
a4e49c2853 chore: update example.json 2023-05-04 15:58:01 +08:00
Lucas.Xu
9f71058dac feat: migrate image node 2023-05-03 19:59:33 +08:00
Lucas.Xu
b4e0a90cc6 test: migrate internal_key_event_handlers 2023-05-03 13:44:54 +08:00
Lucas.Xu
4883a38126 test: migrate redo and undo command 2023-05-03 12:01:34 +08:00
Lucas.Xu
fd1a1b1551 test: migrate page up and down 2023-05-02 23:08:38 +08:00
Lucas.Xu
3020ce0c4c test: migrate the markdown_comamnds_test 2023-05-02 19:05:46 +08:00
Lucas.Xu
f2903bb034 test: migrate markdown commands 2023-05-02 18:44:52 +08:00
Lucas.Xu
4db30d8d09 test: migrate the escape key 2023-05-02 17:19:38 +08:00
Lucas.Xu
9be02bd3e9 test: migrate the enter key test 2023-05-02 17:14:26 +08:00
Lucas.Xu
0342668721 test: migrate the cursor_left_delete_handler.dart 2023-05-02 15:42:30 +08:00
Lucas.Xu
7bd8cba1fc test: migrate the checkbox_event_handler 2023-05-02 15:19:07 +08:00
Lucas.Xu
9bf6d554a1 test: migrate the backspace test 2023-05-02 14:54:06 +08:00
Lucas.Xu
a3464e1bf8 feat: implement insert a new line after todo list, bulleted list and numbered list 2023-05-02 12:51:36 +08:00
Lucas.Xu
91a13cdcfa feat: implement arrow up and down key 2023-05-01 15:24:51 +08:00
Lucas.Xu
53ccb967dd feat: implement home / end shortcut 2023-05-01 14:37:25 +08:00
Lucas.Xu
1d0055d0b1 feat: adjust the text command 2023-04-30 15:01:09 +08:00
Lucas.Xu
683aa924f3 feat: implement format toolbar item 2023-04-29 16:39:32 +08:00
Lucas.Xu
10ccd61237
Merge branch 'mobile' into feat/to_do_list_charcter_shortcut 2023-04-29 11:35:04 +08:00
Lucas.Xu
a0524b8476
Merge branch 'mobile' into feat/bold_shortcut 2023-04-29 11:33:49 +08:00
Lucas.Xu
33e89ddc8c feat: implement the color and link toolbar item 2023-04-29 11:22:43 +08:00
Lucas.Xu
43d806fe18 feat: implement format style toolbar item 2023-04-29 11:22:43 +08:00
Yijing Huang
76a7ebef61 feat: add todo list character shortcut 2023-04-28 15:30:06 -05:00
Yijing Huang
249163d51c feat: add bold shortcut 2023-04-28 08:44:00 -05:00
Yijing Huang
ed1074fb56
Merge pull request #1 from LucasXu0/feat/single-char-format-style
feat: single character shortcut events
2023-04-28 08:32:24 -05:00
Lucas.Xu
683318b177 feat: implement heading block 2023-04-28 17:03:58 +08:00