import 'package:image_picker/image_picker.dart'; final _imagePicker = ImagePicker(); var _pickedFile = await _imagePicker.getImage(source: ImageSource.camera); File _imageFilePicked = File(_pickedFile.path);