|
|
@ -1,3 +1,4 @@
|
|
|
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
|
|
|
import 'package:diplomaticquarterapp/widgets/buttons/secondary_button.dart';
|
|
|
|
import 'package:diplomaticquarterapp/widgets/buttons/secondary_button.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:diplomaticquarterapp/config/size_config.dart';
|
|
|
|
import 'package:diplomaticquarterapp/config/size_config.dart';
|
|
|
@ -35,7 +36,7 @@ class _InsuranceUpdateState extends State<InsuranceUpdate>
|
|
|
|
onModelReady: (model) => model.getInsuranceUpdated(),
|
|
|
|
onModelReady: (model) => model.getInsuranceUpdated(),
|
|
|
|
builder: (BuildContext context, InsuranceViewModel model, Widget child) =>
|
|
|
|
builder: (BuildContext context, InsuranceViewModel model, Widget child) =>
|
|
|
|
AppScaffold(
|
|
|
|
AppScaffold(
|
|
|
|
appBarTitle: 'Insurance Cards',
|
|
|
|
appBarTitle: TranslationBase.of(context).insurCards,
|
|
|
|
isShowAppBar: true,
|
|
|
|
isShowAppBar: true,
|
|
|
|
baseViewModel: model,
|
|
|
|
baseViewModel: model,
|
|
|
|
body: Scaffold(
|
|
|
|
body: Scaffold(
|
|
|
@ -63,7 +64,7 @@ class _InsuranceUpdateState extends State<InsuranceUpdate>
|
|
|
|
controller: _tabController,
|
|
|
|
controller: _tabController,
|
|
|
|
isScrollable: true,
|
|
|
|
isScrollable: true,
|
|
|
|
indicatorWeight: 4.0,
|
|
|
|
indicatorWeight: 4.0,
|
|
|
|
indicatorColor: Colors.red,
|
|
|
|
indicatorColor: Theme.of(context).primaryColor,
|
|
|
|
labelColor: Theme.of(context).primaryColor,
|
|
|
|
labelColor: Theme.of(context).primaryColor,
|
|
|
|
labelPadding: EdgeInsets.symmetric(
|
|
|
|
labelPadding: EdgeInsets.symmetric(
|
|
|
|
horizontal: 13.0, vertical: 2.0),
|
|
|
|
horizontal: 13.0, vertical: 2.0),
|
|
|
@ -72,13 +73,14 @@ class _InsuranceUpdateState extends State<InsuranceUpdate>
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
width: MediaQuery.of(context).size.width * 0.35,
|
|
|
|
width: MediaQuery.of(context).size.width * 0.35,
|
|
|
|
child: Center(
|
|
|
|
child: Center(
|
|
|
|
child: Texts('Card'),
|
|
|
|
child: Texts(TranslationBase.of(context)
|
|
|
|
|
|
|
|
.updateInsuranceSubtitle),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
width: MediaQuery.of(context).size.width * 0.35,
|
|
|
|
width: MediaQuery.of(context).size.width * 0.35,
|
|
|
|
child: Center(
|
|
|
|
child: Center(
|
|
|
|
child: Texts('History'),
|
|
|
|
child: Texts(TranslationBase.of(context).history),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
@ -97,15 +99,18 @@ class _InsuranceUpdateState extends State<InsuranceUpdate>
|
|
|
|
controller: _tabController,
|
|
|
|
controller: _tabController,
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
child:
|
|
|
|
child: model.getAllSharedRecordsByStatusResponse
|
|
|
|
model.getAllSharedRecordsByStatusResponse.getAllSharedRecordsByStatusList!=null?
|
|
|
|
.getAllSharedRecordsByStatusList !=
|
|
|
|
ListView.builder(
|
|
|
|
null
|
|
|
|
itemCount: model.getAllSharedRecordsByStatusResponse.getAllSharedRecordsByStatusList.length,
|
|
|
|
? ListView.builder(
|
|
|
|
|
|
|
|
itemCount: model.getAllSharedRecordsByStatusResponse
|
|
|
|
|
|
|
|
.getAllSharedRecordsByStatusList.length,
|
|
|
|
itemBuilder: (BuildContext context, int index) {
|
|
|
|
itemBuilder: (BuildContext context, int index) {
|
|
|
|
return Container(
|
|
|
|
return Container(
|
|
|
|
margin: EdgeInsets.all(10.0),
|
|
|
|
margin: EdgeInsets.all(10.0),
|
|
|
|
child: Card(
|
|
|
|
child: Card(
|
|
|
|
margin: EdgeInsets.fromLTRB(8.0, 16.0, 8.0, 8.0),
|
|
|
|
margin:
|
|
|
|
|
|
|
|
EdgeInsets.fromLTRB(8.0, 16.0, 8.0, 8.0),
|
|
|
|
color: Colors.white,
|
|
|
|
color: Colors.white,
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
borderRadius: BorderRadius.circular(10),
|
|
|
|
borderRadius: BorderRadius.circular(10),
|
|
|
@ -114,37 +119,45 @@ class _InsuranceUpdateState extends State<InsuranceUpdate>
|
|
|
|
width: MediaQuery.of(context).size.width,
|
|
|
|
width: MediaQuery.of(context).size.width,
|
|
|
|
padding: EdgeInsets.all(10.0),
|
|
|
|
padding: EdgeInsets.all(10.0),
|
|
|
|
child: Row(
|
|
|
|
child: Row(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
crossAxisAlignment:
|
|
|
|
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
mainAxisSize: MainAxisSize.max,
|
|
|
|
mainAxisSize: MainAxisSize.max,
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
|
Expanded(
|
|
|
|
Expanded(
|
|
|
|
flex: 3,
|
|
|
|
flex: 3,
|
|
|
|
child: Container(
|
|
|
|
child: Container(
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
top: 2.0, left: 10.0, right: 20.0),
|
|
|
|
top: 2.0,
|
|
|
|
|
|
|
|
left: 10.0,
|
|
|
|
|
|
|
|
right: 20.0),
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment:
|
|
|
|
crossAxisAlignment:
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
|
Text(
|
|
|
|
Texts(
|
|
|
|
model.getAllSharedRecordsByStatusResponse
|
|
|
|
model
|
|
|
|
|
|
|
|
.getAllSharedRecordsByStatusResponse
|
|
|
|
.getAllSharedRecordsByStatusList[
|
|
|
|
.getAllSharedRecordsByStatusList[
|
|
|
|
index].patientName,
|
|
|
|
index]
|
|
|
|
style: TextStyle(
|
|
|
|
.patientName,
|
|
|
|
fontSize: 14.0,
|
|
|
|
fontSize: 14,
|
|
|
|
color: Colors.black,
|
|
|
|
color: Colors.black,
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
letterSpacing: 1.0)),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
Texts(
|
|
|
|
'File No.' +
|
|
|
|
TranslationBase.of(context)
|
|
|
|
model.getAllSharedRecordsByStatusResponse
|
|
|
|
.fileno +
|
|
|
|
|
|
|
|
": " +
|
|
|
|
|
|
|
|
model
|
|
|
|
|
|
|
|
.getAllSharedRecordsByStatusResponse
|
|
|
|
.getAllSharedRecordsByStatusList[
|
|
|
|
.getAllSharedRecordsByStatusList[
|
|
|
|
index].patientID.toString(),
|
|
|
|
index]
|
|
|
|
style: TextStyle(
|
|
|
|
.patientID
|
|
|
|
fontSize: 14.0,
|
|
|
|
.toString(),
|
|
|
|
|
|
|
|
fontSize: 14,
|
|
|
|
color: Colors.black,
|
|
|
|
color: Colors.black,
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
letterSpacing: 1.0)),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -158,7 +171,9 @@ class _InsuranceUpdateState extends State<InsuranceUpdate>
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
child: SecondaryButton(
|
|
|
|
child: SecondaryButton(
|
|
|
|
label: 'Update',
|
|
|
|
label: TranslationBase.of(
|
|
|
|
|
|
|
|
context)
|
|
|
|
|
|
|
|
.updateInsurance,
|
|
|
|
small: true,
|
|
|
|
small: true,
|
|
|
|
textColor: Colors.white,
|
|
|
|
textColor: Colors.white,
|
|
|
|
// color: Colors.grey,
|
|
|
|
// color: Colors.grey,
|
|
|
@ -175,7 +190,8 @@ class _InsuranceUpdateState extends State<InsuranceUpdate>
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}):Container(),
|
|
|
|
})
|
|
|
|
|
|
|
|
: Container(),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
child: ListView.builder(
|
|
|
|
child: ListView.builder(
|
|
|
@ -212,35 +228,34 @@ class _InsuranceUpdateState extends State<InsuranceUpdate>
|
|
|
|
crossAxisAlignment:
|
|
|
|
crossAxisAlignment:
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
|
Text("TAMER FANASHEH ",
|
|
|
|
Text(
|
|
|
|
|
|
|
|
model.user.firstName +
|
|
|
|
|
|
|
|
" " +
|
|
|
|
|
|
|
|
model.user.lastName,
|
|
|
|
style: TextStyle(
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: 14.0,
|
|
|
|
fontSize: 14.0,
|
|
|
|
color: Colors.black,
|
|
|
|
color: Colors.black,
|
|
|
|
fontWeight:
|
|
|
|
fontWeight:
|
|
|
|
FontWeight.w500,
|
|
|
|
FontWeight.w500,
|
|
|
|
letterSpacing: 1.0)),
|
|
|
|
letterSpacing: 1.0)),
|
|
|
|
Text(
|
|
|
|
Texts(
|
|
|
|
'File No.' +
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
|
|
|
.fileno +
|
|
|
|
|
|
|
|
": " +
|
|
|
|
model
|
|
|
|
model
|
|
|
|
.insuranceUpdate[
|
|
|
|
.insuranceUpdate[
|
|
|
|
index]
|
|
|
|
index]
|
|
|
|
.patientID
|
|
|
|
.patientID
|
|
|
|
.toString(),
|
|
|
|
.toString(),
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: 14,
|
|
|
|
fontSize: 14.0,
|
|
|
|
|
|
|
|
color: Colors.black,
|
|
|
|
color: Colors.black,
|
|
|
|
fontWeight:
|
|
|
|
),
|
|
|
|
FontWeight.w500,
|
|
|
|
Texts(
|
|
|
|
letterSpacing: 1.0)),
|
|
|
|
|
|
|
|
Text(
|
|
|
|
|
|
|
|
model.insuranceUpdate[index]
|
|
|
|
model.insuranceUpdate[index]
|
|
|
|
.createdOn,
|
|
|
|
.createdOn,
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: 14,
|
|
|
|
fontSize: 14.0,
|
|
|
|
|
|
|
|
color: Colors.black,
|
|
|
|
color: Colors.black,
|
|
|
|
fontWeight:
|
|
|
|
),
|
|
|
|
FontWeight.w500,
|
|
|
|
|
|
|
|
letterSpacing: 1.0)),
|
|
|
|
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -248,7 +263,6 @@ class _InsuranceUpdateState extends State<InsuranceUpdate>
|
|
|
|
Expanded(
|
|
|
|
Expanded(
|
|
|
|
flex: 1,
|
|
|
|
flex: 1,
|
|
|
|
child: Container(
|
|
|
|
child: Container(
|
|
|
|
// height: MediaQuery.of(context).size.height * 0.12,
|
|
|
|
|
|
|
|
margin: EdgeInsets.only(top: 20.0),
|
|
|
|
margin: EdgeInsets.only(top: 20.0),
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
@ -259,15 +273,13 @@ class _InsuranceUpdateState extends State<InsuranceUpdate>
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
top: 13.5, left: 2.0),
|
|
|
|
top: 13.5, left: 2.0),
|
|
|
|
child: Text(
|
|
|
|
child: Texts(
|
|
|
|
model
|
|
|
|
model.insuranceUpdate[index]
|
|
|
|
.insuranceUpdate[
|
|
|
|
|
|
|
|
index]
|
|
|
|
|
|
|
|
.statusDescription,
|
|
|
|
.statusDescription,
|
|
|
|
textAlign:
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
TextAlign.center,
|
|
|
|
fontSize: 12,
|
|
|
|
style: TextStyle(
|
|
|
|
color: Colors.black,
|
|
|
|
fontSize: 12.0)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|