|
|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
import 'package:doctor_app_flutter/config/size_config.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/core/enum/CalenderType.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/core/model/PatientRegistration/PatientRegistrationModel.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/core/viewModel/PatientRegistrationViewModel.dart';
|
|
|
|
|
|
|
|
|
|
import 'package:doctor_app_flutter/screens/base/base_view.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/util/date-utils.dart';
|
|
|
|
|
|
|
|
|
|
@ -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;
|
|
|
|
|
@ -127,6 +129,34 @@ class _RegisterSearchPatientPageState extends State<RegisterSearchPatientPage> {
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10,
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Expanded(
|
|
|
|
|
child: RadioListTile<CalenderType>(
|
|
|
|
|
title: AppText("Gregorian"),
|
|
|
|
|
value: CalenderType.Gregorian,
|
|
|
|
|
groupValue: calenderType,
|
|
|
|
|
onChanged: (CalenderType value) {
|
|
|
|
|
setState(() {
|
|
|
|
|
calenderType = value;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: RadioListTile<CalenderType>(
|
|
|
|
|
title: AppText("Hijri"),
|
|
|
|
|
value: CalenderType.Hijri,
|
|
|
|
|
groupValue: calenderType,
|
|
|
|
|
onChanged: (CalenderType value) {
|
|
|
|
|
setState(() {
|
|
|
|
|
calenderType = value;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
AppTextFieldCustom(
|
|
|
|
|
height: screenSize.height * 0.075,
|
|
|
|
|
hintText: "Birthdate",
|
|
|
|
|
|