share_plus Flutter Package (iOS UIActivityViewController / Android Intent.ACTION_SEND)
Third Party Library Integration by FlutterCommunity (open source)
Description
share_plus wraps the native iOS UIActivityViewController and Android Intent.ACTION_SEND to present the OS-native share sheet, enabling peer mentors to share their Wrapped annual summary, referral QR codes, and benefit calculator results with external contacts via any app available on their device. This provides the social sharing functionality inspired by Spotify Wrapped that NHF and HLF requested.
Detailed Analysis
share_plus delivers the social sharing functionality that NHF and HLF specifically requested — the Spotify Wrapped-inspired annual summary share feature — giving peer mentors a compelling, emotionally resonant way to showcase their impact and recruit new members through their existing social networks. By wrapping the native iOS UIActivityViewController and Android Intent.ACTION_SEND, the integration presents users with every sharing app already on their device, maximising reach without requiring the organisation to build integrations with individual social platforms. The package is free (BSD licence) with no per-share costs, making it economically scalable regardless of engagement volume. Privacy is protected by design: shared Wrapped summaries contain only aggregated statistics and achievement badges — no contact data or sensitive PII — ensuring GDPR compliance in shareable content.
This feature directly supports membership growth and brand awareness objectives.
share_plus (>=7.0.0) requires the screenshot package for Wrapped image capture (522-screenshot-capture-utility) and has no platform permission requirements beyond those already granted for other features. Five components use this integration: 571-share-sheet-bridge, 517-summary-share-service, 513-summary-share-overlay, 577-benefit-share-service, and 522-screenshot-capture-utility. The key delivery dependency is the Wrapped summary generation pipeline — share functionality is meaningless without a fully rendered shareable asset. iPad-specific positioning (anchor rect for popover) must be tested on tablet form factors to avoid UI regression.
Content review is a required pre-launch step to confirm that no PII leaks into shareable Wrapped content; this should be a formal QA checklist item. The screenshot capture failure fallback (manual save prompt) must be implemented. Share rate and referral QR share rate are post-launch product metrics that should be instrumented from day one to measure the social sharing feature's effectiveness for stakeholder reporting.
share_plus (^7.0.0) invokes UIActivityViewController on iOS and Intent.ACTION_SEND on Android via a unified Dart API. No platform permissions are required beyond those already configured for camera and storage features. Share invocation accepts subject string, text body, and optional file paths (XFile list) with MIME type hints — the 517-summary-share-service constructs these payloads for Wrapped summaries, the 577-benefit-share-service for benefit calculator results, and the 571-share-sheet-bridge as the common abstraction. Screenshot capture (522-screenshot-capture-utility using the screenshot package) generates the Wrapped image as a PNG XFile before passing it to share_plus.
Share sheet dismissal without sharing is a no-op — no error state required. Screenshot capture failure triggers a manual save prompt as fallback. iPad requires an anchor Rect for popover positioning; this must be passed from the calling widget's RenderBox. Content security: Wrapped share payloads must be reviewed at build time to confirm only aggregated stats and badges are included.
Performance target is < 1s for share sheet presentation after screenshot capture completes.
Using Components (5)
Dependencies (2)
Authentication
| Type | None |
Configuration
Error Handling
Monitoring
Performance
| Latency | < 1s for share sheet presentation |
| Availability | Device-local — no network dependency for share sheet presentation |
Cost Implications
| Pricing Model | Free open-source (BSD licence) |