简体   繁体   English

如何在 Flutter 中将相机预览设置为全屏?

[英]How to set Camera Preview to full screen in Flutter?

I am using the camera 0.9.4+5 package.我正在使用相机 0.9.4+5 package。 I think the Camera Preview's size and aspect ratio of the package has been changed.我认为 package 的相机预览的大小和纵横比已经改变。 Please let me know how to set the Camera Preview to full screen without stretch.请让我知道如何将相机预览设置为全屏而不拉伸。 Thank you.谢谢你。

For now the only solution in my mind is to make the package local and removed it from yaml file and then make the aspect ratio according to your will:)目前我认为唯一的解决方案是将 package 设为本地并将其从 yaml 文件中删除,然后根据您的意愿制作纵横比:)

did you manage to find a solution?您设法找到解决方案吗? I'm having the same problem我有同样的问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM