Migrate AsyncDialogs
to Material 3
#16515
Draft
+33
−17
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.
Description
Currently the issue was that the colour of the checkbox was not matching with the APP theme
@color/material_light_blue_500
. Initially, my thought process was to add a style in the Theme to ensure the checkbox color matches the app theme. However, I later realized that migrating to Material3 would be a better approach, as it allows the checkbox color to adapt dynamically based on the app theme. Since we plan to migrate to Material3 eventually, this seems like the most forward-thinking solution.🌟 h/t to thank @SanjaySargam for helping inspire this solution with Changed color of Checkbox in AlertDialog #15184
🌟 h/t to thank @Thejas775 for helping inspire this solution with Changed color of the checkbox in alertdialog #16485
Fixes
Steps to Reproduce
Screenshot/Video
asyndialog.mp4
Approach
In the PR :)
Learning (optional, can help others)
https://github.com/material-components/material-components-android/blob/master/docs/components/Dialog.md
Checklist
Please, go through these checks before submitting the PR.