mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-04 06:38:27 +08:00
Swap AndroidExternalStorage for ExtStorage
THe latter seems to be abandoned
This commit is contained in:
@ -18,8 +18,8 @@ limitations under the License.
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
|
||||
import 'package:android_external_storage/android_external_storage.dart';
|
||||
import 'package:easy_localization/easy_localization.dart';
|
||||
import 'package:ext_storage/ext_storage.dart';
|
||||
import 'package:file_picker/file_picker.dart';
|
||||
import 'package:icloud_documents_path/icloud_documents_path.dart';
|
||||
import 'package:path/path.dart' as p;
|
||||
@ -536,7 +536,7 @@ Future<String> _getExternalDir(BuildContext context) async {
|
||||
return "";
|
||||
}
|
||||
|
||||
var path = await ExtStorage.getExternalStorageDirectory();
|
||||
var path = await AndroidExternalStorage.getExternalStorageDirectory();
|
||||
if (path != null) {
|
||||
if (await _isDirWritable(path)) {
|
||||
return path;
|
||||
|
16
pubspec.lock
16
pubspec.lock
@ -22,6 +22,13 @@ packages:
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.6.0"
|
||||
android_external_storage:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: android_external_storage
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.1.0"
|
||||
another_flushbar:
|
||||
dependency: transitive
|
||||
description:
|
||||
@ -423,15 +430,6 @@ packages:
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "2.0.3"
|
||||
ext_storage:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
path: "."
|
||||
ref: HEAD
|
||||
resolved-ref: "98faf095ed6786a0bb0db26cb2f3966513f3f7aa"
|
||||
url: "https://github.com/GitJournal/ext_storage.git"
|
||||
source: git
|
||||
version: "1.0.3"
|
||||
fake_async:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -33,8 +33,6 @@ dependencies:
|
||||
easy_localization_loader: ^1.0.0
|
||||
email_validator: ^2.0.1
|
||||
equatable: ^2.0.0
|
||||
ext_storage:
|
||||
git: https://github.com/GitJournal/ext_storage.git
|
||||
file_picker: ^4.0.2
|
||||
filesystem_picker: ^2.0.0-nullsafety.0 # for directories
|
||||
fimber: ^0.6.1
|
||||
@ -93,6 +91,7 @@ dependencies:
|
||||
git:
|
||||
url: https://github.com/NearHuscarl/flutter_login.git
|
||||
ref: develop
|
||||
android_external_storage: ^0.1.0
|
||||
|
||||
dev_dependencies:
|
||||
#flutter_driver:
|
||||
|
Reference in New Issue
Block a user