Этот репозиторий содержит Flutter плагины для платформы ОС Аврора.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Vitaliy Zarubin d612b55b2c [update] Update flutter-plugins to 3.13.5 Flutter SDK 1 year ago
..
lib [flutter-plugins] Update copyright 1 year ago
.gitignore [path_provider] Implement path_provider plugin. OMP#OS-16308 2 years ago
README.md [publication] Update dependencies git url 1 year ago
analysis_options.yaml [flutter-plugins] Update copyright 1 year ago
pubspec.yaml [update] Update flutter-plugins to 3.13.5 Flutter SDK 1 year ago

README.md

path_provider_aurora

The Aurora OS implementation of path_provider. Documentation for setting permissions can be found here.

Usage

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

pubspec.yaml

dependencies:
  path_provider: ^2.0.15
  path_provider_aurora:
    git:
      url: https://gitlab.com/omprussia/flutter/flutter-plugins.git
      ref: master
      path: packages/path_provider/path_provider_aurora

*.dart

import 'package:path_provider/path_provider.dart';

final Directory tempDir = await getTemporaryDirectory();

final Directory appDocumentsDir = await getApplicationDocumentsDirectory();

final Directory? downloadsDir = await getDownloadsDirectory();

Supported APIs

  • getTemporaryDirectory - Directory location where user-specific non-essential (cached) data should be written
  • getApplicationSupportDirectory - Directory where the application may place application support files.
  • getLibraryDirectory
  • getApplicationDocumentsDirectory - Directory containing user document files.
  • getExternalStorageDirectory
  • getExternalCacheDirectories
  • getExternalStorageDirectories - There is no concept of External in Aurora OS, but this interface allows you to get the pictures/music/movies directory
  • getDownloadsDirectory- Directory for user's downloaded files.