testing library

Keys that locate a canvas's surfaces in widget tests.

Constants

diagramAttributionKey → const Key
Key of the "Made with Vyuh Diagram" mark, for widget tests.
diagramContentLayerKey → const Key
Key of the layer that holds the diagram, its input, and the overlays the canvas and its extensions draw over it.
diagramControlLayerKey → const Key
Key of the canvas's last layer, which holds every control the installed extensions float over the canvas (DiagramFlutterExtension.buildControls).
diagramEditSurfaceKey → const Key
Key of the surface a canvas mounts while it edits.
diagramOverlayLayerKey → const Key
Key of the layer that holds the host's DiagramCanvas.overlay.
diagramTextEditorKey → const Key
Key of the in-place text editor while text is being edited. Its state is the platform TextInputClient.
diagramViewSurfaceKey → const Key
Key of the surface a canvas mounts while it only views.

Functions

editingExtension({List<DiagramTool>? tools}) → DiagramFlutterExtension
Makes a canvas edit, offering tools or every installed tool, without the editor's chrome: for widget tests of canvas editing.