Share Plus Adapter
Component Detail
Infrastructure
low complexity
Shared Component
mobile
0
Dependencies
2
Dependents
0
Entities
0
Integrations
Description
Thin adapter wrapping Flutter's share_plus package to provide a testable, mockable interface for triggering the native platform share sheet. Used by both the Annual Summary and Share Profile features to invoke OS-level sharing with file attachments or plain text.
share-plus-adapter
Responsibilities
- Wrap share_plus SharePlus.instance.shareXFiles() for file sharing
- Wrap share_plus SharePlus.instance.share() for text/link sharing
- Provide injectable interface for unit test mocking
- Handle platform-specific share sheet availability checks
Interfaces
shareFile(XFile file, {String? subject})
shareText(String text, {String? subject})
shareLink(Uri uri, {String? subject})
isShareAvailable()
Relationships
Dependents (2)
Components that depend on this component