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

android该方案的实现思路有对应的flutter解决方案吗 #449

Open
NanaXie opened this issue Aug 17, 2023 · 1 comment
Open

android该方案的实现思路有对应的flutter解决方案吗 #449

NanaXie opened this issue Aug 17, 2023 · 1 comment

Comments

@NanaXie
Copy link

NanaXie commented Aug 17, 2023

请求该方案类似百分比适配方案,在flutter的pub.dev有类似方案的三方插件吗?查看了flutter的适配方案比如sizer,但是这种屏幕适配方案还得手动计算每个控件的设计稿实际占用比例,感觉很不方便。想实现一套类似于楼主的这种解决方案,但是代码中直接写UI设计稿对应的dp尺寸,内部去计算具体的转化比例。

@JessYanCoding
Copy link
Owner

AndroidAutoSize 依赖于 Android View 绘制体系,flutter 不依赖于 Android 原生的 View 体系,而是自己通过 skia 引擎自己封装的一套渲染体系,所以百分比布局的实现思路和方向可能都是完全不一样的。

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

2 participants