usingPhone method

Widget usingPhone()

Implementation

Widget usingPhone() {
  return Column(
    children: [
      CustomizedEditText(
        controller: phoneNumberController,
        focusNode: _phoneNumberFocus,
        margin: EdgeInsets.only(top: 8),
        textInputAction: TextInputAction.next,
        keyboardType: TextInputType.phone,
        enableTextView: true,
        colorText: Colors.black,
        hint: "Phone",
        onFieldSubmitted: (s) {
          if (widget.registerWith == RegisterWith.emailSign) {
            _passwordFocus.requestFocus();
          } else {
            _phoneNumberFocus.requestFocus();
          }
        },
        onChanged: (s) {
          setState(() {
            checkBeforeRegister();
          });
        },
      ),
      DefaultText(
        textLabel: "Example : 08123456789",
        alignment: Alignment.centerLeft,
        margin: EdgeInsets.only(left: 10, top: 4),
        sizeText: 12,
        colorsText: Colors.orange,
      )
    ],
  );
}