User Interface medium complexity mobile
0
Dependencies
0
Dependents
0
Entities
0
Integrations

Description

Reusable widget that integrates with the device camera and photo library via the `image_picker` Flutter package. Presents a bottom sheet action menu allowing the user to choose between taking a new photo or selecting an existing image, then returns the selected file for processing.

Feature: Receipt Upload & Management

camera-capture-widget

Responsibilities

  • Present camera vs. gallery selection action sheet
  • Invoke image_picker for camera capture or gallery selection
  • Apply client-side compression via flutter_image_compress before returning image
  • Handle permission denials with user-friendly guidance

Interfaces

pickImage(source: camera | gallery)
onImageSelected(file)
onPermissionDenied()
onCancelled()
setMaxDimensions(width, height)
setCompressionQuality(quality)