Skip to content

Commit 9d8b188

Browse files
committed
use pathSeparator
1 parent 02d9710 commit 9d8b188

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/flutterflow_api_client.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ Future<String?> exportCode({
111111
}
112112

113113
var fileName = projectFolder.first.name;
114-
folderName = fileName.substring(0, fileName.indexOf('/'));
114+
folderName = fileName.substring(0, fileName.indexOf(Platform.pathSeparator));
115115

116116
final postCodeGenerationFutures = <Future>[
117117
if (fix)

0 commit comments

Comments
 (0)