From b78f8f76dbf34acfdb1a2a51d73d60b84ce84c57 Mon Sep 17 00:00:00 2001 From: Sikander Saleem Date: Tue, 31 Aug 2021 11:23:15 +0300 Subject: [PATCH] improvement. --- .../BookAppointment/DentalComplaints.dart | 67 ++++++++++++++++++- 1 file changed, 66 insertions(+), 1 deletion(-) diff --git a/lib/pages/BookAppointment/DentalComplaints.dart b/lib/pages/BookAppointment/DentalComplaints.dart index ae310faf..30aa32c8 100644 --- a/lib/pages/BookAppointment/DentalComplaints.dart +++ b/lib/pages/BookAppointment/DentalComplaints.dart @@ -107,7 +107,6 @@ class _DentalComplaintsState extends State { ), ), ); - return tableRow; } getLanguageID() async { @@ -138,6 +137,72 @@ class _DentalComplaintsState extends State { }); } + List getProceduresData() { + List tableRow = []; + + tableRow.add( + TableRow( + children: [ + Container( + child: Container( + child: Center( + child: Text(TranslationBase.of(context).procedureName, style: TextStyle(color: Colors.black, fontWeight: FontWeight.bold, fontSize: 14.0)), + ), + ), + ), + Container( + child: Container( + margin: EdgeInsets.only(bottom: 10.0), + child: Center( + child: Text(TranslationBase.of(context).timeNeeded, style: TextStyle(color: Colors.black, fontWeight: FontWeight.bold, fontSize: 14.0)), + ), + ), + ), + ], + ), + ); + dentalProceduresModel.listIsPatientHasOnGoingEstimation.forEach((procedure) { + tableRow.add(TableRow(children: [ + Container( + child: Container( + child: Center( + child: Text(procedure.procedureName, textAlign: TextAlign.center, style: TextStyle(color: Colors.black, fontSize: 14.0)), + ), + ), + ), + Container( + child: Container( + child: Center( + child: Text(procedure.neededTime.toString() + " mins", textAlign: TextAlign.center, style: TextStyle(color: Colors.black, fontSize: 14.0)), + ), + ), + ), + ])); + }); + tableRow.add( + TableRow( + children: [ + Container( + child: Container( + child: Center( + child: Text(TranslationBase.of(context).totalTimeNeeded, textAlign: TextAlign.center, style: TextStyle(color: Colors.black, fontWeight: FontWeight.bold, fontSize: 14.0)), + ), + ), + ), + Container( + child: Container( + margin: EdgeInsets.only(bottom: 10.0), + child: Center( + child: Text(totalAppointmentTime.toString() + " mins", textAlign: TextAlign.center, style: TextStyle(color: Colors.black, fontWeight: FontWeight.bold, fontSize: 14.0)), + ), + ), + ), + ], + ), + ); + return tableRow; + } + continueDentalPlan() { DoctorsListService service = new DoctorsListService();