Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Root797483yBecause people expect the front camera to be mirrored, but not the back. Think about the typical use case.
-
gof6yogy233y@killames It's Dart; notice the async isn't at the front of the function declaration but instead between argument list and opening brace. BuildContext is the class used to access information Flutter provides you with when building widgets.
-
Mate, 8f you think you are done then grab yourself a cold one and listen to this:
Yes, you are on the right track that collected image from the front camera is mirrored, however that is not fixed. A stock camera app also provides a setting to turn it off (mirrored by default). And on top of that my research led me to believe that on OS level a OEM (eg. Samsung, OnePlus etc) can be also define their own defaults. So your code needs a few more checks to cover most cases. Sadly, the raw image given to the app does not have a flag whether the image has been flipped so until that's available (if ever) you can only achieve "best effort" -
@iiii Then it would be counter intuitive. We are not used to seeing our front self.
-
Lasoloz5043y@Cyanide Lot of the times you have to handle both things. For example in MS Teams (and I guess other video messaging apps do the same) you see yourself mirrored, but the other participants see you normally, without mirroring. So I think it is a totally valid usecase.
-
The preview of front camera image should be mirrored by default, but there should be an option to disable mirroring. The captured images should never be mirrored. Any other implementation is fucked up and should be disposed.
Can I git commit? 🙂
rant