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

Loading…
Cancel
Save