We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3718530 + f5d69c3 commit 58cbc62Copy full SHA for 58cbc62
lib/helper/path.dart
@@ -38,11 +38,12 @@ class PathHelper {
38
}
39
40
String get getHomePath {
41
- Map<String, String> envVars = Platform.environment;
42
if (PlatformTool.isMacOS() || PlatformTool.isLinux()) {
43
- return '${envVars['HOME'] ?? ''}/.aidea'.replaceAll('\\', '/');
+ return '${Platform.environment['HOME'] ?? ''}/.aidea'
+ .replaceAll('\\', '/');
44
} else if (PlatformTool.isWindows()) {
45
- return '${envVars['UserProfile'] ?? ''}/.aidea'.replaceAll('\\', '/');
+ return '${Platform.environment['UserProfile'] ?? ''}/.aidea'
46
47
} else if (PlatformTool.isAndroid() || PlatformTool.isIOS()) {
48
return '$documentsPath/.aidea'.replaceAll('\\', '/');
49
0 commit comments