image_picker_tizen 1.0.0 image_picker_tizen: ^1.0.0 copied to clipboard
Flutter plugin for selecting images from the Tizen image library, and taking new pictures with the camera.
image_picker_tizen #
The Tizen implementation of image_picker
.
Usage #
To use this plugin, add image_picker
and image_picker_tizen
as dependencies in your pubspec.yaml file.
Example #
Import the library.
import 'package:image_picker/image_picker.dart';
Then invoke the static image_picker
method anywhere in your Dart code.
final picker = ImagePicker();
final pickedFile = await picker.getImage(source: ImageSource.gallery);
Limitations #
- This plugin is only supported on Galaxy Watch devices running Tizen 5.5 or later.
- The only API you can use is
getImage(source: ImageSource.gallery)
. You can't pick a video file (getVideo()
) or pick a file fromImageSource.camera
.
Required privileges #
To use this plugin, you need to declare privileges in tizen-manifest.xml of your application.
<privileges>
<privilege>http://tizen.org/privilege/mediastorage</privilege>
<privilege>http://tizen.org/privilege/appmanager.launch</privilege>
</privileges>