Camera with image picker
Whatsapp like UI
Camera with image picker works on android, ios and Web.
- Multiple image selection.
- optional single image selection.
- camera switching
- flash light
Usage
Navigate to the camerApp page and after selecting image or taking photo from camera will return the selected list of files
For Multiple image selection
List<File> data = await Navigator.of(context).push(MaterialPageRoute<List<File>>(
builder:(BuildContext context)=> const CameraApp(
//multiple image selection flag
isMultiple :true
),),);
For Single image selection
data0
will contain the file.
List<File> data = await Navigator.of(context).push(MaterialPageRoute<List<File>>(
builder:(BuildContext context)=> const CameraApp(
//multiple image selection flag
isMultiple :false
),),);