Open egncndr opened 3 years ago
I am also having this issue. Exactly as described.
I am also having this issue, does this have something to do with locales?
I am also having this issue, does this have something to do with locales?
After looking further into it, I believe it is caused when the date entered has a removable '0' in it. For example if the user types in '11/04/21' the zero next the four can be removed. At some point (I forget exactly where and I am not near my pc) when converting the string to a date time object, these unnecessary 0's get removed.
After this happens the code tries to move the text editing selector to the end of the string. The only problem is that it uses the length of the string before the 0's were removed. Trying to move the selection pointer past the end of the string causes the exception in question. "PlatformException(error, invalid selection start: 10"
I actually found and fixed the bug but my documentation wasn't good enough so the flutter team rejected my PR.
@SherlockShoe can confirm, it works if I abstain from leading zeroes
Just found this issue by googling. It happens in my app even though I don't use this package, so it must be Flutter's bug. @SherlockShoe could you link the PR that was rejected? Maybe we can get it to be approved.
I can't seem to find the code. I initially made an issue to link to but maybe I never submitted the code fix. https://github.com/flutter/flutter/issues/80571
The issue was something compressing the date string on the dart side and then asking the platform side to move the cursor to index 10.
Hello,
Im seeing some error in the logs (Please see error below) while manually inputing date via the date picker text box. Below are the steps to reproduce.
Steps to reproduce:
After pressing Ok, the logs below will show.
Although my app is functioning just wondering what is the cause of the said error.
Thanks Eugene
Error:
Code Implementation