|
|
@ -140,7 +140,9 @@ class _PatientSearchScreenState extends State<PatientSearchScreen> {
|
|
|
|
Padding(
|
|
|
|
Padding(
|
|
|
|
padding: const EdgeInsets.only(top: 12.0),
|
|
|
|
padding: const EdgeInsets.only(top: 12.0),
|
|
|
|
child: AppText(
|
|
|
|
child: AppText(
|
|
|
|
TranslationBase.of(context).searchPatientImageCaptionTitle.toUpperCase(),
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
|
|
|
.searchPatientImageCaptionTitle
|
|
|
|
|
|
|
|
.toUpperCase(),
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontSize: SizeConfig.heightMultiplier * 2.5,
|
|
|
|
fontSize: SizeConfig.heightMultiplier * 2.5,
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -155,7 +157,6 @@ class _PatientSearchScreenState extends State<PatientSearchScreen> {
|
|
|
|
)
|
|
|
|
)
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
padding: EdgeInsets.all(15),
|
|
|
|
padding: EdgeInsets.all(15),
|
|
|
|
width: SizeConfig.screenWidth * 1,
|
|
|
|
width: SizeConfig.screenWidth * 1,
|
|
|
@ -177,10 +178,9 @@ class _PatientSearchScreenState extends State<PatientSearchScreen> {
|
|
|
|
style: BorderStyle.solid,
|
|
|
|
style: BorderStyle.solid,
|
|
|
|
color: Hexcolor("#CCCCCC")),
|
|
|
|
color: Hexcolor("#CCCCCC")),
|
|
|
|
borderRadius:
|
|
|
|
borderRadius:
|
|
|
|
BorderRadius.all(Radius.circular(6.0)),
|
|
|
|
BorderRadius.all(Radius.circular(6.0)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
|
|
width: double.infinity,
|
|
|
|
width: double.infinity,
|
|
|
|
child: Padding(
|
|
|
|
child: Padding(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
@ -195,54 +195,53 @@ class _PatientSearchScreenState extends State<PatientSearchScreen> {
|
|
|
|
// add Expanded to have your dropdown button fill remaining space
|
|
|
|
// add Expanded to have your dropdown button fill remaining space
|
|
|
|
child: DropdownButtonHideUnderline(
|
|
|
|
child: DropdownButtonHideUnderline(
|
|
|
|
child: DropdownButton(
|
|
|
|
child: DropdownButton(
|
|
|
|
isExpanded: true,
|
|
|
|
isExpanded: true,
|
|
|
|
value: _selectedType,
|
|
|
|
value: _selectedType,
|
|
|
|
iconSize: 25,
|
|
|
|
iconSize: 25,
|
|
|
|
elevation: 16,
|
|
|
|
elevation: 16,
|
|
|
|
selectedItemBuilder:
|
|
|
|
selectedItemBuilder:
|
|
|
|
(BuildContext context) {
|
|
|
|
(BuildContext context) {
|
|
|
|
return PATIENT_TYPE.map((item) {
|
|
|
|
return PATIENT_TYPE.map((item) {
|
|
|
|
return Row(
|
|
|
|
return Row(
|
|
|
|
mainAxisSize: MainAxisSize.max,
|
|
|
|
mainAxisSize: MainAxisSize.max,
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
|
!projectsProvider.isArabic
|
|
|
|
!projectsProvider.isArabic
|
|
|
|
? AppText(
|
|
|
|
? AppText(
|
|
|
|
item['text'],
|
|
|
|
item['text'],
|
|
|
|
fontSize: SizeConfig
|
|
|
|
fontSize: SizeConfig
|
|
|
|
.textMultiplier *
|
|
|
|
.textMultiplier *
|
|
|
|
2.1,
|
|
|
|
2.1,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
: AppText(
|
|
|
|
: AppText(
|
|
|
|
item['text_ar'],
|
|
|
|
item['text_ar'],
|
|
|
|
fontSize: SizeConfig
|
|
|
|
fontSize: SizeConfig
|
|
|
|
.textMultiplier *
|
|
|
|
.textMultiplier *
|
|
|
|
2.1,
|
|
|
|
2.1,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}).toList();
|
|
|
|
}).toList();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onChanged: (String newValue) =>
|
|
|
|
onChanged: (String newValue) => {
|
|
|
|
{
|
|
|
|
setState(() {
|
|
|
|
setState(() {
|
|
|
|
_selectedType = newValue;
|
|
|
|
_selectedType = newValue;
|
|
|
|
selectedPatientType =
|
|
|
|
selectedPatientType =
|
|
|
|
int.parse(_selectedType);
|
|
|
|
int.parse(_selectedType);
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
items: PATIENT_TYPE.map((item) {
|
|
|
|
items: PATIENT_TYPE.map((item) {
|
|
|
|
!projectsProvider.isArabic
|
|
|
|
!projectsProvider.isArabic
|
|
|
|
? itemText = item['text']
|
|
|
|
? itemText = item['text']
|
|
|
|
: itemText = item['text_ar'];
|
|
|
|
: itemText = item['text_ar'];
|
|
|
|
return DropdownMenuItem(
|
|
|
|
return DropdownMenuItem(
|
|
|
|
child: Text(
|
|
|
|
child: Text(
|
|
|
|
itemText,
|
|
|
|
itemText,
|
|
|
|
textAlign: TextAlign.end,
|
|
|
|
textAlign: TextAlign.end,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
value: item['val'],
|
|
|
|
value: item['val'],
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}).toList(),
|
|
|
|
}).toList(),
|
|
|
|
)),
|
|
|
|
)),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -253,30 +252,23 @@ class _PatientSearchScreenState extends State<PatientSearchScreen> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
borderRadius: BorderRadius.all(
|
|
|
|
borderRadius:
|
|
|
|
Radius.circular(6.0)),
|
|
|
|
BorderRadius.all(Radius.circular(6.0)),
|
|
|
|
border: Border.all(
|
|
|
|
border: Border.all(
|
|
|
|
width: 1.0, color: Hexcolor("#CCCCCC"))
|
|
|
|
width: 1.0, color: Hexcolor("#CCCCCC"))),
|
|
|
|
),
|
|
|
|
|
|
|
|
padding: EdgeInsets.only(top: 5),
|
|
|
|
padding: EdgeInsets.only(top: 5),
|
|
|
|
child: AppTextFormField(
|
|
|
|
child: AppTextFormField(
|
|
|
|
|
|
|
|
labelText:
|
|
|
|
labelText: TranslationBase
|
|
|
|
TranslationBase.of(context).firstName,
|
|
|
|
.of(context)
|
|
|
|
|
|
|
|
.firstName,
|
|
|
|
|
|
|
|
borderColor: Colors.white,
|
|
|
|
borderColor: Colors.white,
|
|
|
|
|
|
|
|
|
|
|
|
onSaved: (value) {
|
|
|
|
onSaved: (value) {
|
|
|
|
value == null
|
|
|
|
value == null
|
|
|
|
? _patientSearchFormValues.setFirstName =
|
|
|
|
? _patientSearchFormValues.setFirstName =
|
|
|
|
"0"
|
|
|
|
"0"
|
|
|
|
: _patientSearchFormValues.setFirstName =
|
|
|
|
: _patientSearchFormValues.setFirstName =
|
|
|
|
value;
|
|
|
|
value;
|
|
|
|
|
|
|
|
|
|
|
|
if (value
|
|
|
|
if (value.toString().trim().isEmpty) {
|
|
|
|
.toString()
|
|
|
|
|
|
|
|
.trim()
|
|
|
|
|
|
|
|
.isEmpty) {
|
|
|
|
|
|
|
|
_patientSearchFormValues.setFirstName = "0";
|
|
|
|
_patientSearchFormValues.setFirstName = "0";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -290,29 +282,24 @@ class _PatientSearchScreenState extends State<PatientSearchScreen> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
borderRadius: BorderRadius.all(
|
|
|
|
borderRadius:
|
|
|
|
Radius.circular(6.0)),
|
|
|
|
BorderRadius.all(Radius.circular(6.0)),
|
|
|
|
border: Border.all(
|
|
|
|
border: Border.all(
|
|
|
|
width: 1.0, color: Hexcolor("#CCCCCC"))
|
|
|
|
width: 1.0, color: Hexcolor("#CCCCCC"))),
|
|
|
|
),
|
|
|
|
|
|
|
|
padding: EdgeInsets.only(top: 5),
|
|
|
|
padding: EdgeInsets.only(top: 5),
|
|
|
|
child: AppTextFormField(
|
|
|
|
child: AppTextFormField(
|
|
|
|
labelText: TranslationBase
|
|
|
|
labelText:
|
|
|
|
.of(context)
|
|
|
|
TranslationBase.of(context).middleName,
|
|
|
|
.middleName,
|
|
|
|
|
|
|
|
borderColor: Colors.white,
|
|
|
|
borderColor: Colors.white,
|
|
|
|
onSaved: (value) {
|
|
|
|
onSaved: (value) {
|
|
|
|
value == null
|
|
|
|
value == null
|
|
|
|
? _patientSearchFormValues.setMiddleName =
|
|
|
|
? _patientSearchFormValues.setMiddleName =
|
|
|
|
"0"
|
|
|
|
"0"
|
|
|
|
: _patientSearchFormValues.setMiddleName =
|
|
|
|
: _patientSearchFormValues.setMiddleName =
|
|
|
|
value;
|
|
|
|
value;
|
|
|
|
if (value
|
|
|
|
if (value.toString().trim().isEmpty) {
|
|
|
|
.toString()
|
|
|
|
|
|
|
|
.trim()
|
|
|
|
|
|
|
|
.isEmpty) {
|
|
|
|
|
|
|
|
_patientSearchFormValues.setMiddleName =
|
|
|
|
_patientSearchFormValues.setMiddleName =
|
|
|
|
"0";
|
|
|
|
"0";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// validator: (value) {
|
|
|
|
// validator: (value) {
|
|
|
@ -325,27 +312,21 @@ class _PatientSearchScreenState extends State<PatientSearchScreen> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
borderRadius: BorderRadius.all(
|
|
|
|
borderRadius:
|
|
|
|
Radius.circular(6.0)),
|
|
|
|
BorderRadius.all(Radius.circular(6.0)),
|
|
|
|
border: Border.all(
|
|
|
|
border: Border.all(
|
|
|
|
width: 1.0, color: Hexcolor("#CCCCCC"))
|
|
|
|
width: 1.0, color: Hexcolor("#CCCCCC"))),
|
|
|
|
),
|
|
|
|
|
|
|
|
padding: EdgeInsets.only(top: 5),
|
|
|
|
padding: EdgeInsets.only(top: 5),
|
|
|
|
child: AppTextFormField(
|
|
|
|
child: AppTextFormField(
|
|
|
|
labelText: TranslationBase
|
|
|
|
labelText: TranslationBase.of(context).lastName,
|
|
|
|
.of(context)
|
|
|
|
|
|
|
|
.lastName,
|
|
|
|
|
|
|
|
borderColor: Colors.white,
|
|
|
|
borderColor: Colors.white,
|
|
|
|
onSaved: (value) {
|
|
|
|
onSaved: (value) {
|
|
|
|
value == null
|
|
|
|
value == null
|
|
|
|
?
|
|
|
|
? _patientSearchFormValues.setLastName =
|
|
|
|
_patientSearchFormValues.setLastName = "0"
|
|
|
|
"0"
|
|
|
|
: _patientSearchFormValues.setLastName =
|
|
|
|
: _patientSearchFormValues.setLastName =
|
|
|
|
value;
|
|
|
|
value;
|
|
|
|
if (value
|
|
|
|
if (value.toString().trim().isEmpty) {
|
|
|
|
.toString()
|
|
|
|
|
|
|
|
.trim()
|
|
|
|
|
|
|
|
.isEmpty) {
|
|
|
|
|
|
|
|
_patientSearchFormValues.setLastName = "0";
|
|
|
|
_patientSearchFormValues.setLastName = "0";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -356,30 +337,25 @@ class _PatientSearchScreenState extends State<PatientSearchScreen> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
borderRadius: BorderRadius.all(
|
|
|
|
borderRadius:
|
|
|
|
Radius.circular(6.0)),
|
|
|
|
BorderRadius.all(Radius.circular(6.0)),
|
|
|
|
border: Border.all(
|
|
|
|
border: Border.all(
|
|
|
|
width: 1.0, color: Hexcolor("#CCCCCC"))
|
|
|
|
width: 1.0, color: Hexcolor("#CCCCCC"))),
|
|
|
|
),
|
|
|
|
|
|
|
|
padding: EdgeInsets.only(top: 5),
|
|
|
|
padding: EdgeInsets.only(top: 5),
|
|
|
|
child: AppTextFormField(
|
|
|
|
child: AppTextFormField(
|
|
|
|
labelText: TranslationBase
|
|
|
|
labelText:
|
|
|
|
.of(context)
|
|
|
|
TranslationBase.of(context).phoneNumber,
|
|
|
|
.phoneNumber,
|
|
|
|
|
|
|
|
borderColor: Colors.white,
|
|
|
|
borderColor: Colors.white,
|
|
|
|
textInputType: TextInputType.number,
|
|
|
|
textInputType: TextInputType.number,
|
|
|
|
inputFormatter: ONLY_NUMBERS,
|
|
|
|
inputFormatter: ONLY_NUMBERS,
|
|
|
|
onSaved: (value) {
|
|
|
|
onSaved: (value) {
|
|
|
|
value == null
|
|
|
|
value == null
|
|
|
|
? _patientSearchFormValues
|
|
|
|
? _patientSearchFormValues
|
|
|
|
.setPatientMobileNumber = "0"
|
|
|
|
.setPatientMobileNumber = "0"
|
|
|
|
: _patientSearchFormValues
|
|
|
|
: _patientSearchFormValues
|
|
|
|
.setPatientMobileNumber = value;
|
|
|
|
.setPatientMobileNumber = value;
|
|
|
|
|
|
|
|
|
|
|
|
if (value
|
|
|
|
if (value.toString().trim().isEmpty) {
|
|
|
|
.toString()
|
|
|
|
|
|
|
|
.trim()
|
|
|
|
|
|
|
|
.isEmpty) {
|
|
|
|
|
|
|
|
_patientSearchFormValues
|
|
|
|
_patientSearchFormValues
|
|
|
|
.setPatientMobileNumber = "0";
|
|
|
|
.setPatientMobileNumber = "0";
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -391,29 +367,24 @@ class _PatientSearchScreenState extends State<PatientSearchScreen> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
borderRadius: BorderRadius.all(
|
|
|
|
borderRadius:
|
|
|
|
Radius.circular(6.0)),
|
|
|
|
BorderRadius.all(Radius.circular(6.0)),
|
|
|
|
border: Border.all(
|
|
|
|
border: Border.all(
|
|
|
|
width: 1.0, color: Hexcolor("#CCCCCC"))
|
|
|
|
width: 1.0, color: Hexcolor("#CCCCCC"))),
|
|
|
|
),
|
|
|
|
|
|
|
|
padding: EdgeInsets.only(top: 5),
|
|
|
|
padding: EdgeInsets.only(top: 5),
|
|
|
|
child: AppTextFormField(
|
|
|
|
child: AppTextFormField(
|
|
|
|
labelText: TranslationBase
|
|
|
|
labelText:
|
|
|
|
.of(context)
|
|
|
|
TranslationBase.of(context).patientID,
|
|
|
|
.patientID,
|
|
|
|
|
|
|
|
borderColor: Colors.white,
|
|
|
|
borderColor: Colors.white,
|
|
|
|
textInputType: TextInputType.number,
|
|
|
|
textInputType: TextInputType.number,
|
|
|
|
inputFormatter: ONLY_NUMBERS,
|
|
|
|
inputFormatter: ONLY_NUMBERS,
|
|
|
|
onSaved: (value) {
|
|
|
|
onSaved: (value) {
|
|
|
|
value == null
|
|
|
|
value == null
|
|
|
|
?
|
|
|
|
? _patientSearchFormValues.setPatientID =
|
|
|
|
_patientSearchFormValues.setPatientID = 0
|
|
|
|
0
|
|
|
|
: _patientSearchFormValues.setPatientID =
|
|
|
|
: _patientSearchFormValues.setPatientID =
|
|
|
|
int.parse(value);
|
|
|
|
int.parse(value);
|
|
|
|
if (value
|
|
|
|
if (value.toString().trim().isEmpty) {
|
|
|
|
.toString()
|
|
|
|
|
|
|
|
.trim()
|
|
|
|
|
|
|
|
.isEmpty) {
|
|
|
|
|
|
|
|
_patientSearchFormValues.setPatientID = 0;
|
|
|
|
_patientSearchFormValues.setPatientID = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}),
|
|
|
|
}),
|
|
|
@ -423,16 +394,14 @@ class _PatientSearchScreenState extends State<PatientSearchScreen> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
borderRadius: BorderRadius.all(
|
|
|
|
borderRadius:
|
|
|
|
Radius.circular(6.0)),
|
|
|
|
BorderRadius.all(Radius.circular(6.0)),
|
|
|
|
border: Border.all(
|
|
|
|
border: Border.all(
|
|
|
|
width: 1.0, color: Hexcolor("#CCCCCC"))
|
|
|
|
width: 1.0, color: Hexcolor("#CCCCCC"))),
|
|
|
|
),
|
|
|
|
|
|
|
|
padding: EdgeInsets.only(top: 5),
|
|
|
|
padding: EdgeInsets.only(top: 5),
|
|
|
|
child: AppTextFormField(
|
|
|
|
child: AppTextFormField(
|
|
|
|
labelText: TranslationBase
|
|
|
|
labelText:
|
|
|
|
.of(context)
|
|
|
|
TranslationBase.of(context).patientFile,
|
|
|
|
.patientFile,
|
|
|
|
|
|
|
|
borderColor: Colors.white,
|
|
|
|
borderColor: Colors.white,
|
|
|
|
textInputType: TextInputType.number,
|
|
|
|
textInputType: TextInputType.number,
|
|
|
|
inputFormatter: ONLY_NUMBERS,
|
|
|
|
inputFormatter: ONLY_NUMBERS,
|
|
|
@ -442,8 +411,8 @@ class _PatientSearchScreenState extends State<PatientSearchScreen> {
|
|
|
|
(!(_selectedType == '2' || _selectedType == '4'))
|
|
|
|
(!(_selectedType == '2' || _selectedType == '4'))
|
|
|
|
? DynamicElements(_patientSearchFormValues)
|
|
|
|
? DynamicElements(_patientSearchFormValues)
|
|
|
|
: SizedBox(
|
|
|
|
: SizedBox(
|
|
|
|
height: 0,
|
|
|
|
height: 0,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(
|
|
|
|
SizedBox(
|
|
|
|
height: 10,
|
|
|
|
height: 10,
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -456,7 +425,7 @@ class _PatientSearchScreenState extends State<PatientSearchScreen> {
|
|
|
|
style: BorderStyle.solid,
|
|
|
|
style: BorderStyle.solid,
|
|
|
|
color: Hexcolor("#CCCCCC")),
|
|
|
|
color: Hexcolor("#CCCCCC")),
|
|
|
|
borderRadius:
|
|
|
|
borderRadius:
|
|
|
|
BorderRadius.all(Radius.circular(6.0)),
|
|
|
|
BorderRadius.all(Radius.circular(6.0)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
width: double.infinity,
|
|
|
|
width: double.infinity,
|
|
|
@ -473,29 +442,29 @@ class _PatientSearchScreenState extends State<PatientSearchScreen> {
|
|
|
|
// add Expanded to have your dropdown button fill remaining space
|
|
|
|
// add Expanded to have your dropdown button fill remaining space
|
|
|
|
child: DropdownButtonHideUnderline(
|
|
|
|
child: DropdownButtonHideUnderline(
|
|
|
|
child: DropdownButton(
|
|
|
|
child: DropdownButton(
|
|
|
|
isExpanded: true,
|
|
|
|
isExpanded: true,
|
|
|
|
value: _selectedLocation,
|
|
|
|
value: _selectedLocation,
|
|
|
|
iconSize: 25,
|
|
|
|
iconSize: 25,
|
|
|
|
elevation: 16,
|
|
|
|
elevation: 16,
|
|
|
|
selectedItemBuilder:
|
|
|
|
selectedItemBuilder:
|
|
|
|
(BuildContext context) {
|
|
|
|
(BuildContext context) {
|
|
|
|
return LOCATIONS.map((item) {
|
|
|
|
return LOCATIONS.map((item) {
|
|
|
|
return Row(
|
|
|
|
return Row(
|
|
|
|
mainAxisSize: MainAxisSize.max,
|
|
|
|
mainAxisSize: MainAxisSize.max,
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
|
!projectsProvider.isArabic
|
|
|
|
!projectsProvider.isArabic
|
|
|
|
? AppText(
|
|
|
|
? AppText(
|
|
|
|
item['text'],
|
|
|
|
item['text'],
|
|
|
|
fontSize: SizeConfig
|
|
|
|
fontSize: SizeConfig
|
|
|
|
.textMultiplier *
|
|
|
|
.textMultiplier *
|
|
|
|
2.1,
|
|
|
|
2.1,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
: AppText(
|
|
|
|
: AppText(
|
|
|
|
item['text-ar'],
|
|
|
|
item['text-ar'],
|
|
|
|
fontSize: SizeConfig
|
|
|
|
fontSize: SizeConfig
|
|
|
|
.textMultiplier *
|
|
|
|
.textMultiplier *
|
|
|
|
2.1,
|
|
|
|
2.1,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
],
|
|
|
|
],
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}).toList();
|
|
|
|
}).toList();
|
|
|
@ -517,7 +486,7 @@ class _PatientSearchScreenState extends State<PatientSearchScreen> {
|
|
|
|
value: item['val'],
|
|
|
|
value: item['val'],
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}).toList(),
|
|
|
|
}).toList(),
|
|
|
|
)),
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -530,30 +499,29 @@ class _PatientSearchScreenState extends State<PatientSearchScreen> {
|
|
|
|
child: Row(
|
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
borderRadius: BorderRadius.all(
|
|
|
|
borderRadius: BorderRadius.all(
|
|
|
|
Radius.circular(6.0)),
|
|
|
|
Radius.circular(6.0)),
|
|
|
|
border: Border.all(
|
|
|
|
border: Border.all(
|
|
|
|
width: 1.0,
|
|
|
|
width: 1.0,
|
|
|
|
color: Hexcolor("#CCCCCC"))
|
|
|
|
color: Hexcolor("#CCCCCC"))),
|
|
|
|
),
|
|
|
|
height: 25,
|
|
|
|
height: 25,
|
|
|
|
width: 25,
|
|
|
|
width: 25,
|
|
|
|
child: Checkbox(
|
|
|
|
child: Checkbox(
|
|
|
|
value: true,
|
|
|
|
value: true,
|
|
|
|
checkColor: Hexcolor("#2A930A"),
|
|
|
|
checkColor: Hexcolor("#2A930A"),
|
|
|
|
activeColor: Colors.white,
|
|
|
|
activeColor: Colors.white,
|
|
|
|
onChanged: (bool newValue) {}),
|
|
|
|
onChanged: (bool newValue) {}),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(
|
|
|
|
SizedBox(width: 12,),
|
|
|
|
width: 12,
|
|
|
|
AppText(
|
|
|
|
),
|
|
|
|
TranslationBase
|
|
|
|
AppText(
|
|
|
|
.of(context)
|
|
|
|
TranslationBase.of(context)
|
|
|
|
.onlyArrivedPatient,
|
|
|
|
.onlyArrivedPatient,
|
|
|
|
fontSize: SizeConfig.textMultiplier *
|
|
|
|
fontSize: SizeConfig.textMultiplier * 2),
|
|
|
|
2),
|
|
|
|
])),
|
|
|
|
])),
|
|
|
|
|
|
|
|
SizedBox(
|
|
|
|
SizedBox(
|
|
|
|
height: 10,
|
|
|
|
height: 10,
|
|
|
|
),
|
|
|
|
),
|
|
|
|