Fixes #431
Fixes an issue on iOS 14, where canceling with swipe gestures, could result in cancel event not being dispatched.
This commit is contained in:
parent
b2668dbbd0
commit
a4d5478669
|
@ -1,3 +1,6 @@
|
||||||
|
## 2.0.8
|
||||||
|
Fixes an issue on iOS 14, where canceling with swipe gestures, could result in cancel event not being dispatched. ([#431](https://github.com/miguelpruivo/flutter_file_picker/issues/431)).
|
||||||
|
|
||||||
## 2.0.7
|
## 2.0.7
|
||||||
Fixes [#425](https://github.com/miguelpruivo/flutter_file_picker/issues/425) and updates iOS to use NSDocumentDirectory on iOS 12 or lower. Thanks @allanwolski.
|
Fixes [#425](https://github.com/miguelpruivo/flutter_file_picker/issues/425) and updates iOS to use NSDocumentDirectory on iOS 12 or lower. Thanks @allanwolski.
|
||||||
|
|
||||||
|
|
|
@ -126,7 +126,7 @@ class _FilePickerDemoState extends State<FilePickerDemo> {
|
||||||
child: _pickingType == FileType.custom
|
child: _pickingType == FileType.custom
|
||||||
? TextFormField(
|
? TextFormField(
|
||||||
maxLength: 15,
|
maxLength: 15,
|
||||||
autovalidate: true,
|
autovalidateMode: AutovalidateMode.always,
|
||||||
controller: _controller,
|
controller: _controller,
|
||||||
decoration:
|
decoration:
|
||||||
InputDecoration(labelText: 'File extension'),
|
InputDecoration(labelText: 'File extension'),
|
||||||
|
|
|
@ -148,7 +148,11 @@
|
||||||
|
|
||||||
PHPickerViewController *pickerViewController = [[PHPickerViewController alloc] initWithConfiguration:config];
|
PHPickerViewController *pickerViewController = [[PHPickerViewController alloc] initWithConfiguration:config];
|
||||||
pickerViewController.delegate = self;
|
pickerViewController.delegate = self;
|
||||||
[self.viewController presentViewController:pickerViewController animated:YES completion:nil];
|
[self.viewController presentViewController:pickerViewController animated:YES completion:^{
|
||||||
|
Log(@"Media picker canceled");
|
||||||
|
self->_result(nil);
|
||||||
|
self->_result = nil;
|
||||||
|
}];
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
name: file_picker
|
name: file_picker
|
||||||
description: A package that allows you to use a native file explorer to pick single or multiple absolute file paths, with extension filtering support.
|
description: A package that allows you to use a native file explorer to pick single or multiple absolute file paths, with extension filtering support.
|
||||||
homepage: https://github.com/miguelpruivo/plugins_flutter_file_picker
|
homepage: https://github.com/miguelpruivo/plugins_flutter_file_picker
|
||||||
version: 2.0.7
|
version: 2.0.8
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
flutter:
|
flutter:
|
||||||
|
|
Loading…
Reference in New Issue