Receipt Camera Widget
Component Detail
User Interface
medium complexity
mobile
2
Dependencies
1
Dependents
1
Entities
0
Integrations
Description
Flutter widget that invokes the device camera or photo library via image_picker. Displays a capture button with descriptive WCAG-compliant labels, shows inline thumbnails for each attached receipt, and provides a removal control per thumbnail. Supports multiple receipts per expense.
receipt-camera-widget
Responsibilities
- Trigger camera or gallery picker via image_picker package
- Render inline thumbnail grid for captured/selected images
- Provide per-thumbnail delete affordance before submission
- Deliver accessibility labels and confirmation feedback on upload success
Interfaces
captureFromCamera() -> File
selectFromGallery() -> File
showThumbnails(receipts: List<ReceiptAttachment>)
removeReceipt(receiptId: String)
onUploadConfirmed(callback)
Relationships
Dependencies (2)
Components this component depends on