TF-191 Fix keyboard to email input type when input for Url, Email, To, Cc, Bcc

This commit is contained in:
dab246
2021-10-18 15:21:31 +07:00
committed by Dat H. Pham
parent ececc65a26
commit 1432cb0209
3 changed files with 9 additions and 0 deletions
@@ -95,6 +95,7 @@ class LoginView extends GetWidget<LoginController> {
..key(Key('login_url_input'))
..onChange((value) => loginController.setUrlText(value))
..textInputAction(TextInputAction.next)
..keyboardType(TextInputType.emailAddress)
..textDecoration(LoginInputDecorationBuilder()
.setLabelText(AppLocalizations.of(context).prefix_https)
.setPrefixText(AppLocalizations.of(context).prefix_https)
@@ -111,6 +112,7 @@ class LoginView extends GetWidget<LoginController> {
..key(Key('login_username_input'))
..onChange((value) => loginController.setUserNameText(value))
..textInputAction(TextInputAction.next)
..keyboardType(TextInputType.emailAddress)
..textDecoration(LoginInputDecorationBuilder()
.setLabelText(AppLocalizations.of(context).username)
.setHintText(AppLocalizations.of(context).username)