-
Notifications
You must be signed in to change notification settings - Fork 41
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
[Bug]: ApiVideoCameraPreview as Column element causes Exception: BoxConstraints forces an infinite height #56
Comments
Hi, You don't say anything about the |
Hi @ThibaultBee! Yes, I tried Also I've look for this error on stackoverflow, e.g. As far as I tried, wrapping (Also, this problem did not occur when I use version 1.0.7.) |
Do you have the same issue on Android? |
Have you tried |
Yes. We don't have Android device now... |
So the preview is trying to occupy the most space inside its container.
|
I also made a fix so it is not the case anymore. Could you test #58? |
Version
v1.2.0
Which operating systems have you used?
Environment that reproduces the issue
Is it reproducible in the example application?
Yes
RTMP Server
none
Reproduction steps
I want the camera preview to remain full screen when the keyboard is opened,
so I put it inside a SingleChildScrollView.
Replace example with the following to reproduce:
api.video-flutter-live-stream/example/lib/main.dart
Line 113 in 32b9f4c
Expected result
The width is fixed and it would be good if the height is also adjusted automatically.
Actual result
Additional context
ApiVideoCameraPreview()
needs to be wrapped withAspectRatio(aspectRatio: 9 / 16)
. However, when the device is in landscape orientation, the aspectRatio becomes incorrect.videoSize
andorientation
insideApiVideoCameraPreview
, could we put theAspectRatio
inside and build with the appropriate aspectRatio?Relevant logs output
No response
The text was updated successfully, but these errors were encountered: