path_provider_tizen

The Tizen implementation of path_provider.

Usage

This package is not an endorsed implementation of path_provider. Therefore, you have to include path_provider_tizen alongside path_provider as dependencies in your pubspec.yaml file.

dependencies:
  path_provider: ^1.6.10
  path_provider_tizen: ^1.0.0

Then you can import path_provider in your Dart code:

import 'package:path_provider/path_provider.dart';

For detailed usage, see https://github.com/flutter/plugins/tree/master/packages/path_provider/path_provider#usage.

Required privileges

  • To access paths returned by

    • getExternalStoragePaths
    • getDownloadsPath

    add below lines under the <manifest> section in your tizen-manifest.xml file,

    <privileges>
      <privilege>http://tizen.org/privilege/mediastorage</privilege>
    </privileges>
    

    and also acquire Permission.accessMediaLocation using the permission_handler plugin (to be available soon). The permission is already granted on TV devices by default.

  • To access paths returned by

    • getExternalDataPath
    • getExternalCachePath

    add below lines under the <manifest> section in your tizen-manifest.xml file.

    <privileges>
      <privilege>http://tizen.org/privilege/externalstorage.appdata</privilege>
    </privileges>
    

Libraries

path_provider_tizen