diff --git a/lib/ui_screen/ranking.dart b/lib/ui_screen/ranking.dart index 1c9d5ff..9ac4e44 100644 --- a/lib/ui_screen/ranking.dart +++ b/lib/ui_screen/ranking.dart @@ -225,7 +225,12 @@ class _RankingState extends State { ..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");