File Storage path for ios

This commit is contained in:
poojakhatawate 2024-05-20 17:16:56 +05:30
parent a273ac31f5
commit 8b459b1170
1 changed files with 6 additions and 1 deletions

View File

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