childTextField method
Widget
childTextField({
- required AFScreenID screenId,
- required AFWidgetID wid,
- AFTextEditingControllers? controllers,
- AFTextEditingController? controller,
- AFBuildContext<
AFFlexibleStateView, AFRouteParam> ? context, - AFRouteParamWithFlutterState? parentParam,
- required AFOnChangedStringDelegate onChanged,
- String? expectedText,
- bool? enabled,
- bool obscureText = false,
- bool autofocus = false,
- int? minLines,
- int maxLines = 1,
- FocusNode? focusNode,
- InputDecoration? decoration,
- bool autocorrect = true,
- TextAlign textAlign = TextAlign.start,
- TextInputType? keyboardType,
- TextStyle? style,
- Color? cursorColor,
- ValueChanged<
String> ? onSubmitted,
inherited
Create a text field with the specified text.
See AFTextEditingControllers
for an explanation
of how text controllers should be handled. The wid
is
used as the id for the specific controller. The AFTextEditingControllers
should be created only once, when you first visit a screen, and then
should be passed through via the 'copyWith' method, and then
disposed of the route parameter is disposed.
Implementation
Widget childTextField({
required AFScreenID screenId,
required AFWidgetID wid,
AFTextEditingControllers? controllers,
AFTextEditingController? controller,
AFBuildContext? context,
AFRouteParamWithFlutterState? parentParam,
required AFOnChangedStringDelegate onChanged,
String? expectedText,
bool? enabled,
bool obscureText = false,
bool autofocus = false,
int? minLines,
int maxLines = 1,
FocusNode? focusNode,
InputDecoration? decoration,
bool autocorrect = true,
TextAlign textAlign = TextAlign.start,
TextInputType? keyboardType,
TextStyle? style,
Color? cursorColor,
ValueChanged<String>? onSubmitted,
}) {
return AFUITextField(
screenId: screenId,
wid: wid,
enabled: enabled,
style: style,
focusNode: focusNode,
controller: controller,
controllers: controllers,
parentParam: parentParam,
expectedText: expectedText,
onChanged: onChanged,
minLines: minLines,
maxLines: maxLines,
keyboardType: keyboardType,
obscureText: obscureText,
autocorrect: autocorrect,
autofocus: autofocus,
textAlign: textAlign,
decoration: decoration,
onSubmitted: onSubmitted,
cursorColor: cursorColor,
);
}