make register patient feature

register_patient_feature
mosazaid 4 years ago
parent ac61da6ff9
commit 4553edc792

@ -34,6 +34,8 @@ class _RegisterSearchPatientPageState extends State<RegisterSearchPatientPage> {
DateTime _birthDate;
String birthdateError;
CalenderType calenderType = CalenderType.Gregorian;
@override
Widget build(BuildContext context) {
final screenSize = MediaQuery.of(context).size;
@ -131,28 +133,24 @@ class _RegisterSearchPatientPageState extends State<RegisterSearchPatientPage> {
children: [
Expanded(
child: RadioListTile<CalenderType>(
title: AppText(
TranslationBase.of(context).inPatient),
title: AppText("Gregorian"),
value: CalenderType.Gregorian,
groupValue: patientType,
onChanged: (PatientType value) {
groupValue: calenderType,
onChanged: (CalenderType value) {
setState(() {
patientType = value;
radioOnChange(value);
calenderType = value;
});
},
),
),
Expanded(
child: RadioListTile<PatientType>(
title: AppText(
TranslationBase.of(context).outpatient),
value: PatientType.OUT_PATIENT,
groupValue: patientType,
onChanged: (PatientType value) {
child: RadioListTile<CalenderType>(
title: AppText("Hijri"),
value: CalenderType.Hijri,
groupValue: calenderType,
onChanged: (CalenderType value) {
setState(() {
patientType = value;
radioOnChange(value);
calenderType = value;
});
},
),

Loading…
Cancel
Save