childTextField method

Widget childTextField({
  1. required AFScreenID screenId,
  2. required AFWidgetID wid,
  3. AFTextEditingControllers? controllers,
  4. AFTextEditingController? controller,
  5. AFBuildContext<AFFlexibleStateView, AFRouteParam>? context,
  6. AFRouteParamWithFlutterState? parentParam,
  7. required AFOnChangedStringDelegate onChanged,
  8. String? expectedText,
  9. bool? enabled,
  10. bool obscureText = false,
  11. bool autofocus = false,
  12. int? minLines,
  13. int maxLines = 1,
  14. FocusNode? focusNode,
  15. InputDecoration? decoration,
  16. bool autocorrect = true,
  17. TextAlign textAlign = TextAlign.start,
  18. TextInputType? keyboardType,
  19. TextStyle? style,
  20. Color? cursorColor,
  21. 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,
  );
}