Created
October 25, 2018 17:55
-
-
Save swat-cat/d5ffb5ec7b6d3ccb72952a868120b6e7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Widget emailInput(LoginViewModel viewModel) => Padding( | |
| padding: const EdgeInsets.only(left: 65.0,right: 65.0,top: 26.0), | |
| child: Container( | |
| alignment: new Alignment(0.5, 0.5), | |
| height: 56.0, | |
| decoration: BoxDecoration( | |
| color: Color(semiTransparentGray), | |
| border: Border(bottom: BorderSide( | |
| color: new Color(_getColor(viewModel.status, viewModel.emailError, _emailNode)), | |
| width:1.0 | |
| )), | |
| ), | |
| child: Padding( | |
| padding: const EdgeInsets.only(left: 16.0,bottom: 8.0), | |
| child: new TextField( | |
| focusNode: _emailNode, | |
| style: TextStyle( | |
| fontSize: 17.0 | |
| ), | |
| keyboardType: TextInputType.emailAddress, | |
| controller: _emailController, | |
| decoration: new InputDecoration( | |
| labelText: email, | |
| labelStyle: new TextStyle( | |
| color: new Color(_getColor(viewModel.status, viewModel.emailError, _emailNode)) | |
| ), | |
| border: InputBorder.none | |
| ), | |
| onChanged: (email){ | |
| viewModel.validateEmail(email); | |
| }, | |
| ), | |
| ), | |
| ), | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment