|
|
|
@ -14,11 +14,12 @@ import 'package:doctor_app_flutter/utils/exception_report.dart';
|
|
|
|
import 'package:doctor_app_flutter/utils/utils.dart';
|
|
|
|
import 'package:doctor_app_flutter/utils/utils.dart';
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:http/http.dart' as http;
|
|
|
|
import 'package:http/http.dart' as http;
|
|
|
|
|
|
|
|
import 'package:logger/logger.dart';
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
|
|
|
|
|
|
|
|
import '../locator.dart';
|
|
|
|
import '../locator.dart';
|
|
|
|
import '../routes.dart';
|
|
|
|
import '../routes.dart';
|
|
|
|
|
|
|
|
import 'dart:developer';
|
|
|
|
DrAppSharedPreferances sharedPref = new DrAppSharedPreferances();
|
|
|
|
DrAppSharedPreferances sharedPref = new DrAppSharedPreferances();
|
|
|
|
Utils helpers = new Utils();
|
|
|
|
Utils helpers = new Utils();
|
|
|
|
|
|
|
|
|
|
|
|
@ -132,8 +133,19 @@ class BaseAppClient {
|
|
|
|
|
|
|
|
|
|
|
|
// print("ProjectID :");
|
|
|
|
// print("ProjectID :");
|
|
|
|
// print(body['ProjectID']);
|
|
|
|
// print(body['ProjectID']);
|
|
|
|
debugPrint("URL : $url");
|
|
|
|
Logger logger = Logger(
|
|
|
|
debugPrint("Body : ${json.encode(body)}");
|
|
|
|
printer: PrettyPrinter(
|
|
|
|
|
|
|
|
methodCount: 2,
|
|
|
|
|
|
|
|
errorMethodCount: 5,
|
|
|
|
|
|
|
|
lineLength: 1000,
|
|
|
|
|
|
|
|
colors: true,
|
|
|
|
|
|
|
|
printEmojis: true,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
log("URL : $url");
|
|
|
|
|
|
|
|
logger.d("URL : $url");
|
|
|
|
|
|
|
|
log("Body : ${json.encode(body)}");
|
|
|
|
|
|
|
|
logger.d("Body : ${json.encode(body)}");
|
|
|
|
var asd = json.encode(body);
|
|
|
|
var asd = json.encode(body);
|
|
|
|
var asd2;
|
|
|
|
var asd2;
|
|
|
|
if (await Utils.checkConnection()) {
|
|
|
|
if (await Utils.checkConnection()) {
|
|
|
|
|