CLTextField.number constructor
CLTextField.number({
- Key? key,
- required TextEditingController controller,
- required String labelText,
- bool isReadOnly = false,
- GestureTapCallback? onTap,
- FocusNode? focusNode,
- Future onChanged(
- String value
- bool isRequired = false,
- IconAlignment iconAlignment = IconAlignment.start,
- bool isRounded = false,
- bool isEnabled = true,
- List<
FormFieldValidator< ? validators,String> > - String? initValue,
- bool withDecimal = false,
- bool isCompact = false,
Implementation
factory CLTextField.number({
Key? key,
required TextEditingController controller,
required String labelText,
bool isReadOnly = false,
GestureTapCallback? onTap,
FocusNode? focusNode,
Future Function(String value)? onChanged,
bool isRequired = false,
IconAlignment iconAlignment = IconAlignment.start,
bool isRounded = false,
bool isEnabled = true,
List<FormFieldValidator<String>>? validators,
String? initValue,
bool withDecimal = false,
bool isCompact = false,
}) =>
CLTextField(
key: key,
controller: controller,
labelText: labelText,
isRequired: isRequired,
inputType: TextInputType.numberWithOptions(decimal: withDecimal),
onChanged: onChanged,
focusNode: focusNode,
onTap: onTap,
initValue: initValue,
isReadOnly: isReadOnly,
isRounded: isRounded,
isEnabled: isEnabled,
validators: validators,
isCompact: isCompact,
);