flutter_canvas_editor 1.1.0
flutter_canvas_editor: ^1.1.0 copied to clipboard
A canvas-based template editor engine for Flutter.
1.1.0 #
Added #
- Document Color helpers:
encodeDocumentColor/decodeDocumentColor(Color↔#AARRGGBB). - Per-Controller custom Node registry: types passed via
customNodeTypesstay on that Controller; usecustomNodeRegistryordocumentFromJsonwhen parsing custom types. - README clarifications: platform support (Web not supported), fit-to-parent canvas (no zoom/pan API), fonts, when
imageProvideris required, and Background Fill replace behavior onupdateBackground.
Changed #
- New Text Nodes default to the platform font (
fontFamily: null) instead ofInter. Documents that already setInterare unchanged. - Docs describe inline text edit as tap a selected text node again (not double-tap).
Deprecated #
CanvasEditorState.hasUnsavedChanges— this reflected undo stack depth, not unsaved work. Track dirty state withonDocumentChanged. Removed in 2.0.- Static
CustomNodeRegistry.register/registerAll/get/all— passcustomNodeTypesto the Controller instead. Removed in 2.0.
Removed #
- Unused
cupertino_iconsdependency.
1.0.0 #
- Initial release of the Canvas Editor engine: controller API, reactive state, text reflow, custom nodes, and PNG export.
onDocumentChangedfires on committed changes only (gesture end / undo moments); usestateStreamfor live mid-drag updates.