7/19/2
This commit is contained in:
@@ -27,7 +27,8 @@ class CRUD {
|
||||
'Basic ${base64Encode(utf8.encode(AK.basicAuthCredentials.toString()))}',
|
||||
},
|
||||
);
|
||||
print(response);
|
||||
print(response.request);
|
||||
print(response.body);
|
||||
// if (response.statusCode == 200) {
|
||||
var jsonData = jsonDecode(response.body);
|
||||
if (jsonData['status'] == 'success') {
|
||||
|
||||
@@ -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