Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions flutter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@
A USB Video Class (UVC) camera plugin for Flutter based on [UVCCamera](https://uvccamera.org) library for Android,
brought to you by [Alexey Pelykh](https://alexey-pelykh.com).

## Compatibility

**Flutter 3.29.2+ is strongly recommended.** Flutter 3.27–3.28 enabled Impeller by default on Android, which causes
black screens on some devices (MediaTek/PowerVR GPUs). This was fixed in Flutter 3.29.0 with automatic GLES fallback
(and a crash fix in 3.29.2). If you use Flutter 3.27.x–3.28.x and experience a black screen, disable Impeller:

```xml
<meta-data android:name="io.flutter.embedding.android.EnableImpeller" android:value="false" />
```

Flutter 3.24–3.26 users are unaffected (Impeller was not default on Android).

## Usage

The plugin's API is intentionally kept similar to the [camera](https://pub.dev/packages/camera) package. See the
Expand Down
2 changes: 1 addition & 1 deletion flutter/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: "Demonstrates how to use the uvccamera plugin."
publish_to: none

environment:
sdk: ^3.7.0
sdk: ">=3.5.0 <4.0.0"

dependencies:
flutter:
Expand Down
4 changes: 2 additions & 2 deletions flutter/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ platforms:
android:

environment:
sdk: ^3.7.0
flutter: ">=3.29.2"
sdk: ">=3.5.0 <4.0.0"
flutter: ">=3.24.0"

dependencies:
flutter:
Expand Down
Loading