|
|
|
|
@ -18,6 +18,7 @@ import '../../lookups/patient_lookup.dart';
|
|
|
|
|
import '../../widgets/patients/dynamic_elements.dart';
|
|
|
|
|
import '../../config/config.dart';
|
|
|
|
|
import '../../models/doctor_profile_model.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
|
|
|
|
|
|
|
|
|
|
DrAppSharedPreferances sharedPref = new DrAppSharedPreferances();
|
|
|
|
|
Helpers helpers = Helpers();
|
|
|
|
|
@ -112,7 +113,7 @@ class _PatientSearchScreenState extends State<PatientSearchScreen> {
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return AppScaffold(
|
|
|
|
|
appBarTitle: "SEARCH FOR PATIENT",
|
|
|
|
|
appBarTitle: TranslationBase.of(context).searchPatient,
|
|
|
|
|
body: ListView(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
RoundedContainer(
|
|
|
|
|
@ -209,7 +210,7 @@ class _PatientSearchScreenState extends State<PatientSearchScreen> {
|
|
|
|
|
height: 10,
|
|
|
|
|
),
|
|
|
|
|
AppTextFormField(
|
|
|
|
|
hintText: 'First Name',
|
|
|
|
|
hintText: TranslationBase.of(context).firstName,
|
|
|
|
|
onSaved: (value) {
|
|
|
|
|
value == null
|
|
|
|
|
? _patientSearchFormValues.setFirstName =
|
|
|
|
|
@ -229,7 +230,7 @@ class _PatientSearchScreenState extends State<PatientSearchScreen> {
|
|
|
|
|
height: 10,
|
|
|
|
|
),
|
|
|
|
|
AppTextFormField(
|
|
|
|
|
hintText: 'Middle Name',
|
|
|
|
|
hintText: TranslationBase.of(context).middleName,
|
|
|
|
|
onSaved: (value) {
|
|
|
|
|
value == null
|
|
|
|
|
? _patientSearchFormValues.setMiddleName =
|
|
|
|
|
@ -248,7 +249,7 @@ class _PatientSearchScreenState extends State<PatientSearchScreen> {
|
|
|
|
|
height: 10,
|
|
|
|
|
),
|
|
|
|
|
AppTextFormField(
|
|
|
|
|
hintText: 'Last Name',
|
|
|
|
|
hintText: TranslationBase.of(context).lastName,
|
|
|
|
|
onSaved: (value) {
|
|
|
|
|
value == null
|
|
|
|
|
? _patientSearchFormValues.setLastName = "0"
|
|
|
|
|
@ -264,7 +265,7 @@ class _PatientSearchScreenState extends State<PatientSearchScreen> {
|
|
|
|
|
),
|
|
|
|
|
AppTextFormField(
|
|
|
|
|
textInputType: TextInputType.number,
|
|
|
|
|
hintText: 'Phone Number',
|
|
|
|
|
hintText: TranslationBase.of(context).phoneNumber,
|
|
|
|
|
// validator: (value) {
|
|
|
|
|
// return TextValidator().validateMobile(value);
|
|
|
|
|
// },
|
|
|
|
|
@ -287,7 +288,7 @@ class _PatientSearchScreenState extends State<PatientSearchScreen> {
|
|
|
|
|
),
|
|
|
|
|
AppTextFormField(
|
|
|
|
|
textInputType: TextInputType.number,
|
|
|
|
|
hintText: 'Patient ID',
|
|
|
|
|
hintText: TranslationBase.of(context).patientID,
|
|
|
|
|
//
|
|
|
|
|
inputFormatter: ONLY_NUMBERS,
|
|
|
|
|
onSaved: (value) {
|
|
|
|
|
@ -306,7 +307,7 @@ class _PatientSearchScreenState extends State<PatientSearchScreen> {
|
|
|
|
|
),
|
|
|
|
|
AppTextFormField(
|
|
|
|
|
textInputType: TextInputType.number,
|
|
|
|
|
hintText: 'Patient File',
|
|
|
|
|
hintText: TranslationBase.of(context).patientFile,
|
|
|
|
|
// validator: (value) {
|
|
|
|
|
// return TextValidator().validateIdNumber(value);
|
|
|
|
|
// },
|
|
|
|
|
@ -400,7 +401,9 @@ class _PatientSearchScreenState extends State<PatientSearchScreen> {
|
|
|
|
|
value: true,
|
|
|
|
|
activeColor: Color(0xffFFDDD9),
|
|
|
|
|
onChanged: (bool newValue) {}),
|
|
|
|
|
AppText('Only Arrived Patient',
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.onlyArrivedPatient,
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 2),
|
|
|
|
|
])),
|
|
|
|
|
SizedBox(
|
|
|
|
|
@ -419,7 +422,7 @@ class _PatientSearchScreenState extends State<PatientSearchScreen> {
|
|
|
|
|
alignment: WrapAlignment.center,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
AppButton(
|
|
|
|
|
title: "Search",
|
|
|
|
|
title: TranslationBase.of(context).search,
|
|
|
|
|
color: Color(0xff58434F),
|
|
|
|
|
onPressed: () {
|
|
|
|
|
_validateInputs();
|
|
|
|
|
|