{"action":"closed","issue":{"url":"https://api.github.com/repos/flutter/flutter/issues/21449","repository_url":"https://api.github.com/repos/flutter/flutter","labels_url":"https://api.github.com/repos/flutter/flutter/issues/21449/labels{/name}","comments_url":"https://api.github.com/repos/flutter/flutter/issues/21449/comments","events_url":"https://api.github.com/repos/flutter/flutter/issues/21449/events","html_url":"https://github.com/flutter/flutter/issues/21449","id":357354695,"node_id":"MDU6SXNzdWUzNTczNTQ2OTU=","number":21449,"title":"TextField issue: App crash when user click on textfield","user":{"login":"mahmed8003","id":1140343,"node_id":"MDQ6VXNlcjExNDAzNDM=","avatar_url":"https://avatars2.githubusercontent.com/u/1140343?v=4","gravatar_id":"","url":"https://api.github.com/users/mahmed8003","html_url":"https://github.com/mahmed8003","followers_url":"https://api.github.com/users/mahmed8003/followers","following_url":"https://api.github.com/users/mahmed8003/following{/other_user}","gists_url":"https://api.github.com/users/mahmed8003/gists{/gist_id}","starred_url":"https://api.github.com/users/mahmed8003/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mahmed8003/subscriptions","organizations_url":"https://api.github.com/users/mahmed8003/orgs","repos_url":"https://api.github.com/users/mahmed8003/repos","events_url":"https://api.github.com/users/mahmed8003/events{/privacy}","received_events_url":"https://api.github.com/users/mahmed8003/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-09-05T18:41:48Z","updated_at":"2018-09-05T19:12:22Z","closed_at":"2018-09-05T19:12:22Z","author_association":"NONE","body":"There is strange situation, when I enter the value for Phone number after completing the above fields then app crashes. All the text fields are right aligned. And keyboardType = TextInputType.text. But for phone number field keyboardType is TextInputType.phone.\r\nIf I change the keyboardType: to TextInputType.text then it works fine.\r\n\r\n![screenshot_2018-09-05-23-19-33-088](https://user-images.githubusercontent.com/1140343/45113283-5faf4200-b163-11e8-83d7-034799b2354c.jpeg)\r\n\r\n\r\nError: \r\n```\r\nFatal Exception: java.lang.IndexOutOfBoundsException: replace (0 ... -1) has end before start\r\n       at android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java:1258)\r\n       at android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:515)\r\n       at android.text.SpannableStringBuilder.delete(SpannableStringBuilder.java:230)\r\n       at android.text.SpannableStringBuilder.delete(SpannableStringBuilder.java:229)\r\n       at io.flutter.plugin.editing.InputConnectionAdaptor.sendKeyEvent(InputConnectionAdaptor.java:163)\r\n       at com.android.internal.view.IInputConnectionWrapper.executeMessage(IInputConnectionWrapper.java:440)\r\n       at com.android.internal.view.IInputConnectionWrapper$MyHandler.handleMessage(IInputConnectionWrapper.java:93)\r\n       at android.os.Handler.dispatchMessage(Handler.java:102)\r\n       at android.os.Looper.loop(Looper.java:154)\r\n       at android.app.ActivityThread.main(ActivityThread.java:6119)\r\n       at java.lang.reflect.Method.invoke(Method.java)\r\n       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)\r\n       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)\r\n```"}}
{"actor":{"display_login":"jonahwilliams"}}