camera flutter take picture code example
Example: flutter capture image from camera
import 'package:image_picker/image_picker.dart';
final _imagePicker = ImagePicker();
var _pickedFile = await _imagePicker.getImage(source: ImageSource.camera);
File _imageFilePicked = File(_pickedFile.path);