AppTextField constructor

const AppTextField({
  1. Key? key,
  2. required FieldCubit<String> cubit,
  3. required String label,
  4. String? hintText,
  5. bool autofocus = false,
  6. TextInputType keyboardType = TextInputType.text,
  7. int? maxLines = 1,
  8. bool obscureText = false,
  9. InputDecoration? decoration,
  10. Widget? prefixIcon,
  11. Widget? suffixIcon,
})

Implementation

const AppTextField({
  super.key,
  required this.cubit,
  required this.label,
  this.hintText,
  this.autofocus = false,
  this.keyboardType = TextInputType.text,
  this.maxLines = 1,
  this.obscureText = false,
  this.decoration,
  this.prefixIcon,
  this.suffixIcon,
});