Skip to content

An open-source cross-platform alternative to AirDrop

release: 1.8.0+27

Tien Do Nam7c43eb806258
diff --git a/assets/CHANGELOG.md b/assets/CHANGELOG.md
index ae865bb5..c34b59de 100644
--- a/assets/CHANGELOG.md
+++ b/assets/CHANGELOG.md
@@ -1,4 +1,4 @@
-## 1.8.0 (2023-)
+## 1.8.0 (2023-03-05)
- feat: add send modes (single recipient, multiple recipients)
- feat: selection gets cleared after finish by default (part of send modes feature)
@@ -11,13 +11,14 @@
- feat(ex. iOS): pressing destination directory in progress page will open the directory
- feat(android): share apk and install apk
- feat(android): Android TV support
+- feat(android): show loading indicator when picking (large) files
- feat(windows): left click on tray icon opens app
- feat(linux): add Control+Q shortcut to exit app
- fix: handshake error in unencrypted mode
- fix: also scan multicast when pressing on a subnet sync button
- fix(android): missing app icon on Android 7
- fix(android,ios): show error message when saving to gallery failed
-- i18n: add uk
+- i18n: add bn, nl, uk
## 1.7.0 (2023-02-11)
diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist
index fd9af634..a655663a 100644
--- a/ios/Runner/Info.plist
+++ b/ios/Runner/Info.plist
@@ -64,7 +64,7 @@
<string>ne</string>
<string>nl</string>
<string>pl</string>
- <string>pt-BR</string>
+ <string>pt-BR</string>
<string>ru</string>
<string>sv</string>
<string>tr</string>
diff --git a/lib/util/file_picker.dart b/lib/util/file_picker.dart
index 0a3e9be3..6e1a1291 100644
--- a/lib/util/file_picker.dart
+++ b/lib/util/file_picker.dart
@@ -40,6 +40,7 @@ enum FilePickerOption {
}) async {
switch (this) {
case FilePickerOption.file:
+ ref.read(pickingStatusProvider.notifier).state = true;
if (checkPlatform([TargetPlatform.android])) {
// On android, the files are copied to the cache which takes some time.
showDialog(
@@ -48,18 +49,14 @@ enum FilePickerOption {
builder: (_) => const LoadingDialog(),
);
}
- final result = await FilePicker.platform.pickFiles(
- allowMultiple: true,
- onFileLoading: (progress) {
- ref.read(pickingStatusProvider.notifier).state = progress == FilePickerStatus.picking;
- },
- );
+ final result = await FilePicker.platform.pickFiles(allowMultiple: true);
if (result != null) {
ref.read(selectedSendingFilesProvider.notifier).addFiles(
files: result.files,
converter: CrossFileConverters.convertPlatformFile,
);
}
+ ref.read(pickingStatusProvider.notifier).state = false;
break;
case FilePickerOption.media:
final List<AssetEntity>? result = await AssetPicker.pickAssets(
diff --git a/pubspec.yaml b/pubspec.yaml
index 5e2f2d73..ba5a2f01 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -3,7 +3,7 @@ description: An open source cross-platform alternative to AirDrop
publish_to: "none"
-version: 1.7.0+26
+version: 1.8.0+27
environment:
flutter: '>=3.7.6'