|
|
|
|
@ -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
|
|
|
|
|
|