syonip / flutter_fbstorage_video_upload

MIT License
34 stars 30 forks source link

Can you please help me fix these errors? may be its because of versions of flutter #13

Open marc-walton opened 2 years ago

marc-walton commented 2 years ago

Error 1 A value of type 'MediaInformation' can't be returned from the method 'getMediaInformation' because it has a return type of 'Future<Map<dynamic, dynamic>>'.

 static Future<Map<dynamic, dynamic>> getMediaInformation( path) async {
    assert(File(path).existsSync());
///error at  _probe.getMediaInformation(path);

    return await _probe.getMediaInformation(path);
  }

Error 2 The argument type 'void Function(int, String)' can't be assigned to the parameter type 'void Function(Log)'.

  static void enableLogCallback(
      void Function(int level, String message) logCallback) {
///error at  enableLogCallback(logCallback);
    _config.enableLogCallback(logCallback);
  }