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.
101 lines
3.4 KiB
Dart
101 lines
3.4 KiB
Dart
import 'package:diplomaticquarterapp/core/model/AlHabibMedicalService/EReferral/get_ereferral_response_model.dart';
|
|
import 'package:diplomaticquarterapp/uitl/date_uitl.dart';
|
|
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
|
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class ReferralDetails extends StatefulWidget {
|
|
GetEReferralResponseModel getEReferralResponseModel;
|
|
|
|
ReferralDetails({@required this.getEReferralResponseModel});
|
|
|
|
@override
|
|
_ReferralDetailsState createState() => _ReferralDetailsState();
|
|
}
|
|
|
|
class _ReferralDetailsState extends State<ReferralDetails> {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return AppScaffold(
|
|
isShowDecPage: false,
|
|
isShowAppBar: true,
|
|
appBarTitle: "Referral Details",
|
|
body: Container(
|
|
margin: EdgeInsets.only(top: 20.0, left: 20.0, right: 20.0),
|
|
child: Table(
|
|
border: TableBorder.all(color: Colors.grey[600]),
|
|
children: [
|
|
TableRow(children: [
|
|
TableCell(
|
|
child: _getNormalText(
|
|
TranslationBase.of(context).referralStatus)),
|
|
TableCell(
|
|
child:
|
|
_getNormalText(widget.getEReferralResponseModel.status)),
|
|
]),
|
|
TableRow(children: [
|
|
TableCell(
|
|
child:
|
|
_getNormalText(TranslationBase.of(context).patientName)),
|
|
TableCell(
|
|
child: _getNormalText(
|
|
widget.getEReferralResponseModel.patientName)),
|
|
]),
|
|
TableRow(children: [
|
|
TableCell(
|
|
child: _getNormalText(
|
|
TranslationBase.of(context).referralNumber)),
|
|
TableCell(
|
|
child: _getNormalText(widget
|
|
.getEReferralResponseModel.referralNumber
|
|
.toString())),
|
|
]),
|
|
TableRow(children: [
|
|
TableCell(
|
|
child: _getNormalText(
|
|
TranslationBase.of(context).referralDate)),
|
|
TableCell(
|
|
child: _getNormalText(DateUtil.getMonthDayYearDateFormatted(
|
|
DateUtil.convertStringToDateNoTimeZone(
|
|
widget.getEReferralResponseModel.referralDate)))),
|
|
]),
|
|
TableRow(children: [
|
|
TableCell(
|
|
child: _getNormalText(TranslationBase.of(context).hospital)),
|
|
TableCell(
|
|
child: _getNormalText(
|
|
widget.getEReferralResponseModel.preferredBranchName)),
|
|
]),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
|
|
_getNormalText(text) {
|
|
return Container(
|
|
color: Colors.white,
|
|
padding: EdgeInsets.only(top: 12.0, bottom: 12.0),
|
|
child: Text(text,
|
|
textAlign: TextAlign.center,
|
|
style: TextStyle(
|
|
fontSize: 14,
|
|
fontFamily: 'Open-Sans',
|
|
letterSpacing: 0.5,
|
|
color: Colors.grey[800])),
|
|
);
|
|
}
|
|
|
|
_getHeadingText(text) {
|
|
return Container(
|
|
padding: EdgeInsets.only(bottom: 10.0),
|
|
child: Text(text,
|
|
textAlign: TextAlign.center,
|
|
style: TextStyle(
|
|
fontSize: 26.0,
|
|
fontFamily: 'Open-Sans',
|
|
letterSpacing: 0.5,
|
|
color: Colors.white)));
|
|
}
|
|
}
|