Hi@akhtar,
You need to install the plugin to do this task. By default, flutter doesn't have the capability to connect to the camera. You can install the image_picker plugin to your Flutter Framework. Now you can use the below code of block in your program.
camera() async {
var picker = ImagePicker();
var image = await picker.getImage(source: ImageSource.camera);
}
To know more about Flutter, join our Flutter Course today.