|
|
|
|
@ -2,6 +2,7 @@ import 'package:diplomaticquarterapp/config/size_config.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/core/model/ImagesInfo.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/core/viewModels/insurance_card_View_model.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/data_display/text.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/others/rounded_container.dart';
|
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
|
@ -20,10 +21,19 @@ class InsuranceApproval extends StatefulWidget {
|
|
|
|
|
|
|
|
|
|
class _InsuranceApprovalState extends State<InsuranceApproval> {
|
|
|
|
|
List<ImagesInfo> imagesInfo = List();
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
imagesInfo.add(ImagesInfo(imageEn: 'https://hmgwebservices.com/Images/MobileApp/imges-info/apporvals/en/0.png',imageAr: 'https://hmgwebservices.com/Images/MobileApp/imges-info/apporvals/ar/0.png'));
|
|
|
|
|
imagesInfo.add(ImagesInfo(imageEn: 'https://hmgwebservices.com/Images/MobileApp/imges-info/apporvals/en/1.png',imageAr: 'https://hmgwebservices.com/Images/MobileApp/imges-info/apporvals/ar/1.png'));
|
|
|
|
|
imagesInfo.add(ImagesInfo(
|
|
|
|
|
imageEn:
|
|
|
|
|
'https://hmgwebservices.com/Images/MobileApp/imges-info/apporvals/en/0.png',
|
|
|
|
|
imageAr:
|
|
|
|
|
'https://hmgwebservices.com/Images/MobileApp/imges-info/apporvals/ar/0.png'));
|
|
|
|
|
imagesInfo.add(ImagesInfo(
|
|
|
|
|
imageEn:
|
|
|
|
|
'https://hmgwebservices.com/Images/MobileApp/imges-info/apporvals/en/1.png',
|
|
|
|
|
imageAr:
|
|
|
|
|
'https://hmgwebservices.com/Images/MobileApp/imges-info/apporvals/ar/1.png'));
|
|
|
|
|
return BaseView<InsuranceViewModel>(
|
|
|
|
|
onModelReady: widget.appointmentNo != null
|
|
|
|
|
? (model) =>
|
|
|
|
|
@ -63,10 +73,10 @@ class _InsuranceApprovalState extends State<InsuranceApproval> {
|
|
|
|
|
),
|
|
|
|
|
if (model.insuranceApproval.length > 0)
|
|
|
|
|
Container(
|
|
|
|
|
width: SizeConfig.widthMultiplier * 18.0,
|
|
|
|
|
height: SizeConfig.heightMultiplier * 2.8,
|
|
|
|
|
width: 60,
|
|
|
|
|
height: 35,
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Color(0xffC5272D),
|
|
|
|
|
color: Theme.of(context).primaryColor,
|
|
|
|
|
borderRadius: BorderRadius.circular(19.0)),
|
|
|
|
|
child: Center(
|
|
|
|
|
child: Text(
|
|
|
|
|
@ -92,29 +102,21 @@ class _InsuranceApprovalState extends State<InsuranceApproval> {
|
|
|
|
|
crossAxisAlignment:
|
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
model.insuranceApproval[index]
|
|
|
|
|
.patientDescription ==
|
|
|
|
|
"In Patient"
|
|
|
|
|
model.insuranceApproval[index].patientDescription == "In Patient"
|
|
|
|
|
? Container(
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Color(0xffB8372C),
|
|
|
|
|
color: Theme.of(context).primaryColor,
|
|
|
|
|
borderRadius:
|
|
|
|
|
BorderRadius.circular(
|
|
|
|
|
16.0)),
|
|
|
|
|
width: 95.0,
|
|
|
|
|
width: 115.0,
|
|
|
|
|
padding:
|
|
|
|
|
EdgeInsets.only(left: 11.5),
|
|
|
|
|
child: Text(
|
|
|
|
|
model.insuranceApproval[index]
|
|
|
|
|
.patientDescription ==
|
|
|
|
|
null
|
|
|
|
|
? ''
|
|
|
|
|
: model
|
|
|
|
|
.insuranceApproval[
|
|
|
|
|
index]
|
|
|
|
|
.patientDescription,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color: Colors.white),
|
|
|
|
|
child: Center(
|
|
|
|
|
child: Texts(
|
|
|
|
|
TranslationBase.of(context).inPatient,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
: Container(
|
|
|
|
|
@ -123,20 +125,14 @@ class _InsuranceApprovalState extends State<InsuranceApproval> {
|
|
|
|
|
borderRadius:
|
|
|
|
|
BorderRadius.circular(
|
|
|
|
|
16.0)),
|
|
|
|
|
width: 95.0,
|
|
|
|
|
width: 115.0,
|
|
|
|
|
padding:
|
|
|
|
|
EdgeInsets.only(left: 11.5),
|
|
|
|
|
child: Text(
|
|
|
|
|
model.insuranceApproval[index]
|
|
|
|
|
.patientDescription ==
|
|
|
|
|
null
|
|
|
|
|
? ''
|
|
|
|
|
: model
|
|
|
|
|
.insuranceApproval[
|
|
|
|
|
index]
|
|
|
|
|
.patientDescription,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color: Colors.white),
|
|
|
|
|
child: Center(
|
|
|
|
|
child: Texts(
|
|
|
|
|
TranslationBase.of(context).outpatient,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Padding(
|
|
|
|
|
|