GpProfileField constructor

const GpProfileField({
  1. Key? key,
  2. required TextEditingController controller,
  3. required String label,
  4. IconData? icon,
  5. TextInputType keyboardType = TextInputType.text,
  6. bool readOnly = false,
  7. String? hint,
  8. VoidCallback? onTap,
  9. Widget? suffixIcon,
  10. bool isLocked = false,
  11. String lockedText = 'LOCKED',
  12. bool isVerified = false,
  13. String? helperText,
  14. String? errorText,
  15. bool enabled = true,
  16. Color? backgroundColor,
  17. Color? borderColor,
  18. Color? textColor,
})

Implementation

const GpProfileField({
  super.key,
  required this.controller,
  required this.label,
  this.icon,
  this.keyboardType = TextInputType.text,
  this.readOnly = false,
  this.hint,
  this.onTap,
  this.suffixIcon,
  this.isLocked = false,
  this.lockedText = 'LOCKED',
  this.isVerified = false,
  this.helperText,
  this.errorText,
  this.enabled = true,
  this.backgroundColor,
  this.borderColor,
  this.textColor,
});