You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
126 lines
4.6 KiB
Dart
126 lines
4.6 KiB
Dart
import 'package:doctor_app_flutter/config/size_config.dart';
|
|
import 'package:doctor_app_flutter/providers/doctor_reply_provider.dart';
|
|
import 'package:doctor_app_flutter/widgets/shared/app_scaffold_widget.dart';
|
|
import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
|
|
import 'package:doctor_app_flutter/widgets/shared/card_with_bg_widget.dart';
|
|
import 'package:doctor_app_flutter/widgets/shared/dr_app_circular_progress_Indeicator.dart';
|
|
import 'package:doctor_app_flutter/widgets/shared/rounded_container_widget.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:hexcolor/hexcolor.dart';
|
|
import 'package:provider/provider.dart';
|
|
|
|
/*
|
|
*@author: Mohammad Aljammal
|
|
*@Date:28/4/2020
|
|
*@param:
|
|
*@return:
|
|
*@desc: Doctor Reply Screen display data from GtMyPatientsQuestions service
|
|
*/
|
|
class DoctorReplyScreen extends StatelessWidget {
|
|
|
|
DoctorReplyProvider _doctorReplyProvider;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
_doctorReplyProvider = Provider.of(context);
|
|
return AppScaffold(
|
|
appBarTitle: 'Doctor Reply',
|
|
showAppDrawer: false,
|
|
body:_doctorReplyProvider.isLoading? DrAppCircularProgressIndeicator():
|
|
_doctorReplyProvider.isError? Center(
|
|
child: Text(
|
|
_doctorReplyProvider.error,
|
|
style: TextStyle(color: Theme.of(context).errorColor),
|
|
),
|
|
):
|
|
Container(
|
|
padding: EdgeInsetsDirectional.fromSTEB(30, 0, 30, 0),
|
|
child: ListView(
|
|
children: [
|
|
Column(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: _doctorReplyProvider.listDoctorWorkingHoursTable.map((reply) {
|
|
return CardWithBgWidget(
|
|
widget: Container(
|
|
child: Column(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
AppText(
|
|
reply.patientName,
|
|
fontSize: 2.5 * SizeConfig.textMultiplier,
|
|
),
|
|
SizedBox(
|
|
height: 8,
|
|
),
|
|
AppText(
|
|
reply.remarks,
|
|
fontSize: 2.5 * SizeConfig.textMultiplier,
|
|
),
|
|
SizedBox(
|
|
height: 5,
|
|
),
|
|
Row(
|
|
children: [
|
|
AppText(
|
|
'Time',
|
|
fontSize: 2.5 * SizeConfig.textMultiplier,
|
|
),
|
|
Container(
|
|
margin: EdgeInsets.only(left: 10),
|
|
child: AppText(
|
|
reply.requestTime,
|
|
fontSize: 2.5 * SizeConfig.textMultiplier,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
SizedBox(
|
|
height: 5,
|
|
),
|
|
Row(
|
|
children: [
|
|
AppText(
|
|
'File No',
|
|
fontSize: 2.5 * SizeConfig.textMultiplier,
|
|
),
|
|
Container(
|
|
margin: EdgeInsets.only(left: 10),
|
|
child: AppText(
|
|
'${reply.patientID}',
|
|
fontSize: 2.5 * SizeConfig.textMultiplier,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
SizedBox(
|
|
height: 5,
|
|
),
|
|
Row(
|
|
children: [
|
|
AppText(
|
|
'Mobile No',
|
|
fontSize: 2.5 * SizeConfig.textMultiplier,
|
|
),
|
|
Container(
|
|
margin: EdgeInsets.only(left: 10),
|
|
child: AppText(
|
|
reply.mobileNumber,
|
|
fontSize: 2.5 * SizeConfig.textMultiplier,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}).toList(),
|
|
)
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
|
|
}
|