Overview
The opengraph package provides seamless OpenGraph integration in Flutter apps, enabling metadata extraction from URLs and rendering polished link previews. It supports OpenGraph, Twitter Cards, HTML meta tags, and JSON-LD formats, making it ideal for sharing content across social platforms. The package includes the OpengraphPreview widget for visually appealing previews and a fetcher utility to retrieve structured data efficiently. Designed for cross-platform use, it works on Android, iOS, macOS, Windows, and Linux.
Use cases
- Social media sharing
- Link preview generation
- Content discovery
- Metadata extraction from URLs
- Rich card display
Key features
- Supports multiple metadata formats
- Built-in preview widget
- Cross-platform compatibility
- Efficient URL metadata fetching
- Responsive and customizable UI
Suitable for
- Apps with shared links
- Chat or messaging interfaces
- News or content aggregation apps
- Social networking features
- Web content integrations
Considerations
- Requires network access for metadata fetching
- May need caching for performance
- Depends on external URL content validity
- Limited to publicly accessible web pages
- Potential delays with slow remote responses