|
|
|
@ -1,4 +1,5 @@
|
|
|
|
import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
|
|
|
|
import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
|
|
|
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/app-textfield-custom.dart';
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/new_text_Field.dart';
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/new_text_Field.dart';
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
@ -35,33 +36,28 @@ class UpdateChiefComplaints extends StatelessWidget {
|
|
|
|
height: 20,
|
|
|
|
height: 20,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
//TODO handel error cases
|
|
|
|
//TODO handel error cases
|
|
|
|
NewTextFields(
|
|
|
|
AppTextFieldCustom(
|
|
|
|
hintText: TranslationBase.of(context).addChiefComplaints,
|
|
|
|
hintText: TranslationBase.of(context).addChiefComplaints,
|
|
|
|
controller: complaintsController,
|
|
|
|
controller: complaintsController,
|
|
|
|
maxLines: 25,
|
|
|
|
maxLines: 25,
|
|
|
|
minLines: 3,
|
|
|
|
minLines: 7,
|
|
|
|
),
|
|
|
|
hasBorder: true,
|
|
|
|
|
|
|
|
validationError:complaintsController.text.isEmpty && complaintsControllerError !=''?complaintsControllerError:null ,
|
|
|
|
|
|
|
|
|
|
|
|
Container(
|
|
|
|
),
|
|
|
|
child: CustomValidationError(
|
|
|
|
|
|
|
|
error: complaintsControllerError,
|
|
|
|
|
|
|
|
)),
|
|
|
|
|
|
|
|
SizedBox(
|
|
|
|
SizedBox(
|
|
|
|
height: 20,
|
|
|
|
height: 20,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
|
|
NewTextFields(
|
|
|
|
AppTextFieldCustom(
|
|
|
|
hintText: TranslationBase
|
|
|
|
hintText: TranslationBase
|
|
|
|
.of(context)
|
|
|
|
.of(context)
|
|
|
|
.historyOfPresentIllness,
|
|
|
|
.historyOfPresentIllness,
|
|
|
|
controller: illnessController,
|
|
|
|
controller: illnessController,
|
|
|
|
maxLines: 25,
|
|
|
|
maxLines: 25,
|
|
|
|
minLines: 3,
|
|
|
|
minLines: 7,
|
|
|
|
),
|
|
|
|
hasBorder: true,
|
|
|
|
Container(
|
|
|
|
validationError:illnessController.text.isEmpty && illnessControllerError !=''?illnessControllerError:null ,
|
|
|
|
child: CustomValidationError(error: illnessControllerError,)),
|
|
|
|
|
|
|
|
SizedBox(
|
|
|
|
|
|
|
|
height: 20,
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(
|
|
|
|
SizedBox(
|
|
|
|
height: 10,
|
|
|
|
height: 10,
|
|
|
|
@ -72,16 +68,17 @@ class UpdateChiefComplaints extends StatelessWidget {
|
|
|
|
SizedBox(
|
|
|
|
SizedBox(
|
|
|
|
height: 10,
|
|
|
|
height: 10,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
NewTextFields(
|
|
|
|
AppTextFieldCustom(
|
|
|
|
hintText: TranslationBase
|
|
|
|
hintText: TranslationBase
|
|
|
|
.of(context)
|
|
|
|
.of(context)
|
|
|
|
.currentMedications,
|
|
|
|
.currentMedications,
|
|
|
|
controller: medicationController,
|
|
|
|
controller: medicationController,
|
|
|
|
maxLines: 25,
|
|
|
|
maxLines: 25,
|
|
|
|
minLines: 3,
|
|
|
|
minLines: 7,
|
|
|
|
|
|
|
|
hasBorder: true,
|
|
|
|
|
|
|
|
validationError:medicationController.text.isEmpty && medicationControllerError !=''?medicationControllerError:null ,
|
|
|
|
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Container(child: CustomValidationError(
|
|
|
|
|
|
|
|
error: medicationControllerError,)),
|
|
|
|
|
|
|
|
SizedBox(
|
|
|
|
SizedBox(
|
|
|
|
height: 10,
|
|
|
|
height: 10,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|