Commit graph appflowy-editor/example/lib/home_page.dart
Author SHA1 Message Date
Lucas
41335c54ae
chore: merge flutter 3_27_4 into main branch (#1228)
* chore: merge flutter/3_27_4 to main branch

* chore: code format

* fix: unit tests
2026-07-27 15:37:27 +08:00
Lucas.Xu
955db55b8a chore: use latest file picker version 2026-01-29 14:12:57 +08:00
Lucas
879305dead
fix: sync deps doesn't support on web (#1181) 2026-01-28 14:16:38 +08:00
Jan Zimola
6721018df0
feat: added offline collaboration example using appflowy_editor_sync_plugin (#1103)
* Adding offline collaboration example using appflowy_editor_sync_plugin

* Adapting example to a new  appflowy_editor_sync_plugin version.

* Revert "Adapting example to a new  appflowy_editor_sync_plugin version."

This reverts commit 7ea235f6f6ceb34d00a365fd05e82cdb6c5a8c67.

* increase flutter-version for testing workflow

* fix: auto_scrollable_widget adding lint ignore: invalide_use_of_protected_member.
2025-05-12 15:21:29 +08:00
Lucas
470c4e77c7
feat: support block wrapper (#1101) 2025-05-07 10:28:18 +08:00
Lucas
41048fed6c
feat: add auto expanded editor showcase (#920) 2024-10-14 09:58:24 +08:00
Lucas.Xu
5d1d311a2c
feat: support dragging to reorder block (#887)
* feat: support drag to reorder block

* feat: enable drag to reorder on home page

* fix: proper offset calculation for drop path

* docs: update doc comments for the drop target API

* fix: render issue

---------

Co-authored-by: Mathias Mogensen <mathiasrieckm@gmail.com>
2024-09-12 20:46:55 +08:00
Lucas.Xu
72512df842
chore: hide Log and PlatformExtension (#886) 2024-09-11 17:51:53 +08:00
Sean Riley Hawkins
f6ee2fc02c
feat: export document to PDF (#695)
* feat: create initial parser for PDF format

* chore: add comments to explain code.

* chore: commit missing file

* feat: init commit for pdf parser

* chore: bind dependancy to git repo fork for fixes

* feat: get basic text from parser

* feat: get textstyle working with various texts

* fix: ensure formatting(bold, italics) doesnt break paragraphs

- Remove additional comments.

* chore: remove htmltopdfwidgets dependancy

* chore: clean up redundant code and add helper functions

* chore: update example files to include pdf option for export

* fix: remove html exportFileType

* feat: add in image support

* feat: add image support for network & local image

* feat: enable table support

* fix: enable tables in pdf parser

- Tables are enabled but lists within a table are not working yet.
- There is also the case of strikethrough not working, probably it didnt get rendered as a tag.
- Cleaned up example.dart

* chore: clean up comments in files & unused imports.

* chore: remove unused file.

---------

Co-authored-by: Lucas.Xu <lucas.xu@appflowy.io>
2024-07-04 11:57:43 +08:00
Lucas.Xu
5bf6c7acd0
feat: support custom markdown parsers (#835)
* feat: support custom markdown parsers

* fix: markdown test

* feat: add markdown quote parser

* chore: use markdown parser

* chore: parse unordered list, to_do list and quote

* feat: add a markdown editor example

* feat: add bulleted list parser

* feat: support nested list and img

* feat: support code block

* feat: support table parser

* chore: refacotr code

* fix: flutter analyze

* chore: add more tests and remove unused files

* fix: test
2024-07-04 09:53:25 +08:00
Lucas.Xu
d73e8893d1 fix: mobile toolbar UI shift (#818) 2024-06-11 11:18:22 +08:00
Lucas.Xu
61d892a09c
feat: support auto complete for text block (#764)
* feat: support auto complete for text block

* feat: support auto complete for text block

* test: add auto complete test

* feat: support tab to auto complete

* chore: optimize the code

* chore: update token
2024-04-11 10:48:12 +08:00
Lucas.Xu
b927ec0685
feat: support remote selections (#753)
* chore: delete deprecated code

* feat: support remote seleciton

* feat: support selection flag
2024-03-27 17:01:34 +08:00
Lucas.Xu
cbb33469cd
feat: add diff document/nodes function (#748)
* feat: transform operations

* feat: add document diff function
2024-03-19 17:38:14 +08:00
Lucas.Xu
014abd74fe
feat: add fixed toolbar example (#739)
* feat: add fixed toolbar example

* feat: highlight bold button if the selected text is all bold
2024-03-07 09:47:23 +08:00
Lucas.Xu
d4d35c0d10
fix: flutter anlayze (#730) 2024-02-28 11:03:29 +08:00
Lucas.Xu
1715ed4549
feat: support scaling the svg (#722)
* feat: support scaling the svg

* fix: flutter test
2024-02-21 15:41:55 +08:00
Mathias Mogensen
9c27b8e309
feat: word counter service (#705)
* feat: word counter service

* chore: minor improvement

* test: add expect for stop()

* fix: code review
2024-02-07 16:30:27 +01: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
Lucas.Xu
89b93d89a7
feat: optimize editable features (#541) 2023-10-17 17:38:27 +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
d1b9084ffb
fix: unable to update selection sometimes when the editor lost focus (#509) 2023-09-27 09:18:23 +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
Lucas.Xu
19f999f422
feat: optimize the performance (#442) 2023-09-11 15:03:14 +08:00
Lucas.Xu
46158d9e26
feat: customize href (#293) 2023-07-07 16:07:47 +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
Lucas.Xu
435f1a6f9a
feat: support customizing image menu (#265) 2023-06-30 13:40:18 +08:00
Lucas.Xu
d359da89c9
feat: support customizing text attribute key and rendering (#244) 2023-06-23 18:36:33 +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
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
Lucas.Xu
b29d053924 fix: flutter analyze and dart lint 2023-05-22 14:51:57 +08:00
Lucas.Xu
e64d829012 chore: fotmat the code and implement floating_toolbar 2023-04-28 13:33:13 +08:00
Mathias Mogensen
ecba7ba49b
fix: lessen horizontal editor padding for mobile (#70)
* fix: lessen horizontal editor padding for mobile

* Update lib/src/render/style/editor_style.dart

Co-authored-by: Mathias Mogensen <42929161+Xazin@users.noreply.github.com>

---------

Co-authored-by: Lucas.Xu <lucas.xu@appflowy.io>
2023-04-14 10:10:43 +08:00
Lucas.Xu
c89ea36ce7
chore: sync the latest code from main repo (#25) 2023-03-22 16:36:32 +08:00
Lucas.Xu
682e3dce53
chore: pre-release 0.1.1 (#3) 2023-03-09 15:38:54 +08:00
Lucas.Xu
5db0480075 chore: update LICENSE 2023-02-05 11:43:51 +08:00
Renamed from frontend/app_flowy/packages/appflowy_editor/example/lib/home_page.dart (Previous history)