FTimeField constructor
- FTimeFieldController? controller,
- FTimeFieldStyle style(
- FTimeFieldStyle style
- FTime? initialTime,
- bool hour24,
- bool autofocus,
- FocusNode? focusNode,
- FFieldBuilder<
FTimeFieldStyle> builder, - FFieldIconBuilder<
FTimeFieldStyle> ? prefixBuilder, - FFieldIconBuilder<
FTimeFieldStyle> ? suffixBuilder, - TextInputAction? textInputAction,
- TextAlign textAlign,
- TextAlignVertical? textAlignVertical,
- TextDirection? textDirection,
- bool expands,
- VoidCallback? onEditingComplete,
- ValueChanged<
FTime> ? onSubmit, - MouseCursor? mouseCursor,
- bool canRequestFocus,
- Widget? label,
- Widget? description,
- bool enabled,
- ValueChanged<
FTime?> ? onChange, - FormFieldSetter<
FTime> ? onSaved, - VoidCallback? onReset,
- AutovalidateMode autovalidateMode,
- String? forceErrorText,
- Widget errorBuilder(
- BuildContext context,
- String message
- Key? key,
Creates a time field that wraps a text input field.
The textInputAction
property can be used to specify the action button on the soft keyboard. The textAlign
property is used to specify the alignment of the text within the input field.
The textAlignVertical
property is used to specify the vertical alignment of the text and can be useful when
used with a prefix or suffix.
The textDirection
property can be used to specify the directionality of the text input.
If expands
is true, the input field will expand to fill its parent's height.
The onEditingComplete
callback is called when the user submits the input field, such as by pressing the done
button on the keyboard.
The onSubmit
callback is called when the user submits a valid time value.
The mouseCursor
can be used to specify the cursor shown when hovering over the input field.
If canRequestFocus
is false, the input field cannot obtain focus but can still be selected.
See also:
- FTimeField.picker - Creates a time field with only a picker.
Implementation
const factory FTimeField({
FTimeFieldController? controller,
FTimeFieldStyle Function(FTimeFieldStyle style)? style,
FTime? initialTime,
bool hour24,
bool autofocus,
FocusNode? focusNode,
FFieldBuilder<FTimeFieldStyle> builder,
FFieldIconBuilder<FTimeFieldStyle>? prefixBuilder,
FFieldIconBuilder<FTimeFieldStyle>? suffixBuilder,
TextInputAction? textInputAction,
TextAlign textAlign,
TextAlignVertical? textAlignVertical,
TextDirection? textDirection,
bool expands,
VoidCallback? onEditingComplete,
ValueChanged<FTime>? onSubmit,
MouseCursor? mouseCursor,
bool canRequestFocus,
Widget? label,
Widget? description,
bool enabled,
ValueChanged<FTime?>? onChange,
FormFieldSetter<FTime>? onSaved,
VoidCallback? onReset,
AutovalidateMode autovalidateMode,
String? forceErrorText,
Widget Function(BuildContext context, String message) errorBuilder,
Key? key,
}) = _InputTimeField;