New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to edit particular digit and change it to new value without deleting other digits? #92
Comments
Hi, good idea, but that's not possible with current implementation. |
Any workaround you can suggest, to change in library to accomplish it? it will be really helpful just any hint |
selected index should return the position of the cursor Flutter_Pinput/lib/src/pinput_state.dart Line 68 in 48e7a7a
int get selectedIndex => _effectiveController.selection.baseOffset;
And when you tap on individual boxes you have to change the cursor position respectively
|
Thank you very much for such prompt reply
this line should changed in _semanticsOnTap right ? just tell me how to get the tapped index |
Nope, you should add onTap callback in _PinItem with GestureDetector Flutter_Pinput/lib/src/pinput_state.dart Line 456 in 48e7a7a
|
Its not working. Firstly I want to be able to select any field and change its value. So when its empty it showing error as there no text yet written. |
What I wrote was not the whole solution, just the way I imagined implementing it, I will to add the feature ASAP, but can't tell you the deadline RN. Update: |
Oh ok , thanks for trying will think of different way |
Any update on this feature? @Tkko ? |
@nicks258 Nothing so far, my weekends are pretty busy these days 🫢, If anyone is available to implement this feature I'd be happy review and merge the PR |
How about now? Thanks.@Tkko |
I want user to be able to edit any value in-between that is they should be able to click on particular field and edit it rather than deleting all the previous values to edit that place
How I can achieve this ?
The text was updated successfully, but these errors were encountered: