|
2 | 2 |
|
3 | 3 | An Android implementation of [`camera`][1] that uses the [CameraX library][2].
|
4 | 4 |
|
5 |
| -*Note*: This package is under development, so please note the |
6 |
| -[missing features and limitations](#limitations), but |
7 |
| -otherwise feel free to try out the current implementation and provide any |
8 |
| -feedback by filing issues under [`flutter/flutter`][5] with `[camerax]` in |
9 |
| -the title, which will be actively triaged. |
| 5 | +*Note*: This implementation will become the default implementation of `camera` |
| 6 | +on Android by May 2024, so **we strongly encourage you to opt into it** |
| 7 | +by using [the instructions](#usage) below. If any of [the limitations](#limitations) |
| 8 | +prevent you from using `camera_android_camerax` or if you run into any problems, |
| 9 | +please report these issues under [`flutter/flutter`][5] with `[camerax]` in |
| 10 | +the title. |
10 | 11 |
|
11 | 12 | ## Usage
|
12 | 13 |
|
13 |
| -This package is [non-endorsed][3]; the endorsed Android implementation of `camera` |
14 |
| -is [`camera_android`][4]. To use this implementation of the plugin instead of |
15 |
| -`camera_android`, you will need to specify it in your `pubspec.yaml` file as a |
16 |
| -dependency in addition to `camera`: |
| 14 | +To use this plugin instead of [`camera_android`][4], run |
17 | 15 |
|
18 |
| -```yaml |
19 |
| -dependencies: |
20 |
| - # ...along with your other dependencies |
21 |
| - camera: ^0.10.4 |
22 |
| - camera_android_camerax: ^0.5.0 |
| 16 | +```sh |
| 17 | +$ flutter pub add camera_android_camerax |
23 | 18 | ```
|
24 | 19 |
|
| 20 | +from your project's root directory. |
| 21 | + |
25 | 22 | ## Limitations
|
26 | 23 |
|
27 | 24 | ### 240p resolution configuration for video recording
|
|
0 commit comments