childEditPasswordField method

Widget childEditPasswordField({
  1. required AFWidgetID wid,
  2. required String password,
  3. required bool showPassword,
  4. required SigninScreenRouteParam parentParam,
  5. required ValueChanged<String> onChangedPassword,
})

Implementation

Widget childEditPasswordField({
  required AFWidgetID wid,
  required String password,
  required bool showPassword,
  required SigninScreenRouteParam parentParam,
  required ValueChanged<String> onChangedPassword,
}) {
  return childMargin(
    margin: marginPassword,
    child: childTextField(
      screenId: context.screenId,
      wid: wid,
      parentParam: parentParam,
      expectedText: password,
      style: styleOnPrimary.bodyMedium,
      decoration: decorationTextInput(
        text: wid,
      ),
      obscureText: !showPassword,
      autocorrect: false,
      onChanged: onChangedPassword
    )
  );
}