|
|
|
|
@ -1,4 +1,5 @@
|
|
|
|
|
import 'package:doctor_app_flutter/config/size_config.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/core/enum/CalenderType.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/core/enum/viewstate.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/core/viewModel/PatientRegisterViewModel.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/screens/base/base_view.dart';
|
|
|
|
|
@ -126,6 +127,38 @@ class _RegisterSearchPatientPageState extends State<RegisterSearchPatientPage> {
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10,
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Expanded(
|
|
|
|
|
child: RadioListTile<CalenderType>(
|
|
|
|
|
title: AppText(
|
|
|
|
|
TranslationBase.of(context).inPatient),
|
|
|
|
|
value: CalenderType.Gregorian,
|
|
|
|
|
groupValue: patientType,
|
|
|
|
|
onChanged: (PatientType value) {
|
|
|
|
|
setState(() {
|
|
|
|
|
patientType = value;
|
|
|
|
|
radioOnChange(value);
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: RadioListTile<PatientType>(
|
|
|
|
|
title: AppText(
|
|
|
|
|
TranslationBase.of(context).outpatient),
|
|
|
|
|
value: PatientType.OUT_PATIENT,
|
|
|
|
|
groupValue: patientType,
|
|
|
|
|
onChanged: (PatientType value) {
|
|
|
|
|
setState(() {
|
|
|
|
|
patientType = value;
|
|
|
|
|
radioOnChange(value);
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
AppTextFieldCustom(
|
|
|
|
|
height: screenSize.height * 0.075,
|
|
|
|
|
hintText: "Birthdate",
|
|
|
|
|
|