Skip to content

Commit fb2b8a4

Browse files
authored
➖ Only allow camera_android before 0.10.9+4 (#254)
(To resolves) flutter/flutter#150549
1 parent 6c8235c commit fb2b8a4

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ that can be found in the LICENSE file. -->
66

77
See the [Migration Guide](guides/migration_guide.md) for breaking changes between versions.
88

9+
## 4.3.0
10+
11+
### Fixes
12+
13+
- Constraints `camera_android` version to resolves https://github.com/flutter/flutter/issues/150549.
14+
915
## 4.2.2
1016

1117
### Fixes

example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: wechat_camera_picker_demo
22
description: A new Flutter project.
3-
version: 4.2.2+34
3+
version: 4.3.0+35
44
publish_to: none
55

66
environment:

lib/src/widgets/camera_picker.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,12 @@ class CameraPicker extends StatefulWidget {
9292
primaryContainer: Colors.grey[900],
9393
secondary: themeColor,
9494
secondaryContainer: themeColor,
95-
background: Colors.grey[900]!,
9695
surface: Colors.grey[900]!,
9796
brightness: Brightness.dark,
9897
error: const Color(0xffcf6679),
9998
onPrimary: Colors.black,
10099
onSecondary: Colors.black,
101100
onSurface: Colors.white,
102-
onBackground: Colors.white,
103101
onError: Colors.black,
104102
),
105103
);

pubspec.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: wechat_camera_picker
2-
version: 4.2.2
2+
version: 4.3.0
33
description: |
44
A camera picker for Flutter projects based on WeChat's UI,
55
which is also a separate runnable extension to the
@@ -25,6 +25,7 @@ dependencies:
2525
wechat_picker_library: ^1.0.0
2626

2727
camera: ^0.10.0
28+
camera_android: '>=0.10.0 <0.10.9+4'
2829
camera_platform_interface: ^2.1.5
2930

3031
path: ^1.8.0

0 commit comments

Comments
 (0)