method not available: ext.flutter.inspector.setPubRootDirectories

Viewed 401

I am getting the error below when I try to download a file using flutter_downloader. My Google searches seem to indicate that this is a problem with Firebase. I have firebase_messaging installed but the issue only comes up when I try to downlaod a file using flutter_downloader.

Error handling 'serviceExtension' custom request: method not available: ext.flutter.inspector.setPubRootDirectories

Please assist.

Herewith the Flutter code snippet for the downloader;

IconButton(
                  icon: Icon(Icons.download),
                  onPressed: () async {
                    final status = await Permission.storage.request();

                    if (status.isGranted) {
                      final externalDir = await getExternalStorageDirectory();

                      final id = await FlutterDownloader.enqueue(
                        url: files[i].file,
                        fileName: 'filename',
                        savedDir: externalDir.path,
                        showNotification: true,
                        openFileFromNotification: true,
                      );
                    } else {
                      print('Permission denied');
                    }
                  },
                ),
0 Answers
Related