loginAgainView method

Widget loginAgainView()

Implementation

Widget loginAgainView() {
  return SingleChildScrollView(
    keyboardDismissBehavior: ScrollViewKeyboardDismissBehavior.onDrag,
    child: Column(
      children: [
        Container(
            color: Colors.white,
            height: 200,
            width: 300,
            margin: EdgeInsets.only(bottom: 10),
            child: Image.asset(Assets.ic_sellon_logo_transparent)),
        CustomizedEditText(
          margin: EdgeInsets.only(left: 20, right: 20),
          controller: emailController,
          focusNode: _emailFocus,
          keyboardType: loginType == LoginHome.phone
              ? TextInputType.number
              : TextInputType.emailAddress,
          colorText: Colors.black,
          hint: loginType == LoginHome.phone ? 'No. Ponsel' : 'Email',
          isBank: loginType == LoginHome.phone ? true : false,
          onChanged: (s) {
            setState(() {});
          },
        ),
        // Container(
        //   margin: EdgeInsets.only(left: 20, right: 20),
        //   child: TextFormField(
        //       controller: emailController,
        //       focusNode: _emailFocus,
        //       keyboardType: loginType == LoginHome.phone
        //           ? TextInputType.phone
        //           : TextInputType.emailAddress,
        //       onChanged: (s) {
        //         setState(() {});
        //       },
        //       inputFormatters: [loginType == LoginHome.phone ?FilteringTextInputFormatter.digitsOnly: FilteringTextInputFormatter.singleLineFormatter],
        //       decoration: InputDecoration(
        //           labelText:
        //               loginType == LoginHome.phone ? 'No. Ponsel' : 'Email',
        //           fillColor: Colors.white,
        //           focusedBorder: UnderlineInputBorder(
        //             borderSide: BorderSide(color: ColorsState.orange),
        //           ),
        //           enabledBorder: UnderlineInputBorder(
        //             borderSide: BorderSide(color: ColorsState.orange),
        //           ))),
        // ),

        loginType == LoginHome.phone
            ? DefaultText(
          margin: EdgeInsets.only(left: 30, right: 20, top: 10),
          colorsText: Colors.grey,
          alignment: Alignment.centerLeft,
          textLabel: "Example : 08123456789",
        )
            : Container(),
        SizedBox(
          height: 5,
        ),
        // GestureDetector(
        //   onTap: () {
        //     Helper().checkRegsterLocation(context).then((value) {
        //       if (value != null){
        //         print("vaklue resgiste ${value.name}");
        //       }
        //     });
        //   },
        //   child: DefaultText(
        //     textLabel: "ini coba",
        //   ),
        // ),
        loginType == LoginHome.email
            ? CustomizedEditText(
          margin: EdgeInsets.only(left: 20, right: 20, top: 10),
          controller: passwordController,
          focusNode: _passwordFocus,
          colorText: Colors.black,
          hint: "Password",
          obscureText: true,
          isPassword: true,
          onChanged: (s) {
            setState(() {});
          },
        )
            : Container(),
        loginType == LoginHome.email
            ? GestureDetector(
          onTap: () {
            SellonRouter.push(context, ForgotPasswordScreen());
          },
          child: DefaultText(
            margin: EdgeInsets.only(right: 28, top: 15),
            alignment: Alignment.centerRight,
            textLabel: "Forgot Password?",
            colorsText: Colors.deepOrange,
          ),
        )
            : Container(),
        Container(
          height: loginType == LoginHome.phone ? 100 : 50,
        ),
        loginview()
      ],
    ),
  );
}