AppTextField constructor
- Key? key,
- required FieldCubit<
String> cubit, - required String label,
- String? hintText,
- bool autofocus = false,
- TextInputType keyboardType = TextInputType.text,
- int? maxLines = 1,
- bool obscureText = false,
- InputDecoration? decoration,
- Widget? prefixIcon,
- 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,
});