SoftSaaSTextInput.elevated constructor

const SoftSaaSTextInput.elevated({
  1. Key? key,
  2. String? label,
  3. String? hintText,
  4. String? helperText,
  5. String? errorText,
  6. TextEditingController? controller,
  7. ValueChanged<String>? onChanged,
  8. ValueChanged<String>? onSubmitted,
  9. bool obscureText = false,
  10. bool enabled = true,
  11. int? maxLines = 1,
  12. TextInputType? keyboardType,
  13. IconData? prefixIcon,
  14. IconData? suffixIcon,
  15. Widget? suffix,
  16. BoxConstraints? suffixIconConstraints,
  17. bool autofocus = false,
  18. bool readOnly = false,
  19. VoidCallback? onTap,
  20. SoftSaaSTextInputSize size = SoftSaaSTextInputSize.medium,
})

Neumorphic variant with shadow elevation and animated focus state.

Use this for showcase/decorative contexts where the soft tactile appearance is desired. For production form fields, prefer the default constructor.

Implementation

const SoftSaaSTextInput.elevated({
  super.key,
  this.label,
  this.hintText,
  this.helperText,
  this.errorText,
  this.controller,
  this.onChanged,
  this.onSubmitted,
  this.obscureText = false,
  this.enabled = true,
  this.maxLines = 1,
  this.keyboardType,
  this.prefixIcon,
  this.suffixIcon,
  this.suffix,
  this.suffixIconConstraints,
  this.autofocus = false,
  this.readOnly = false,
  this.onTap,
  this.size = SoftSaaSTextInputSize.medium,
}) : _style = _SoftSaaSTextInputStyle.elevated;