Receipt Camera Widget
Component Detail
User Interface
medium complexity
mobile
2
Dependencies
0
Dependents
2
Entities
0
Integrations
Description
Provides in-app camera capture and gallery selection for receipt images. Uses Flutter image_picker to let peer mentors photograph receipts immediately after incurring a cost or select existing images from the device gallery. Displays image preview with crop/rotate controls and enforces file type restrictions (JPEG, PNG, PDF).
receipt-camera-widget
Responsibilities
- Launch device camera for receipt capture
- Open gallery picker for existing images
- Display image preview with basic editing controls
- Show file type and size validation feedback
- Indicate upload progress and receipt attachment status
Interfaces
openCamera()
openGalleryPicker()
previewImage(imageData)
rotateImage(degrees)
cropImage(rect)
removeAttachment(receiptId)
getAttachedReceipts()
showUploadProgress(percent)
showValidationError(message)
Relationships
Dependencies (2)
Components this component depends on
Related Data Entities (2)
Data entities managed by this component