usingEmail method
Implementation
Widget usingEmail() {
return Column(
children: [
CustomizedEditText(
controller: emailController,
focusNode: _emailFocus,
textInputAction: TextInputAction.next,
keyboardType: TextInputType.emailAddress,
enableTextView:
widget.registerWith != RegisterWith.emailSign ? false : true,
colorText: Colors.black,
hint: 'Email',
onFieldSubmitted: (s) {
_phoneNumberFocus.requestFocus();
},
onChanged: (s) {
setState(() {
checkBeforeRegister();
});
},
),
isEmailWrong
? DefaultText(
textLabel: isEmailSellonWrong
? "You're not allowed to use @sellon"
: "Email is wrong",
margin: EdgeInsets.only(right: 10, left: 10),
colorsText: Colors.red,
sizeText: 12,
alignment: Alignment.centerRight,
)
: Container()
],
);
}