Этот репозиторий содержит 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 04f09e852d [xdga_directories] rm *.lock 2 years ago
..
aurora [xdga_directories] First commit 2 years ago
data [xdga_directories] Update preview 2 years ago
example [xdga_directories] rm *.lock 2 years ago
lib [path_provider_aurora] Update example apps, add fun in PathProviderAurora 2 years ago
src [xdga_directories] Add PathProviderAuroraPlugin 2 years ago
.gitignore [xdga_directories] rm *.lock 2 years ago
README.md [xdga_directories] update dependencies 2 years ago
analysis_options.yaml [xdga_directories] First commit 2 years ago
ffigen.yaml [xdga_directories] First commit 2 years ago
pubspec.yaml [xdga_directories] added new line 2 years ago

README.md

xdga_directories

A Dart package for reading directory path on Aurora OS.

Usage

This package can be used alone, but the best solution would be to use path_provider.

dependencies:
  xdga_directories:
    path: <path-to-unpacked-plugin>

Then you can import xdga_directories in your Dart code:

import 'package:xdga_directories/xdga_directories.dart' as xdga;

final appDataLocation = xdga.getAppDataLocation();
final cacheLocation = xdga.getCacheLocation();
final documentsLocation = xdga.getDocumentsLocation();
final downloadLocation = xdga.getDownloadLocation();
final musicLocation = xdga.getMusicLocation();
final picturesLocation = xdga.getPicturesLocation();
final genericDataLocation = xdga.getGenericDataLocation();
final moviesLocation = xdga.getMoviesLocation();

Supported APIs

  • getAppDataLocation - Returns a directory location where persistent application data can be stored.
  • getCacheLocation - Returns a directory location where user-specific non-essential (cached) data should be written.
  • getDocumentsLocation - Returns the directory containing user document files.
  • getDownloadLocation - Returns a directory for user's downloaded files.
  • getMusicLocation - Returns the directory containing the user's music or other audio files.
  • getPicturesLocation - Returns the directory containing the user's pictures or photos.
  • getGenericDataLocation - Returns a directory location where persistent data shared across applications can be stored.
  • getMoviesLocation - Returns the directory containing the user's movies and videos.

Preview example

preview.png