Impact Card Renderer
Component Detail
Infrastructure
medium complexity
mobile
0
Dependencies
2
Dependents
0
Entities
0
Integrations
Description
Infrastructure utility that captures a Flutter widget subtree as a bitmap (PNG) or renders it into a PDF page. Uses Flutter's RepaintBoundary and dart:ui image capture pipeline for PNG and pdf package for PDF generation.
impact-card-renderer
Responsibilities
- Capture widget tree to PNG via RepaintBoundary
- Render impact summary layout to PDF page
- Write output to device temp directory
- Handle rendering errors and fallback messaging
Interfaces
captureWidgetAsPng(widgetKey)
renderToPdf(impactData, template)
saveToTempFile(bytes, filename)
getTempFilePath(filename)
Relationships
Dependents (2)
Components that depend on this component