Share Adapter
Component Detail
Infrastructure
medium complexity
mobile
0
Dependencies
1
Dependents
0
Entities
0
Integrations
Description
Platform adapter wrapping Flutter's share_plus package for sharing annual summary content. Handles image rendering to a shareable format, platform-specific share sheet invocation, and deep link generation for summary viewing by recipients.
share-adapter
Responsibilities
- Invoke platform share sheet with image or link content
- Render widget tree to shareable PNG image
- Generate deep links for summary content
- Track share completion and target platform
Interfaces
shareImage(imageBytes, text)
shareLink(url, text)
renderWidgetToImage(widget)
generateDeepLink(summaryId, year)
isShareAvailable()