Native Share Service
Component Detail
Infrastructure
low complexity
Shared Component
mobile
0
Dependencies
1
Dependents
0
Entities
0
Integrations
Description
Thin wrapper around the share_plus Flutter package that invokes the device native share sheet with a text or URL payload. Used by both the Invite Share Screen and the Share Profile feature, making it a genuine shared infrastructure component across those two features.
native-share-service
Responsibilities
- Invoke native share sheet with a text or URL payload
- Handle share result callbacks including success, dismissal, and error
- Provide a platform-agnostic interface over the share_plus package
Interfaces
shareText(text: String, subject: String?): Future<ShareResult>
shareUrl(url: String, subject: String?): Future<ShareResult>