The Tizen implementation of camera
.
This plugin is currently experimental and does not support any devices.
To use this plugin, add below lines under the <manifest>
section in your tizen-manifest.xml
file.
<privileges>
<privilege>http://tizen.org/privilege/camera</privilege>
<privilege>http://tizen.org/privilege/recorder</privilege>
</privileges>
This package is not an endorsed implementation of camera
. Therefore, you have to include camera_tizen
alongside camera
as dependencies in your pubspec.yaml
file.
dependencies:
camera: ^0.9.4
camera_tizen: ^0.3.4
Then you can import camera
in your Dart code:
import 'package:camera/camera.dart';
For detailed usage, see https://pub.dev/packages/camera#example.
For the camera preview to rotate correctly, you have to modify the CameraPreview
class (camera_preview.dart
) as follows.
Widget _wrapInRotatedBox({required Widget child}) {
// if (kIsWeb || defaultTargetPlatform != TargetPlatform.android) {
// return child;
// }
return RotatedBox(
quarterTurns: _getQuarterTurns(),
child: child,
);
}