fix last issue

merge-requests/847/head
Elham Rababh 5 years ago
parent 9a5eff8c8b
commit 87b70ff905

@ -55,7 +55,7 @@ class _AddPatientSickLeaveScreenState extends State<AddPatientSickLeaveScreen> {
AddSickLeaveRequest addSickLeave = AddSickLeaveRequest(); AddSickLeaveRequest addSickLeave = AddSickLeaveRequest();
bool isFormSubmitted = false; bool isFormSubmitted = false;
FocusNode focusNode;
void _presentDatePicker() { void _presentDatePicker() {
showDatePicker( showDatePicker(
context: context, context: context,
@ -76,6 +76,7 @@ class _AddPatientSickLeaveScreenState extends State<AddPatientSickLeaveScreen> {
@override @override
void initState() { void initState() {
focusNode = new FocusNode();
super.initState(); super.initState();
} }
@ -143,6 +144,7 @@ class _AddPatientSickLeaveScreenState extends State<AddPatientSickLeaveScreen> {
AppTextFieldCustom( AppTextFieldCustom(
height: Helpers.getTextFieldHeight(), height: Helpers.getTextFieldHeight(),
onClick: () { onClick: () {
Helpers.hideKeyboard(context);
_presentDatePicker(); _presentDatePicker();
}, },
hintText: TranslationBase.of(context) hintText: TranslationBase.of(context)
@ -208,12 +210,14 @@ class _AddPatientSickLeaveScreenState extends State<AddPatientSickLeaveScreen> {
SizedBox( SizedBox(
width: 10, width: 10,
), ),
AppText( Expanded(
child: AppText(
model.sickLeaveStatistics.recommendedSickLeaveDays, model.sickLeaveStatistics.recommendedSickLeaveDays,
textAlign: TextAlign.start, textAlign: TextAlign.start,
fontSize: 12, fontSize: 12,
color: IN_PROGRESS_COLOR, color: IN_PROGRESS_COLOR,
), ),
),
], ],
) )
: SizedBox( : SizedBox(

@ -100,7 +100,6 @@ class PatientSickLeaveScreen extends StatelessWidget {
? Expanded( ? Expanded(
child: FractionallySizedBox( child: FractionallySizedBox(
widthFactor: 0.95, widthFactor: 0.95,
child: Expanded(
child: ListView.builder( child: ListView.builder(
scrollDirection: Axis.vertical, scrollDirection: Axis.vertical,
shrinkWrap: true, shrinkWrap: true,
@ -267,7 +266,6 @@ class PatientSickLeaveScreen extends StatelessWidget {
); );
}), }),
), ),
),
) )
: patient.patientStatusType != 43 : patient.patientStatusType != 43
? ErrorMessage( ? ErrorMessage(

Loading…
Cancel
Save