This commit is contained in:
Hamza-Ayed
2024-07-19 15:25:36 +03:00
parent 1fe98b698b
commit 27de944c2f
7 changed files with 71 additions and 326 deletions

View File

@@ -1410,9 +1410,22 @@ Output the extracted information in the following JSON formate and make date for
} else {}
}
List prompts = [];
getPrompt() async {
var res = await CRUD()
.get(link: AppLink.getPromptDriverDocumentsEgypt, payload: {});
if (res != 'failure') {
var d = jsonDecode(res)['message'];
prompts = d;
// print('prompts: ${prompts}');
} else {
print(res);
}
}
@override
void onInit() {
// generateContent();
getPrompt();
super.onInit();
}
}