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

How to apply to entire Screen with multiple Text elements? #230

Open
padrecedano opened this issue Jul 31, 2024 · 0 comments
Open

How to apply to entire Screen with multiple Text elements? #230

padrecedano opened this issue Jul 31, 2024 · 0 comments

Comments

@padrecedano
Copy link

Thanks for this library.

In my application I use a lot of text with different formats, colors, etc. To make rendering easier I have created several functions that format that text and display it on the screen as separate Text elements.

Is there a way to zoom all the Text elements on that screen, or do I have to put all the content into a single Text element?

Something like:

@Composable
fun MyScreen(
    data: contentData,
    userData: UserDataDynamic,
) {
    PinchToZoomRoot {
        Column {
            CustomTextA(text=contentData.a, userData=userData)
            CustomTextB(text=contentData.b, userData=userData)
            CustomTextC(text=contentData.c, userData=userData)
        }
     }
 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant