Text Field
A text field lets the user enter text, either with a hardware keyboard or with an onscreen keyboard.
See FTextFormField
for using text fields in forms.
Preview
Usage
FTextField(...)
FTextField(
controller: _controller, // TextEditingController
clearable: (value) => value.text.isNotEmpty,
enabled: true,
label: const Text('Email'),
hint: '[email protected]',
description: const Text('Enter your email associated with your Forui account.'),
error: const Text('Error'),
keyboardType: TextInputType.emailAddress,
textCapitalization: TextCapitalization.none,
maxLines: 1,
);
Examples
States
Enabled
Preview
Disabled
Preview
Clearable
Preview
Presets
Preview
Password
Preview
Multiline
Preview
Last updated on