The Tizen implementation of image_picker
.
To use this plugin, add image_picker
and image_picker_tizen
as dependencies in your pubspec.yaml file.
dependencies:
image_picker: ^0.8.4
image_picker_tizen: ^2.1.0
Then you can import image_picker
in your Dart code.
import 'package:image_picker/image_picker.dart';
final ImagePicker picker = ImagePicker();
final XFile? image = await picker.pickImage(source: ImageSource.gallery);
For detailed usage, see https://pub.dev/packages/image_picker#example.
- Galaxy Watch series (running Tizen 5.5 or later)
-
ImagePicker.pickImage
(onlyImageSource.gallery
is available assource
) -
ImagePicker.pickMultiImage
-
ImagePicker.pickVideo
(no file manager app available) -
ImagePicker.retrieveLostData
(Android-only)
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>