File Storage path for ios
This commit is contained in:
parent
a273ac31f5
commit
8b459b1170
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in New Issue