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

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

Loading…
Cancel
Save