Commit graph appflowy-editor/example/lib
Author SHA1 Message Date
Lucas.Xu
82f3baf3f1
feat: support customizing the mobile magnifiter (#625)
* feat: support customizing the mobile magnifiter

* chore: remove unused test

* feat: expaned the padding between cursor and toolbar

* feat: support long pressing to update selection

* chore: revert code sign
2023-12-19 18:15:56 +08:00
Lucas.Xu
ffab5a1ca2
fix: memory leaks (#615) 2023-12-08 15:39:18 +08:00
Lucas.Xu
8bbb3a0783
chore: upgrade to flutter 3.16 (#614) 2023-12-07 22:22:34 +08:00
Lucas.Xu
4995d21ff4
feat: support get the after text decorate from textSpanDecorator (#612) 2023-12-04 15:15:21 +08:00
Lucas.Xu
7127a37f25
feat: show magnifier when dragging the handlers (#601)
* feat: add mobile magnifier to selection service

* feat: make the showMagnifier value as public
2023-11-23 09:25:22 +08:00
Lucas.Xu
2617f766a5 fix: the content is blocked by the keyboard sometimes (#594)
* fix: the content is blocked by the keyboard sometimes

* chore: use flutter 3.13.9 in CI
2023-11-16 17:59:36 +08:00
Lucas.Xu
e665b67c0d
fix: the new mobile toolbar doesn't work if resizeToAvoidBottomInset is true (#593)
* fix: toolbar issues

* fix: adjust the mobile toolbar when resizeToAvoidBottomInset is true
2023-11-16 10:05:37 +08:00
Lucas.Xu
4345105ebe
feat: optimize editing experience on mobile (#592)
* feat: optimize mobile editing

* feat: refactot the mobile toolbar

* feat: don't reattch text input if the selection doesn't change

* chore: update mobile toolbar layout
2023-11-15 16:03:17 +08:00
Lucas.Xu
c7d99913aa
feat: support Flutter stable channel (#581)
* feat: adjust toggle list block

* chore: upgrade Flutter to master channel

* chore: upgrade pbxproj

* fix: toolbar copy button not closing on mobile editor

* fix: formatting issues and add missing commas

* chore: add stable branch to GitHub Actions workflow

* chore: add missing trailing commas

* chore: adjust indentation padding in block component
configuration and unit tests
2023-11-08 13:46:33 +08:00
Johan Sutrisno
5c4f4abab2
feat: Checkbox unresponsive in custom Theme example in editor example app (#543)
* feat: checkbox unresponsive custom theme example

* fix: resolve feedback

* fix: change inkwell to gesture detector

---------

Co-authored-by: Johan Sutrisno <johan@zero-one-group.com>
2023-11-05 19:46:52 +01:00
Jaskeerat Singh
41c9318986
fix: applied corner radius to block selection (#557)
* fix: Applied Corner Radius to Block Selection Area

* fix: removed un-necessary line

* fix: format file

---------

Co-authored-by: Mathias Mogensen <42929161+Xazin@users.noreply.github.com>
2023-10-29 11:08:56 +01:00
Lucas.Xu
89b93d89a7
feat: optimize editable features (#541) 2023-10-17 17:38:27 +08:00
Lucas.Xu
31403c9b42
fix: background color issues (#530) 2023-10-11 19:41:15 +08:00
Lucas.Xu
78b004565c
fix: the selection should be clear if header or footer is focusing (#525) 2023-10-10 16:53:12 +08:00
Yijing Huang
897033035c
feat: export JSON in mobile and update mobile_example.json (#515)
* feat: add export json in mobile

* chore: update editor style and example json for mobile showcase

* chore: improve text content
2023-10-10 15:42:51 +08:00
Lucas.Xu
384532434c
feat: optimize the find and replace logic (#510) 2023-10-01 16:51:42 +08:00
Lakhan Baheti
2b58d4f9ca
feat: support RTL in toolbar (#496) 2023-09-27 15:34:33 +08:00
Lucas.Xu
d1b9084ffb
fix: unable to update selection sometimes when the editor lost focus (#509) 2023-09-27 09:18:23 +08:00
Lucas.Xu
77436201ae
chore: bump version 1.4.3 (#502) 2023-09-25 17:53:18 +08:00
Lucas.Xu
1bd1a6b514 fix: the placeholder doesn't appear on desktop platform 2023-09-21 10:17:45 +08:00
Lucas.Xu
967e3e82a8 fix: required named parameter 'onLiveTextInput' must be provided 2023-09-21 10:08:56 +08:00
Lucas.Xu
78dd254d1e
feat: add more showcases on desktop/mobile platform (#481) 2023-09-20 11:17:39 +08:00
Lucas.Xu
6699d58631
feat: add more showcases on the mobile platform (#479) 2023-09-18 22:05:17 +08:00
Mathias Mogensen
f5b3ea87f5
chore: add jumpTo to editor scroll service (#466) 2023-09-15 00:02:05 +02:00
Lucas.Xu
b602141d32 fix: missing a required trailing comma 2023-09-13 15:26:29 +08:00
Lucas.Xu
19f999f422
feat: optimize the performance (#442) 2023-09-11 15:03:14 +08:00
Lucas.Xu
836e4cbd70
feat: support alignment for block component (#425) 2023-08-29 16:43:24 +08:00
Mayur Mahajan
7a03439c82
feat: toggle highlight using ctrl/cmd + shift + h (#333)
* feat: add highlight command shortcut

* feat: toggle highlight in markdown commands

* refactor: customizable highlight color

* feat: taking color from editor page
2023-08-29 15:25:08 +08:00
Lucas.Xu
20ddb03cca chore: update theme colors for editor 2023-08-28 16:35:57 +08:00
Mayur Mahajan
f5c6dc2ce7
feat: find dialog 1760 (#106)
* feat: make find menu widget

* feat: service for find menu

* feat: add find menu shortcut event

* feat: create a search service

* docs: explain search service

* fix: unhighlight method takes searched word

* fix: unhighlight before each search

* feat: navigate between matches

* feat: forget highlighting from undo stack

* feat: replace logic and ui

* feat: replace shortcut handler and widget

* test: find functionality

* test: replace menu tests

* refactor: separate class for search algo

* refactor: suggested changes

* refactor: remove unhighlight method

* feat: add find highlight color

* refactor: name of the search algo class

* test: unit tests for search algorithm

* chore: simplify syntax

* test: renamed test group

* refactor: move to editor

* refactor: add shortcut for find

* refactor: use new api

* refactor: add abstrac class search algo

* fix: avoid multiple instances of find dialog

* refactor: xazin's suggestions

* chore: separately build input decor

* test: search algorithm

* chore: unhighlight properly

* refactor: replace handler

* refactor: move tests into new

* test: find menu widget test

* test: replace menu

* fix: localizations + resolve scroll bug partially

* fix: without update selection on highlight

* fix: do not select words when highlighting

* test: update expected selection

* fix: matches and styling

* feat: separate attribute for highlighting

* feat: unique color for selected match

* test: unique color for selected match

* refactor: cleaning the code

* fix: navigate to first match

* fix: tests and replace logic

---------

Co-authored-by: Mathias Mogensen <mathiasrieckm@gmail.com>
Co-authored-by: Mathias Mogensen <42929161+Xazin@users.noreply.github.com>
2023-08-10 13:08:45 +02:00
Mohammad Zolfaghari
f8da435ad5
feat: support RTL and auto direction (#191) 2023-07-12 10:51:38 +08:00
Lucas.Xu
46158d9e26
feat: customize href (#293) 2023-07-07 16:07:47 +08:00
Yijing Huang
13805afc33
feat: customized color options (#270) 2023-07-04 10:38:42 +08:00
Yijing Huang
31934d7acd
feat: divider toolbar item in mobile (#281) 2023-07-04 10:09:44 +08:00
Mathias Mogensen
f6584b9f48
fix: add support for query schemes in example app (#279) 2023-07-03 21:03:19 +08:00
Lucas.Xu
070ceb3e27
feat: migrate the delta encoder (#277) 2023-07-03 19:19:32 +08:00
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
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
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
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
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