7/19/2
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user