default_path_provider is a flutter plugin that can provide you the path of android's default directories like Downloads, Pictures, DCIM, etc.
- Note: This plugin can work only in Android as of now!
- Add default_path_provider as a dependency in your pubspec.yaml file.
- Handle Read/Write permission in your flutter app. You can use flutter plugins like permission_handler.
import 'package:default_path_provider/default_path_provider.dart'; String dirPath = await DefaultPathProvider.getDownloadDirectoryPath;
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update the tests as appropriate.