metalink_flutter library
Metalink Flutter - Link Preview Widget Library Flutter UI components for the Metalink metadata extraction package
Classes
- AudioCandidate
- Represents an audio candidate extracted from the page.
- CacheEntry
- Defines the structure of data stored in the cache.
- CacheKeyBuilder
- Utility for generating consistent, collision-resistant cache keys.
- CacheOpResult
- The result of a cache operation (delete, clear).
- CacheOptions
- Configuration for the caching layer.
- CachePurgeResult
- The result of a cache purge operation.
- CacheReadResult
- The result of a cache read operation.
- CacheStore
- Interface for a persistent storage layer.
- CacheWriteResult
- The result of a cache write operation.
- ExtractionDiagnostics
- Diagnostic information about the entire extraction process.
-
ExtractionResult<
T> - The outcome of an extraction operation.
- ExtractOptions
- Configuration for the metadata extraction pipeline.
- FaviconWidget
- A widget that displays a website's favicon
- FetchDiagnostics
- Diagnostic information about the HTTP fetch phase.
- FetchOptions
- Configuration for the network layer of the extraction process.
- FieldProvenance
- Records which source provided a metadata field and how confident the match was.
- HiveCacheStore
- A persistent CacheStore implementation backed by Hive.
- IconCandidate
- Represents a favicon or icon candidate extracted from the page.
- ImageCandidate
- Represents an image candidate extracted from the page.
- ImagePreview
- A widget that displays a preview image from a URL
- ImageResolver
- A utility class for resolving image candidates from ImageCandidate
- LinkMetadata
- The normalized output of a metadata extraction process.
- LinkPreview
- Main link preview widget that can be configured and used directly
- LinkPreviewBuilder
- A builder widget for creating link previews from a URL
- LinkPreviewCard
- A card-style link preview widget
- LinkPreviewCompact
- A compact horizontal link preview widget, suitable for chat interfaces
- LinkPreviewConfig
- Configuration options for link previews
- LinkPreviewController
- Controller for managing link preview state and data loading
- LinkPreviewLarge
- A large link preview widget with prominent image and detailed content
- LinkPreviewSkeleton
- A skeleton loading placeholder for link previews
- LinkPreviewTheme
- A theme extension for customizing link preview styles throughout an app
- LinkPreviewThemeData
- Defines the visual properties for link preview widgets.
- ManifestIcon
- Represents an icon defined in a Web App Manifest.
- MemoryCacheStore
- An in-memory CacheStore implementation with LRU eviction.
- MetadataFlutterCacheFactory
- Factory for creating metadata cache instances
- MetadataProvider
- Provider for link metadata with integration with MetaLink's caching system
- MetaLink
- Convenience one-off API for link metadata extraction.
- MetaLinkClient
- A reusable client for extracting link metadata with connection pooling and caching.
- MetaLinkClientOptions
-
The root configuration object for
MetaLinkClient. - MetaLinkError
- Represents a fatal error that prevented metadata extraction.
- MetaLinkLogRecord
- A structured log record emitted during extraction.
- MetaLinkWarning
- Represents a non-fatal issue that occurred during extraction.
- OEmbedData
- Data fetched from an oEmbed endpoint.
- OEmbedEndpoint
-
Describes an oEmbed endpoint discovered via
<link rel="alternate">. - RawLinkTag
-
Represents a raw
<link>tag extracted from an HTML document. - RawMetadata
- Raw metadata extracted from an HTML document before normalization.
- RedirectHop
- Represents a single redirect step during URL resolution.
- ResponsiveBreakpoint
- Represents a responsive breakpoint with optional dimensions
- ResponsiveImage
- Represents a responsive image with its dimensions and source breakpoint
- StructuredDataGraph
- JSON-LD structured data extracted from the page.
- UrlDetector
- A utility class for URL detection and manipulation
- UrlMatch
- Represents a URL match in text
- UrlOptimizationResult
- The result of optimizing/resolving a URL by following redirects.
- VideoCandidate
- Represents a video candidate extracted from the page.
- VideoPreview
- A video-style link preview widget with play button overlay.
- WebAppManifestData
-
Data extracted from a Web App Manifest (
manifest.json).
Enums
- CachePayloadKind
- The type of data stored in a cache entry.
- CandidateSource
- The origin of a metadata candidate during extraction.
- CharsetSource
- Indicates how the character encoding was determined for fetched HTML.
- LinkKind
- LinkPreviewStyle
- Defines the available presentation styles for link previews
- MetaField
- Identifies a specific field in LinkMetadata.
- MetaLinkErrorCode
- Categorizes the type of failure that occurred during extraction.
- MetaLinkLogLevel
- Severity level for internal logging.
- MetaLinkWarningCode
- Categorizes non-fatal issues that occurred during extraction.
- OEmbedFormat
- The response format of an oEmbed endpoint.
- UrlType
- Represents the type of content at a URL
Extensions
- LinkMetadataExtensions on LinkMetadata
- Extensions on LinkMetadata for Flutter-specific functionality
- LinkPreviewContextExtensions on BuildContext
- Extensions on BuildContext for easy access to link preview utilities
- LinkPreviewThemeExtension on BuildContext
- Extensions on BuildContext to easily access link preview theming
- ThemeDataExtensions on ThemeData
- Add theme extension methods to ThemeData
Typedefs
- LinkPreviewTapCallBack = void Function(LinkMetadata? data)
- the call back of on tap on any LinkPreview widget.
- MetaLinkLogSink = void Function(MetaLinkLogRecord record)
- Callback signature for receiving log records.