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

Transform.scale #419

Closed
JuanLuisNL opened this issue Nov 17, 2023 · 2 comments
Closed

Transform.scale #419

JuanLuisNL opened this issue Nov 17, 2023 · 2 comments

Comments

@JuanLuisNL
Copy link

I have a windows application, I want to apply a "Transform.scale" to the whole application for accessibility (zoom) and to adapt to small monitors (reduce). It works fine in the whole app except for the first screen. Is it possible to do something?

runApp(Transform.scale(scale: 0.8, child: const MyApp()));

Captura

@TomKrauss
Copy link

How about the following solution? (Of course you need to apply the scale factor to the window size also):

FractionallySizedBox(
      heightFactor: 1 / scaleFactor
      widthFactor: 1 / scaleFactor,
      child: Transform.scale(
        scale: scaleFactor,
        child:  MyApp()

@JuanLuisNL
Copy link
Author

Thank you very much.
Now it is working fine!
image

@lijy91 lijy91 closed this as completed Jun 5, 2024
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

3 participants