CustomTextField constructor
const
CustomTextField({ - Key? key,
- required TextEditingController controller,
- required String labelText,
- required String hintText,
- TextInputType textInputType = TextInputType.text,
- Color? topContainerColor,
- double? buttonHeight,
- double? labelSize,
- Widget? suffix,
- TextStyle? textStyle,
- bool readOnly = false,
- bool enabled = true,
- void onChanged(
- String
)?,
- bool canEdit = true,
- bool isPrice = false,
- List<String>? autoFillHints,
- Widget? prefix,
})
Implementation
const CustomTextField({
super.key,
required this.controller,
required this.labelText,
required this.hintText,
this.textInputType = TextInputType.text,
this.topContainerColor,
this.buttonHeight,
this.labelSize,
this.suffix,
this.textStyle,
this.readOnly=false,
this.enabled = true,
this.onChanged,
this.canEdit = true,
this.isPrice = false,
this.autoFillHints,
this.prefix
});