Commit graph appflowy-editor/example/lib
Author SHA1 Message Date
a512a3ef88
Move to file_picker v13 and device_info_plus v13 (win32 v6)
Both depend on win32 v6, like current Serverpod, so an app that also uses Serverpod can resolve the editor in one pub workspace; file_picker v10 and device_info_plus v12 need win32 v5.

file_picker v12 made its API static, returns the picked files directly and reads their content on demand (PlatformFile.readAsBytes()); v13 removed the parameters v12 had deprecated. The FilePickerService implementation keeps its interface: withData, withReadStream and lockParentWindow are ignored, allowMultiple chooses between pickFiles() and pickFile(), and saveFile() saves an empty file, since file_picker now writes the file itself and needs its content up front. The image upload reads the picked file's bytes on the web; the example app saves and opens files with the new API.

Raises the minimum to Dart v3.11 and Flutter v3.41.6 (device_info_plus v13).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 21:45:27 +02:00
Nathan
a9697798f6 fix: prevent remote updates from scrolling local viewport 2026-08-06 20:17:15 +08:00
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
Richard Shiue
15289103a2
chore: adjust context menu visibility logic (#1158)
* chore: default example context menu

* chore: adjust context menu visibility logic

* chore: dart analyzer
2025-11-11 12:55:26 +08:00
Lucas
bcafa80b78
chore: optimize auto scroller speed (#1147)
* chore: bump version 6.0.0

* chore: bump version 6.0.0

* feat: optimize the auto scroller speed

* chore: code format
2025-10-27 14:49:14 +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
Morn
5bcc4e8fd9
fix: enable dismiss floating toolbar from outside (#1073)
* chore: update comment of the editable field in editor

* fix: assertion in editor list example

* feat: add text span overlay

* feat: add textSpanOverlayBuilder in edtor style

* fix: enable dismiss floating toolbar from outside

* chore: make sure context of global key in rich text is available for overlay

---------

Co-authored-by: Lucas.Xu <lucas.xu@appflowy.io>
2025-03-24 13:45:01 +08:00
Lucas
7ded33fb93
fix: assertion in editor list example (#1064)
* chore: update comment of the editable field in editor

* fix: assertion in editor list example
2025-03-14 11:46:41 +08:00
Morn
4f51ccd35e
feat: enable set floatingToolbarHeight outside (#1058)
* feat: enable set floatingToolbarHeight outside

* feat: add HoverController for toolbar

* fix: rever HoverController

This reverts commit b9cc036c9cb0ea03b41eb7c302634158b6ddfb53.
2025-03-13 10:20:11 +08:00
Lucas
c1e9d15572
feat: add simple columns block in editor (#1038)
* feat: add simple columns block in editor

* feat: add divider between column block

* fix: add fallback logic in calculate selection function

* feat: add column width resizer

* feat: integrate columns block in editor on desktop
2025-02-21 12:05:56 +08:00
Lucas
1df3cb1a1f
fix: editor will crash if deleting all nodes (#1037)
* fix: editor will crash if deleting all nodes

* chore: disable windows ci
2025-02-18 16:22:05 +08:00
Lucas
70990e814c
feat: upgrade to Flutter 3.27.0 (#1020)
* chore: upgrade to Flutter 3.27.x

* chore: fix flutter analyze.

* chore: update changelog
2025-01-17 10:46:47 +08:00
Lucas
2490f698c3
feat: expose text span for text style builder (#1011)
* feat: expose textspan for text style builder

* fix: content menu will show when collaborating
2025-01-06 11:40:17 +08:00
Lucas
cfb8b1b6eb
feat: clear selection extra info before inserting a new line (#1009)
* feat: enable debug paint size for mobile drag handle

* fix: clear selection extra info when inserting new line

* Revert "feat: enable debug paint size for mobile drag handle"

This reverts commit 3ece3c64d3a1c7fc2051ca7603e75dcf053304e8.
2024-12-30 15:28:26 +08:00
Lucas
1f124c1879
feat: enable debug paint size for mobile drag handle (#1007)
* feat: enable debug paint size for mobile drag handle

* feat: support auto-dismiss mobile collasped handle

* feat: clear composing range when updating selection by ui event
2024-12-30 15:07:14 +08:00
Mike Faust
4f1473b392
fix: added autoScrollEdgeOffset to fix assertion error when scrolling in the example (#974) (#991) 2024-12-16 10:43:03 +08:00
Lucas
954ffa538e
feat: reset to the default inline code format logic (#988)
* chore: reset to default inline code format logic

* fix: slice_attributes_test
2024-12-11 18:09:01 +08:00
Lucas
5cb871d3f5
feat: custom slice function (#935) 2024-10-17 11:04:47 +08:00
Lucas
bcd12082fe
feat: select multiple lines with block selection style (#936)
* feat: select multiple lines with block selection style

* feat: block selection margin

* fix: filter the selection not in same depth
2024-10-16 17:47:39 +08:00
Lucas
41048fed6c
feat: add auto expanded editor showcase (#920) 2024-10-14 09:58:24 +08:00
Lucas
628d5c8d0c
feat: support formatting text when the composing range is not collapsed (#900) 2024-09-26 15:36:08 +08:00
Lucas
8582191b06
feat: support moving a block to become a child of another block (#896)
* feat: support moving a block to become a child of another block

* fix: disable moving a block to its children

* chore: update example/lib/pages/drag_to_reorder_editor.dart

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

* chore: update example/lib/pages/drag_to_reorder_editor.dart

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

* feat: optimize moving logic

---------

Co-authored-by: Mathias Mogensen <42929161+Xazin@users.noreply.github.com>
2024-09-20 16:09:03 +08:00
Lucas.Xu
0a0154ff7d feat: support customizing max width 2024-09-18 13:49:41 +08:00
Lucas
bc591cc1c6
feat: implement auto scroll when draggaing to reorder (#889)
* feat: implement auto scroll when draggaing to reorder

* fix: render placeholder instead of table
2024-09-13 16:55:14 +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
Lucas.Xu
4536488faf chore: add toolbar id 2024-08-06 18:02:04 +08:00
Lucas.Xu
4c4cc415d5
feat: support customizing tooltip style (#856) 2024-08-06 17:14:06 +08:00
Mathias Mogensen
819e579afd
feat: render drop target (#848)
* feat: expose method to render drop target

* feat: add style to drop target

* feat: add DropTargetRenderData for more concise control

* fix: split up rendering and data fetching

* chore: clean unused code

* chore: remove unused example code for testing
2024-07-25 20:20:14 +02:00
Lucas.Xu
e0d673afbb
fix: document from markdown contains html escaped text (#841) 2024-07-11 18:01:24 +08:00
Lucas.Xu
8b9ccf83fd
fix: render issue of nested list (#838)
* fix: render issue of nested list

* fix: table board doesn't show in readonly mode

* fix: ci tests
2024-07-04 16:58:57 +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
c25ae11f18
feat: enable selection in readonly mode (#837)
* feat: enable selection in readonly mode

* fix: test
2024-07-04 11:23:55 +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
5d4f2367a3
feat: support customizing mobile page style (#769)
* feat: customize the list icons

* test: fix tests
2024-04-16 17:30:51 +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
63844fd121
feat: support selection counters (#706)
* feat: support selection counters

* feat: improve
2024-02-08 10:46:45 +01: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
Juliano Penna
7fe3ff7801
chore: localize more items (#680)
* fix: localize tooltips from toolbar items

* fix: Localize shortcut descriptions

* refactor: reorder able menu entries

* fix: update translation if locale changes

* feat: translate all pt-BR

* docs: explain how to change locales

* ci: fix failing unit test
2024-01-25 23:43:02 +08:00
Lucas.Xu
ba9bcee094
feat: support customizing cursor width (#654) 2024-01-08 14:54:34 +08:00
Lucas.Xu
07afd7a839
feat: improve android selection gesture (#647)
* feat: improve android touch gesture

* feat: long press to select a word on Android
2024-01-05 14:23:18 +08:00