CustomTextField constructor

const CustomTextField(
  1. String label, {
  2. Key? key,
  3. TextEditingController? controller,
  4. bool obscureText = false,
  5. double borderRadius = 25,
  6. ValueNotifier<Color>? backgroundColor,
  7. void onSubmitted(
    1. String
    )?,
  8. ValueNotifier<Color>? textColor,
  9. TextInputType keyboardType = TextInputType.text,
  10. TextInputAction textInputAction = TextInputAction.done,
  11. TextCapitalization textCapitalization = TextCapitalization.none,
  12. EdgeInsetsGeometry edgeInsetsGeometry = const EdgeInsets.all(0.0),
})

A custom text field widget with various customization options.

The label parameter must not be null.

Implementation

const CustomTextField(
  this.label, {
  super.key,
  this.controller,
  this.obscureText = false,
  this.borderRadius = 25,
  this.backgroundColor,
  this.onSubmitted,
  this.textColor,
  this.keyboardType = TextInputType.text,
  this.textInputAction = TextInputAction.done,
  this.textCapitalization = TextCapitalization.none,
  this.edgeInsetsGeometry = const EdgeInsets.all(0.0),
});