File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import 'dart:convert';
22import 'dart:io' ;
33
44import 'package:dio/dio.dart' ;
5- import 'package:ext_storage/ext_storage .dart' ;
5+ import 'package:external_path/external_path .dart' ;
66import 'package:flutter/material.dart' ;
77import 'package:flutter_local_notifications/flutter_local_notifications.dart' ;
88import 'package:path_provider/path_provider.dart' ;
@@ -84,7 +84,7 @@ Future<bool> _requestPermissions() async {
8484}
8585Future <String > _getDownloadPath () async {
8686 if (Platform .isAndroid) {
87- return ExtStorage .getExternalStoragePublicDirectory (ExtStorage .DIRECTORY_PICTURES );
87+ return ExternalPath .getExternalStoragePublicDirectory (ExternalPath .DIRECTORY_PICTURES );
8888 }
8989 return (await getApplicationDocumentsDirectory ()).path;
9090}
Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ dependencies:
2929 url : https://github.com/canewsin/flutter_absolute_path.git
3030 path_provider : ^2.0.7
3131 permission_handler : ^8.3.0
32- ext_storage : ^1.0.3 # Deprecated
3332 external_path : ^1.0.1
3433 flutter_local_notifications : ^9.1.2
3534
You can’t perform that action at this time.
0 commit comments