Skip to content

Upgrading file_picker 2 to 3

Unknown2.1.7 → 3.0.4

Fetching 12 releases from GitHub…0 / 12
UnknownUpgrade verdict

DepDelta is still reading the notes for this range, so breaking changes can't be ruled out yet.

  • DepDelta is still reading the release notes in this range, so it can't rule out breaking changes yet.
  • This page updates as the notes come in.
Still reading release notes

DepDelta is still reading the release notes in this range. This updates as they come in.

Dart SDK requirement changed in 3.0.0-nullsafety.4: >=2.0.0 <3.0.0 → >=2.12.0 <3.0.0.

Flutter requirement changed in 3.0.0: >=1.10.0 <2.0.0 → >=1.10.0.

Generated by DepDelta from published Dart source. Not mixed with prose notes.

  • added: class FilePickerWeb extends FilePicker
  • added: method FilePickerWeb.pickFiles({ FileType type = …, List<String>? allowedExtensions, bool allowMultiple = …, Function(FilePickerStatus)? onFileLoading, bool? allowCompression, bool? withData = …, bool? withReadStream = …, }): Future<FilePickerResult?>
  • added: static field FilePickerWeb.platform: final FilePickerWeb
  • added: static method FilePickerWeb.registerWith(Registrar registrar): void
  • changed: ctor PlatformFile({ this.path, this.name, this.bytes, this.readStream, this.size, }) → ctor PlatformFile({ required this.name, required this.size, this.path, this.bytes, this.readStream, })
  • changed: field PlatformFile.bytes: final Uint8List → field PlatformFile.bytes: final Uint8List?
  • changed: field PlatformFile.path: final String → field PlatformFile.path: final String?
  • changed: field PlatformFile.readStream: final Stream<List<int>> → field PlatformFile.readStream: final Stream<List<int>>?
  • changed: get FilePickerResult.names: List<String> → get FilePickerResult.names: List<String?>
  • changed: get FilePickerResult.paths: List<String> → get FilePickerResult.paths: List<String?>
  • changed: get PlatformFile.extension: String → get PlatformFile.extension: String?
  • changed: method FilePicker.clearTemporaryFiles(): Future<bool> → method FilePicker.clearTemporaryFiles(): Future<bool?>
  • changed: method FilePicker.getDirectoryPath(): Future<String> → method FilePicker.getDirectoryPath(): Future<String?>
  • changed: method FilePicker.pickFiles({ FileType type = …, List<String> allowedExtensions, Function(FilePickerStatus) onFileLoading, bool allowCompression, bool allowMultiple = …, bool withData, bool withReadStream, }): Future<FilePickerResult> → method FilePicker.pickFiles({ FileType type = …, List<String>? allowedExtensions, Function(FilePickerStatus)? onFileLoading, bool allowCompression = …, bool allowMultiple = …, bool withData = …, bool withReadStream = …, }): Future<FilePickerResult?>