SoftSaaSTextInput.elevated constructor
const
SoftSaaSTextInput.elevated({
- Key? key,
- String? label,
- String? hintText,
- String? helperText,
- String? errorText,
- TextEditingController? controller,
- ValueChanged<
String> ? onChanged, - ValueChanged<
String> ? onSubmitted, - bool obscureText = false,
- bool enabled = true,
- int? maxLines = 1,
- TextInputType? keyboardType,
- IconData? prefixIcon,
- IconData? suffixIcon,
- Widget? suffix,
- BoxConstraints? suffixIconConstraints,
- bool autofocus = false,
- bool readOnly = false,
- VoidCallback? onTap,
- 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;