logger applied and the api calls and the discharge summary handled.

ipd-changes-for-vida-plus
parent 6c350960fd
commit 176bb33795

@ -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()) {

@ -135,18 +135,18 @@ class PatientSickLeaveScreen extends StatelessWidget {
), ),
Row( Row(
children: [ children: [
ClipRRect( // ClipRRect(
borderRadius: BorderRadius.circular(50.0), // borderRadius: BorderRadius.circular(50.0),
child: CachedNetworkImage( // child: CachedNetworkImage(
imageUrl: item.doctorImageURL ?? "https://hmgwebservices.com/Images/MobileImages/DUBAI/unkown.png", // imageUrl: item.doctorImageURL ?? "https://hmgwebservices.com/Images/MobileImages/DUBAI/unkown.png",
height: 30, // height: 30,
width: 30, // width: 30,
errorWidget: (context, url, error) => AppText( // errorWidget: (context, url, error) => AppText(
'No Image', // 'No Image',
fontSize: 10, // fontSize: 10,
), // ),
), // ),
), // ),
SizedBox( SizedBox(
width: 10, width: 10,
), ),

@ -163,60 +163,66 @@ class _DischargeSummaryWidgetState extends State<DischargeSummaryWidget> {
SizedBox( SizedBox(
height: 5.0, height: 5.0,
), ),
Container( Visibility(
width: MediaQuery.of(context).size.width * 0.5, visible: Utils.parseHtmlString(widget.dischargeSummary.conditionOnDischarge ?? "").isNotEmpty,
child: RichText( child: Container(
maxLines: 3, width: MediaQuery.of(context).size.width * 0.5,
overflow: TextOverflow.ellipsis, child: RichText(
text: new TextSpan( maxLines: 3,
style: new TextStyle(fontSize: 1.3 * SizeConfig.textMultiplier!, color: Color(0xFF575757)), overflow: TextOverflow.ellipsis,
children: <TextSpan>[ text: new TextSpan(
new TextSpan( style: new TextStyle(fontSize: 1.3 * SizeConfig.textMultiplier!, color: Color(0xFF575757)),
text: TranslationBase.of(context).condition + ": ", children: <TextSpan>[
style: TextStyle( new TextSpan(
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 2.8, text: TranslationBase.of(context).condition + ": ",
color: Color(0xFF575757), style: TextStyle(
//TranslationBase.of(context).doctorResponse + " : ", fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 2.8,
)), color: Color(0xFF575757),
new TextSpan( //TranslationBase.of(context).doctorResponse + " : ",
text: Utils.parseHtmlString(widget.dischargeSummary.conditionOnDischarge!), )),
style: TextStyle( new TextSpan(
fontFamily: 'Poppins', text: Utils.parseHtmlString(widget.dischargeSummary.conditionOnDischarge!),
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 3, style: TextStyle(
color: Color(0xFF2E303A), fontFamily: 'Poppins',
fontWeight: FontWeight.w700, fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 3,
)), color: Color(0xFF2E303A),
], fontWeight: FontWeight.w700,
)),
],
),
), ),
), ),
), ),
SizedBox( SizedBox(
height: 5.0, height: 5.0,
), ),
Container( Visibility(
width: MediaQuery.of(context).size.width * 0.5, visible: Utils.parseHtmlString(widget.dischargeSummary.planedProcedure ?? "").isNotEmpty,
child: RichText( child: Container(
maxLines: 3, width: MediaQuery.of(context).size.width * 0.5,
overflow: TextOverflow.ellipsis, child: RichText(
text: new TextSpan( maxLines: 3,
style: new TextStyle(fontSize: 1.3 * SizeConfig.textMultiplier!, color: Color(0xFF575757)), overflow: TextOverflow.ellipsis,
children: <TextSpan>[ text: new TextSpan(
new TextSpan( style: new TextStyle(fontSize: 1.3 * SizeConfig.textMultiplier!, color: Color(0xFF575757)),
text: TranslationBase.of(context).planedProcedure + ": ", children: <TextSpan>[
style: TextStyle( new TextSpan(
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 2.8, text: TranslationBase.of(context).planedProcedure + ": ",
color: Color(0xFF575757), style: TextStyle(
//TranslationBase.of(context).doctorResponse + " : ", fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 2.8,
)), color: Color(0xFF575757),
new TextSpan( //TranslationBase.of(context).doctorResponse + " : ",
text: Utils.parseHtmlString(widget.dischargeSummary.planedProcedure!), )),
style: TextStyle( new TextSpan(
fontFamily: 'Poppins', text: Utils.parseHtmlString(widget.dischargeSummary.planedProcedure!),
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 3, style: TextStyle(
color: Color(0xFF2E303A), fontFamily: 'Poppins',
fontWeight: FontWeight.w700, fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 3,
)), color: Color(0xFF2E303A),
], fontWeight: FontWeight.w700,
)),
],
),
), ),
), ),
), ),

@ -1029,6 +1029,14 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "2.1.1" version: "2.1.1"
logger:
dependency: "direct main"
description:
name: logger
sha256: a7967e31b703831a893bbc3c3dd11db08126fe5f369b5c648a36f821979f5be3
url: "https://pub.dev"
source: hosted
version: "2.6.2"
logging: logging:
dependency: transitive dependency: transitive
description: description:

@ -139,7 +139,7 @@ dependencies:
dart_jsonwebtoken: ^2.14.0 dart_jsonwebtoken: ^2.14.0
two_dimensional_scrollables: ^0.3.3 two_dimensional_scrollables: ^0.3.3
timezone: ^0.10.1 timezone: ^0.10.1
logger: ^2.6.1
dependency_overrides: dependency_overrides:
flutter_localizations: flutter_localizations:

Loading…
Cancel
Save