Image picker scanned to null flutter


File _image;
final picker = ImagePicker();

Future getImage() async {
  final pickedFile = await picker.getImage(source:;

  setState(() {
    if (pickedFile != null) {
      _image = File(pickedFile.path);
    } else {
      print('No image selected.');


D/MediaScannerConnection(16161): Scanned /storage/emulated/0/Android/data/com.xxxx.xxxx/files/Pictures/9d9ed6a1-292c-428a-bf24-38ea1a58742c6940060118053310767.jpg to null


so after digging deep and researching, i found out that this is not an error.

Answered By – Aniekan-abasi Akpakpan

Answer Checked By – Candace Johnson (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *