update login

parent 937df473
...@@ -136,6 +136,9 @@ class _SignInState extends State<SignIn> { ...@@ -136,6 +136,9 @@ class _SignInState extends State<SignIn> {
child: TextFormField( child: TextFormField(
controller: emailController, controller: emailController,
textAlign: TextAlign.start, textAlign: TextAlign.start,
onFieldSubmitted: (String value){
loginUser();
},
decoration: InputDecoration( decoration: InputDecoration(
labelText: "Enter Your Email", labelText: "Enter Your Email",
hintStyle: const TextStyle(), hintStyle: const TextStyle(),
...@@ -180,6 +183,9 @@ class _SignInState extends State<SignIn> { ...@@ -180,6 +183,9 @@ class _SignInState extends State<SignIn> {
width: screenSize.width * 0.2, width: screenSize.width * 0.2,
child: TextFormField( child: TextFormField(
controller: passwordController, controller: passwordController,
onFieldSubmitted: (String value){
loginUser();
},
textAlign: TextAlign.start, textAlign: TextAlign.start,
obscureText: _isObscure, obscureText: _isObscure,
decoration: InputDecoration( decoration: InputDecoration(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment