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