Skip to content

Commit 61f26af

Browse files
authored
[camera] Switch to internal method channel (#492)
1 parent 37a037a commit 61f26af

File tree

11 files changed

+708
-28
lines changed

11 files changed

+708
-28
lines changed

packages/camera/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.3.4
2+
3+
* Switch to an internal method channel implementation.
4+
15
## 0.3.3
26

37
* Apply new texture APIs.

packages/camera/README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ This package is not an _endorsed_ implementation of `camera`. Therefore, you hav
2626
```yaml
2727
dependencies:
2828
camera: ^0.9.4
29-
camera_tizen: ^0.3.3
29+
camera_tizen: ^0.3.4
3030
```
3131
3232
Then you can import `camera` in your Dart code:
@@ -39,17 +39,17 @@ For detailed usage, see https://pub.dev/packages/camera#example.
3939

4040
## Notes
4141

42-
For the camera preview to rotate correctly, you have to modify the `camera_preview.dart` file as follows.
42+
For the camera preview to rotate correctly, you have to modify the `CameraPreview` class (`camera_preview.dart`) as follows.
4343

4444
```dart
45-
Widget _wrapInRotatedBox({required Widget child}) {
46-
// if (defaultTargetPlatform != TargetPlatform.android) {
47-
// return child;
48-
// }
49-
50-
return RotatedBox(
51-
quarterTurns: _getQuarterTurns(),
52-
child: child,
53-
);
54-
}
45+
Widget _wrapInRotatedBox({required Widget child}) {
46+
// if (kIsWeb || defaultTargetPlatform != TargetPlatform.android) {
47+
// return child;
48+
// }
49+
50+
return RotatedBox(
51+
quarterTurns: _getQuarterTurns(),
52+
child: child,
53+
);
54+
}
5555
```

0 commit comments

Comments
 (0)