merge-requests/652/head
hussam al-habibeh 5 years ago
parent 68e9470273
commit d2814f610e

@ -440,7 +440,7 @@ class _PrescriptionFormWidgetState extends State<PrescriptionFormWidget> {
height: MediaQuery.of(context) height: MediaQuery.of(context)
.size .size
.height * .height *
0.075, 0.0749,
width: double.infinity, width: double.infinity,
child: Row( child: Row(
children: [ children: [
@ -454,6 +454,7 @@ class _PrescriptionFormWidgetState extends State<PrescriptionFormWidget> {
.width * .width *
0.35, 0.35,
child: AppTextFieldCustom( child: AppTextFieldCustom(
isPrscription: true,
inputFormatters: [ inputFormatters: [
LengthLimitingTextInputFormatter( LengthLimitingTextInputFormatter(
5), 5),
@ -464,6 +465,7 @@ class _PrescriptionFormWidgetState extends State<PrescriptionFormWidget> {
TranslationBase.of( TranslationBase.of(
context) context)
.strength, .strength,
// fontWeight: FontWeight.w500, // fontWeight: FontWeight.w500,
// fontSize: 14.0, // fontSize: 14.0,
// borderWidth: 0.2, // borderWidth: 0.2,

@ -25,6 +25,7 @@ class AppTextFieldCustom extends StatefulWidget {
final List<TextInputFormatter> inputFormatters; final List<TextInputFormatter> inputFormatters;
final Function(String) onChanged; final Function(String) onChanged;
final String validationError; final String validationError;
final bool isPrscription;
AppTextFieldCustom({ AppTextFieldCustom({
this.height = 0, this.height = 0,
@ -43,6 +44,7 @@ class AppTextFieldCustom extends StatefulWidget {
this.inputFormatters, this.inputFormatters,
this.onChanged, this.onChanged,
this.validationError, this.validationError,
this.isPrscription = false,
}); });
@override @override
@ -89,7 +91,9 @@ class _AppTextFieldCustomState extends State<AppTextFieldCustom> {
AppText( AppText(
widget.hintText, widget.hintText,
color: Color(0xFF2E303A), color: Color(0xFF2E303A),
fontSize: SizeConfig.textMultiplier * 1.4, fontSize: widget.isPrscription == false
? SizeConfig.textMultiplier * 1.3
: 0,
fontWeight: FontWeight.w700, fontWeight: FontWeight.w700,
), ),
widget.dropDownText == null widget.dropDownText == null

Loading…
Cancel
Save