CustomTextField constructor

const CustomTextField({
  1. Key? key,
  2. required TextEditingController controller,
  3. required String labelText,
  4. required String hintText,
  5. TextInputType textInputType = TextInputType.text,
  6. Color? topContainerColor,
  7. double? buttonHeight,
  8. double? labelSize,
  9. Widget? suffix,
  10. TextStyle? textStyle,
  11. bool readOnly = false,
  12. bool enabled = true,
  13. void onChanged(
    1. String
    )?,
  14. bool canEdit = true,
  15. bool isPrice = false,
  16. List<String>? autoFillHints,
  17. 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
});