Skip to content

Commit 2b4e2d0

Browse files
committed
Set "include_assets_map" based on --[no-]include-assets when calling the API
1 parent a7a21d8 commit 2b4e2d0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/src/flutterflow_api_client.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ Future<String?> exportCode({
7171
projectId: projectId,
7272
branchName: branchName,
7373
exportAsModule: exportAsModule,
74+
includeAssets: includeAssets,
7475
);
7576
// Download actual code
7677
final projectZipBytes = base64Decode(result['project_zip']);
@@ -141,6 +142,7 @@ Future<dynamic> _callExport({
141142
required String projectId,
142143
String? branchName,
143144
required bool exportAsModule,
145+
required bool includeAssets,
144146
}) async {
145147
final body = jsonEncode({
146148
'project': {
@@ -149,6 +151,7 @@ Future<dynamic> _callExport({
149151
'token': token,
150152
if (branchName != null) 'branch_name': branchName,
151153
'export_as_module': exportAsModule,
154+
'include_assets_map': includeAssets,
152155
});
153156
final response = await client.post(
154157
Uri.https(endpoint.host, '${endpoint.path}/exportCode'),

0 commit comments

Comments
 (0)