This commit is contained in:
snehalathad@aissel.com 2024-05-20 17:32:41 +05:30
commit 7c6237593b
1 changed files with 6 additions and 1 deletions

View File

@ -225,7 +225,12 @@ class _RankingState extends State<Ranking> {
..click();
} else {
// final String path = (await getApplicationDocumentsDirectory()).path;
final directory = await getExternalStorageDirectory();
//final directory = await getExternalStorageDirectory();
Directory? directory = Platform.isAndroid
? await getExternalStorageDirectory()
: await getApplicationDocumentsDirectory();
final path = directory!.path;
print("IamPathh: $path");