Flutter Camera Preview Blank - Android10
This post was migrated from Tistory. You can find the original here.
Environment
flutter: 3.29.0
camera: ^0.10.0+1
android 10
Problem
https://pub.dev/packages/camera
With the combination above, the camera plugin’s preview doesn’t render correctly.
There was no issue on Android 11 and above, so it seems like something is broken specifically on Android 10 and below.
The preview either doesn’t show up at all, or shows up as broken/corrupted graphics.
Solution
https://github.com/flutter/flutter/issues/165037
[[camera] Preview is blank on Samsung S9+ (Android 10) · Issue #165037 · flutter/flutter
Steps to reproduce Test 1: camera plugin version 0.10.6 dependency: camera_android version 0.10.9+16 Test 2: camera plugin version 0.11.1 dependency: camera_android_camerax version 0.6.14 Concrete …
github.com](https://github.com/flutter/flutter/issues/165037)
While digging through the issue, I found a comment from a contributor saying “We think this was fixed in 3.29.2.”
Updating to flutter 3.32.7 fixed the problem.
