|
|
|
|
@ -125,10 +125,10 @@ class DemoProvider extends ChangeNotifier {
|
|
|
|
|
|
|
|
|
|
Future<bool> addDemoTrialOutcome(Map<String, dynamic> body) async {
|
|
|
|
|
try {
|
|
|
|
|
Response response = await ApiManager.instance.post(URLs.addDemoTrialOutcome, body: body, showToast: false);
|
|
|
|
|
Response response = await ApiManager.instance.post(URLs.addDemoTrialOutcome, body: body);
|
|
|
|
|
if (response.statusCode >= 200 && response.statusCode < 300) {
|
|
|
|
|
String message = (jsonDecode(response.body)["message"] ?? "");
|
|
|
|
|
Fluttertoast.showToast(msg: message ?? "", toastLength: Toast.LENGTH_LONG);
|
|
|
|
|
// String message = (jsonDecode(response.body)["message"] ?? "");
|
|
|
|
|
// Fluttertoast.showToast(msg: message ?? "", toastLength: Toast.LENGTH_LONG);
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
|