oghref_material library
Material theme library for implementing widgets for rich information link.
Classes
- AudioInfo
- Specify audio metadata in rich informations.
- DotPageIndication
- One of the ImageCarouselPageIndication preference which display pages indication as dot view.
- DotPageIndicationStyle
-
Style preference for DotPageIndication which applied from
PageViewDotIndicator
. - ImageCarousel
- Reviewing multiple images provided from oghref.ImageInfo and display all images in a single carousel Widget.
-
ImageCarouselPageIndication<
T extends ImageCarouselPageIndicationStyle> - An enumerable class for specifying preference of indicator in ImageCarousel.
- ImageCarouselPageIndicationStyle
- Specify styles apperences for specific ImageCarouselPageIndication.
- ImageCarouselPreferences
- Define preferences for visualizing ImageCarousel.
- ImageInfo
- Display thumbnail of website with given image.
- MediaPlaybackPreference
-
Cofigure preference for
MediaPlayback
. - 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.
- OgHrefMaterialBinding
- An binding class for initalizing compoents before implementations.
- OgHrefMaterialCard
- Rich information link preview under Card implementation.
- OgHrefMaterialCardStyle
- An OgHrefMaterialCard style preference related to Card which related to Colors and ShapeBorder.
- OgHrefMaterialTile
- Create ListTile based widget for displaying rich information link.
- OgHrefMaterialTileStyle
- Define style prefences for rendering OgHrefMaterialTile.
- OpenGraphPropertyParser
-
Open Graph Protocol implementations of
MetaPropertyParser
. - TextPageIndication
- One of the ImageCarouselPageIndication preference which display pages indication as dot view.
- TextPageIndicationStyle
-
Style preference for TextPageIndication which applied from
PageViewDotIndicator
. - TwitterCardPropertyParser
-
Twitter card implementations of
MetaPropertyParser
. - VideoInfo
- Define metadata information for playing video in preview.
Enums
- MetaMergePreference
- A preference for operationg MetaInfo.merge.
Typedefs
-
BeforeOpenLinkConfirmation
= FutureOr<
bool> Function(BuildContext context, Uri targetUrl) -
Declare confirmation before opening
targetUrl
. - 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.