Commit graph appflowy-editor/assets/mobile/toolbar_icons
Author SHA1 Message Date
Yijing Huang
87fd7ed82d
feat: improve keyboard behavior in mobile toolbar (#287) 2023-07-12 22:14:45 +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
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
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