Infrastructure low complexity mobile
1
Dependencies
0
Dependents
0
Entities
0
Integrations

Description

Infrastructure utility wrapping the Flutter share_plus plugin to export the certificate as a PDF or image via the native platform share sheet. Renders the certificate widget to a raster or vector format off-screen before passing the file to the share plugin. Handles platform differences (iOS share sheet vs Android intent chooser).

Feature: Digital Peer Mentor Certificate

certificate-export-handler

Sources & reasoning

The feature description explicitly requires a share button that invokes the platform share sheet to export as PDF or image. This export/share capability is infrastructure-level - it wraps native platform APIs (share_plus) and is distinct from the display and business logic concerns.

No source references — this artifact was included based on reasoning alone (see above).

Responsibilities

  • Render certificate widget to PDF or image off-screen
  • Invoke share_plus share sheet with exported file
  • Handle iOS and Android platform share sheet differences

Interfaces

exportAsPdf(CertificationRecord record): Future<File>
exportAsImage(CertificationRecord record): Future<File>
shareFile(File file): Future<void>

Relationships

Dependencies (1)

Components this component depends on