Feature/widget improvement to make copy codes easier #187
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation:
In current interaction with the widget, user has to tap the row first, then tap the tiny copy icon, which is kind of small and hard to reach compare with the first move

also the copy icon would be omitted and unable to be accessed when the widget's width is smaller than 3 columns
What changed
I add a new ActionCallback named
CopyAndToggleAction, so the callback become,The
CopyToClipboardAction.ktand the copy icon when revealed are removedTests
I saw the guideline requires tests for the changes and test manually on my Pixel 4a 5G and Pixel 9, please let me know if it has to be tested more thoroughly
Request for Comments
well this might should be a independent bug report, but I want to bring it up since this PR might deal with it at the same time
screen-20250224-172740.4.mp4
Even in the current release version, the widget would redrawn entirely sometime, so the users have to scroll down to the code they again which is a bit annoying.
I'm thinking maybe I can swap the action when tapping on the row, so it will copy on reveal, it makes the steps user require even less, but con is for users who just want to check codes on phone and enter it in his laptop this might be a bit rude.
Please let me know if anything need me to fix, or I missed something in the guideline, thanks!