|
|
|
|
@ -15,6 +15,7 @@ import '../../../../widgets/shared/app_texts_widget.dart';
|
|
|
|
|
import '../../../../widgets/shared/card_with_bg_widget.dart';
|
|
|
|
|
import '../../../../widgets/shared/dr_app_circular_progress_Indeicator.dart';
|
|
|
|
|
import '../../../../widgets/shared/profile_image_widget.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
|
|
|
|
|
|
|
|
|
|
DrAppSharedPreferances sharedPref = new DrAppSharedPreferances();
|
|
|
|
|
|
|
|
|
|
@ -75,116 +76,124 @@ class _RadiologyScreenState extends State<RadiologyScreen> {
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return AppScaffold(
|
|
|
|
|
appBarTitle: "Radiology",
|
|
|
|
|
appBarTitle: TranslationBase.of(context).radiology,
|
|
|
|
|
body: patientsProv.isLoading
|
|
|
|
|
? DrAppCircularProgressIndeicator()
|
|
|
|
|
: patientsProv.isError
|
|
|
|
|
? DrAppEmbeddedError(error: patientsProv.error)
|
|
|
|
|
: patientsProv.patientRadiologyList.length == 0
|
|
|
|
|
? DrAppEmbeddedError(error: 'You don\'t have any Vital Sign')
|
|
|
|
|
: Container(
|
|
|
|
|
margin: EdgeInsets.fromLTRB(
|
|
|
|
|
SizeConfig.realScreenWidth * 0.05,
|
|
|
|
|
0,
|
|
|
|
|
SizeConfig.realScreenWidth * 0.05,
|
|
|
|
|
0),
|
|
|
|
|
child: Container(
|
|
|
|
|
margin: EdgeInsets.symmetric(vertical: 10),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
borderRadius: BorderRadius.all(
|
|
|
|
|
Radius.circular(20.0),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
child: ListView.builder(
|
|
|
|
|
itemCount: patientsProv.patientRadiologyList.length,
|
|
|
|
|
itemBuilder: (BuildContext context, int index) {
|
|
|
|
|
return InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
MaterialPageRoute(builder: (context) => RadiologyReportScreen(reportData: patientsProv.patientRadiologyList[index].reportData,)),);
|
|
|
|
|
},
|
|
|
|
|
child: Container(
|
|
|
|
|
padding: EdgeInsets.all(10),
|
|
|
|
|
margin: EdgeInsets.all(10),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
borderRadius:
|
|
|
|
|
BorderRadius.all(Radius.circular(10)),
|
|
|
|
|
border: Border(
|
|
|
|
|
bottom: BorderSide(
|
|
|
|
|
color: Colors.grey, width: 0.5),
|
|
|
|
|
top: BorderSide(
|
|
|
|
|
color: Colors.grey, width: 0.5),
|
|
|
|
|
left: BorderSide(
|
|
|
|
|
color: Colors.grey, width: 0.5),
|
|
|
|
|
right: BorderSide(
|
|
|
|
|
color: Colors.grey, width: 0.5),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment:
|
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Row(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
LargeAvatar(
|
|
|
|
|
url: patientsProv
|
|
|
|
|
.patientRadiologyList[index]
|
|
|
|
|
.doctorImageURL,
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding:
|
|
|
|
|
const EdgeInsets.fromLTRB(
|
|
|
|
|
8, 0, 0, 0),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment:
|
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
AppText(
|
|
|
|
|
'${patientsProv.patientRadiologyList[index].doctorName}',
|
|
|
|
|
fontSize: 2.5 *
|
|
|
|
|
SizeConfig
|
|
|
|
|
.textMultiplier,
|
|
|
|
|
fontWeight:
|
|
|
|
|
FontWeight.bold),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 8,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
'Invoice No:${patientsProv.patientRadiologyList[index].invoiceNo}',
|
|
|
|
|
fontSize: 2 *
|
|
|
|
|
SizeConfig
|
|
|
|
|
.textMultiplier,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 8,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
' ${patientsProv.patientRadiologyList[index].clinicName}',
|
|
|
|
|
fontSize: 2 *
|
|
|
|
|
SizeConfig
|
|
|
|
|
.textMultiplier,
|
|
|
|
|
color: Theme.of(context)
|
|
|
|
|
.primaryColor,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 8,
|
|
|
|
|
? DrAppEmbeddedError(error: patientsProv.error)
|
|
|
|
|
: patientsProv.patientRadiologyList.length == 0
|
|
|
|
|
? DrAppEmbeddedError(
|
|
|
|
|
error: TranslationBase.of(context).errorNoVitalSign)
|
|
|
|
|
: Container(
|
|
|
|
|
margin: EdgeInsets.fromLTRB(
|
|
|
|
|
SizeConfig.realScreenWidth * 0.05,
|
|
|
|
|
0,
|
|
|
|
|
SizeConfig.realScreenWidth * 0.05,
|
|
|
|
|
0),
|
|
|
|
|
child: Container(
|
|
|
|
|
margin: EdgeInsets.symmetric(vertical: 10),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
borderRadius: BorderRadius.all(
|
|
|
|
|
Radius.circular(20.0),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
child: ListView.builder(
|
|
|
|
|
itemCount: patientsProv.patientRadiologyList.length,
|
|
|
|
|
itemBuilder: (BuildContext context, int index) {
|
|
|
|
|
return InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
MaterialPageRoute(
|
|
|
|
|
builder: (context) =>
|
|
|
|
|
RadiologyReportScreen(
|
|
|
|
|
reportData: patientsProv
|
|
|
|
|
.patientRadiologyList[index]
|
|
|
|
|
.reportData,
|
|
|
|
|
)),
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
child: Container(
|
|
|
|
|
padding: EdgeInsets.all(10),
|
|
|
|
|
margin: EdgeInsets.all(10),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
borderRadius:
|
|
|
|
|
BorderRadius.all(Radius.circular(10)),
|
|
|
|
|
border: Border(
|
|
|
|
|
bottom: BorderSide(
|
|
|
|
|
color: Colors.grey, width: 0.5),
|
|
|
|
|
top: BorderSide(
|
|
|
|
|
color: Colors.grey, width: 0.5),
|
|
|
|
|
left: BorderSide(
|
|
|
|
|
color: Colors.grey, width: 0.5),
|
|
|
|
|
right: BorderSide(
|
|
|
|
|
color: Colors.grey, width: 0.5),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment:
|
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Row(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
LargeAvatar(
|
|
|
|
|
url: patientsProv
|
|
|
|
|
.patientRadiologyList[index]
|
|
|
|
|
.doctorImageURL,
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding:
|
|
|
|
|
const EdgeInsets.fromLTRB(
|
|
|
|
|
8, 0, 0, 0),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment:
|
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
AppText(
|
|
|
|
|
'${patientsProv.patientRadiologyList[index].doctorName}',
|
|
|
|
|
fontSize: 2.5 *
|
|
|
|
|
SizeConfig
|
|
|
|
|
.textMultiplier,
|
|
|
|
|
fontWeight:
|
|
|
|
|
FontWeight.bold),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 8,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
'Invoice No:${patientsProv.patientRadiologyList[index].invoiceNo}',
|
|
|
|
|
fontSize: 2 *
|
|
|
|
|
SizeConfig
|
|
|
|
|
.textMultiplier,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 8,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
' ${patientsProv.patientRadiologyList[index].clinicName}',
|
|
|
|
|
fontSize: 2 *
|
|
|
|
|
SizeConfig
|
|
|
|
|
.textMultiplier,
|
|
|
|
|
color: Theme.of(context)
|
|
|
|
|
.primaryColor,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 8,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
);
|
|
|
|
|
}),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|