genui_customizer library

Runtime appearance editing for A2UI Flutter surfaces.

Classes

GenUiTouchController
Coordinates appearance edits while A2UI owns the actual surface state.
GenUiTouchStudio
Runtime editor for an A2UI surface and its reusable component defaults.
SharedPreferencesTouchStudioBoundsPersistence
App-local Studio bounds persistence, retained from the earlier UI.
TouchContract
A type and its visual-property allowlist within one catalog.
TouchProfile
Portable saved defaults and role preferences, independent of component IDs.
TouchProperty
A host-approved visual property. It must also exist in the A2UI catalog.
TouchSelection
A selected definition and the rendered occurrence that was touched.
TouchStorage
Persistence is owned by the host application and its authorization rules.
TouchStudioBoundsPersistence
Stores the floating Studio's position and size in logical pixels.

Enums

TouchValueKind
Types the host permits a user to change for presentation purposes.

Functions

showGenUiTouchStudio({required BuildContext context, required GenUiTouchController controller, required String surfaceId, TouchGalleryPreview? galleryPreview, TouchStudioBoundsPersistence? boundsPersistence = const SharedPreferencesTouchStudioBoundsPersistence()}) → Future<void>
Opens the same floating, movable, resizable Studio pattern as the earlier GenUI Touch UI. A2UI changes only the content and controller underneath it.

Typedefs

TouchGalleryPreview = Widget Function(BuildContext context, TouchContract contract, Map<String, Object?> values)
Host-supplied live component preview for a Gallery entry.
TouchPropertyComposer = Future<Object?> Function(TouchSelection selection, TouchProperty property, String instruction)
Optional host AI service. The package validates the proposed value itself.
TouchRoleResolver = String? Function(TouchSelection component, Map<String, Object?> definition)
A stable presentation role supplied by the host, not a rendered index.