oghref_builder library
Classes
- AudioInfo
- Specify audio metadata in rich informations.
- ImageInfo
- Display thumbnail of website with given image.
- MetaFetch
-
Read
Document
and find all metadata tags to generate corresponded MetaInfo. - MetaInfo
- Completed structure of rich information link preview metadata.
- OgHrefBuilder
- A utility for building Widget from url retrived MetaInfo.
-
OgHrefBuilderState<
T extends OgHrefBuilder> - State implementation of OgHrefBuilder with additional functions provided for rendering content of rich information link.
- OpenGraphPropertyParser
-
Open Graph Protocol implementations of
MetaPropertyParser
. - TwitterCardPropertyParser
-
Twitter card implementations of
MetaPropertyParser
. - VideoInfo
- Define metadata information for playing video in preview.
Enums
- MetaMergePreference
- A preference for operationg MetaInfo.merge.
Mixins
- WidthSizeMeasurement
- Calculating the ideal width under responsive
Typedefs
- MetaInfoFetchFailedBuilder = Widget Function(BuildContext context, Object exception, VoidCallback openLink)
- A builder for handling failure of loading rich information link.
- MetaInfoRetrivedBuilder = Widget Function(BuildContext context, MetaInfo metaInfo, VoidCallback openLink)
- A builder when rich information link metadata has been retrived.
-
MultiMetaInfoHandler
= MetaInfo Function(Map<
String, MetaInfo> metaInfos) - Handle various MetaInfo from various protocols into a single object.
-
OpenLinkConfirmation
= FutureOr<
bool> Function(BuildContext context, Uri url) -
A handler for popping up dialog to enquire user to open
url
.
Exceptions / Errors
- ContentTypeMismatchedException
-
An exception implement under
ClientException
that using invalid content type from given uri. - NonHttpUrlException
- Indicate the given Uri is not using HTTP(S) protocol.