TpTextField constructor

const TpTextField(
  1. String labelText, {
  2. required dynamic onChanged(
    1. String
    ),
  3. int? maxLength,
  4. TextInputType? textInputType,
  5. TextEditingController? editingController,
  6. Widget? suffixChild,
  7. List<TextInputFormatter>? inputFormatter,
  8. Color color = Colors.blue,
  9. VoidCallback? onFocus,
  10. bool? autoFocus,
  11. TextStyle textStyle = _kTextStyle,
  12. TextStyle labelStyle = _kLabelTextStyle,
  13. Key? key,
})

Implementation

const TpTextField(this.labelText,
    {required this.onChanged,
      this.maxLength,
      this.textInputType,
      this.editingController,
      this.suffixChild,
      this.inputFormatter,
      this.color = Colors.blue,
      this.onFocus,
      this.autoFocus,
      this.textStyle = _kTextStyle,
      this.labelStyle = _kLabelTextStyle,
      Key? key})
    : super(key: key);