Skip to content
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

Explore exposing InspectorInfo in the rendering/filtering API. #109

Open
2 tasks
zach-klippenstein opened this issue Oct 26, 2020 · 1 comment
Open
2 tasks
Labels
compose enhancement New feature or request

Comments

@zach-klippenstein
Copy link
Collaborator

There is an effort ongoing right now to add InspectorInfo modifiers to all modifiers that describe their values in a human-readable way for some sort of debugger (presumably the LayoutInspector in Android Studio?). This is exactly the sort of information that could be useful for Radiography to render.

There's an example CL that adds this to a modifier here.

Action items:

  • Figure out how this info is stored in the slot table and how to extract it.
  • Is this information actually worth surfacing explicitly somehow in the Radiography API? (E.g. in ComposeView somehow.) Should it replace exposing modifiers entirely? Are more type-safe modifiers still a better API for reflectively selecting and rendering type-safe data?

Note that even if this does provide a better source of debug data going forward, it will only be available on newer versions of Compose for some time, so Radiography will need to support both for at least a few releases.

@zach-klippenstein zach-klippenstein added enhancement New feature or request compose labels Oct 26, 2020
@pyricau
Copy link
Contributor

pyricau commented Oct 27, 2020

NOICE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compose enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants