vyuh_extension_content library

Classes

Action
A composable action that can be executed in response to user interaction.
ActionConfiguration
Base class for all action configurations.
Condition
A conditional expression that can be evaluated at runtime.
ConditionConfiguration
Base class for all condition configurations.
ContentBuilder<T extends ContentItem>
A builder for configuring and managing content types and their layouts.
ContentDescriptor
ContentExtensionBuilder
ContentExtensionDescriptor
DefaultContentPlugin
The default ContentPlugin implementation for the Vyuh framework. This plugin is responsible for fetching content from a CMS and rendering content items. It uses a ContentExtensionBuilder to keep track of the various ContentItem types.
DocumentBuilder<T>
A widget that builds UI based on document data fetched from a content provider.
DocumentFutureBuilder<T>
A widget that builds UI based on a future of document data.
DocumentStreamBuilder<T>
A widget that builds UI based on a stream of document data.
PreviewContext
RouteBuilder
RouteBuilderProxy
RouteContentWithRefresh
Works in conjunction with the RouteBuilderProxy to trigger refresh on a Route
ScopedDIWidget
A widget that wraps its child with a scoped instance of DIPlugin.
UnknownActionConfiguration
Unknown placeholder types for handling missing type registrations gracefully. These placeholders allow the system to continue working while providing proper error feedback through the unknown content builder system. Unknown action configuration placeholder.
UnknownConditionConfiguration
Unknown condition configuration placeholder.
UnknownContentDetector
Utility functions for detecting unknown placeholders in content items.
UnknownContentIndicator
A widget that wraps content items to provide visual feedback when they contain unknown actions, conditions, layouts, or modifiers.
UnknownContentModifierConfiguration
Unknown content modifier configuration placeholder.
UnknownLayoutConfiguration<T extends ContentItem>
Unknown layout configuration placeholder.

Extensions

DIExtension on BuildContext
ServiceExtensions on ContentPlugin

Functions

createUnknownPlaceholder(Type type, String missingSchemaType, Map<String, dynamic> jsonPayload) → SchemaItem?
Factory function that creates unknown placeholders for different schema item types. This is registered with the serialization system to provide placeholders when type registration fails.
initializeUnknownPlaceholderFactory() → void
Initializes the unknown placeholder factory for the serialization system. This should be called during app initialization.

Typedefs

ContentDescriptorFactory<T extends ContentItem> = ContentDescriptor Function({List<TypeDescriptor<LayoutConfiguration<T>>>? layouts})