flutter_nextcloud 0.7.1
flutter_nextcloud: ^0.7.1 copied to clipboard
A Flutter package for browsing, downloading, and managing files from Nextcloud servers via WebDAV protocol.
0.7.1 #
Bug Fixes #
- Fixed subdirectory navigation (404 Error)
- Resolves an issue where opening folders would result in a 404 error due to incorrect path construction.
- Updated path handling to correctly support custom WebDAV base paths (e.g.,
/remote.php/dav/files/user/).
Improvements #
- Robust path parsing
- Use
Uri.parse().pathfor reliable path extraction and comparison. - Properly filter "current directory" item regardless of the server path configuration.
- Use
0.7.0 #
Bug Fixes #
- Fixed Base64 encoding issue that caused authentication failures with Nextcloud servers
- Used explicit
Uint8List.fromList()andbase64.encode()for proper byte handling - Ensures correct encoding of app passwords with special characters
- Used explicit
Improvements #
- Added OCS-APIRequest header for proper Nextcloud API compatibility
- Added Accept header for JSON responses during authentication
- Improved error messages for authentication failures (401 Unauthorized)
- Better guidance for users with 2FA enabled (App Password required)
Maintenance #
- Removed all debug print statements from production code
- Cleaned up example app (removed hardcoded test credentials)
0.6.0 #
New Features #
- Exposed Core API: You can now use
NextcloudServicedirectly to build your own custom UI. - Added
connect()method: New method inNextcloudServiceto verify connection and credentials. - Upload Progress:
uploadFilenow supports anonProgresscallback. - Custom UI Example: Added a comprehensive example demonstrating how to use the API directly.
0.4.0 #
Quality Improvements #
- Removed all debug print statements from production code for better pub.dev score
- Removed 86 print statements across all library files
- Code now passes static analysis with minimal warnings
- Updated dependencies to support latest stable versions:
file_picker: Updated constraint from^8.1.2to^10.0.0(now supports latest 10.3.3)
- Improved code quality and linting compliance
- Fixed unused variable warnings
Breaking Changes #
None - this is a quality improvement release.
0.3.0 #
Documentation & Formatting #
- Fixed formatting and indentation in documentation files
- Fixed indentation in example app Info.plist files for consistency
- Fixed formatting in AndroidManifest.xml files
- Improved documentation readability
0.2.0 #
Breaking Changes #
- Removed automatic permission handling: The package no longer automatically requests storage permissions. Users must now handle permission requests in their own app before using download/upload features. This provides better control and transparency for app developers.
- Removed
permission_handlerdependency from the package
Migration Guide #
To update from 0.1.0 to 0.2.0:
- Add
permission_handler: ^11.0.1to your app'spubspec.yaml - Add required permissions to
AndroidManifest.xmlandInfo.plist(see README) - Request permissions before downloading/uploading files (see EXAMPLES.md for complete implementation)
Why This Change? #
Moving permission handling to the app level:
- Gives developers full control over permission UX flow
- Allows customization of permission prompts and messaging
- Makes the package more transparent about its requirements
- Follows Flutter plugin best practices
See README.md and EXAMPLES.md for detailed implementation guides.
0.1.0 #
- Initial release
- Support for browsing Nextcloud directories
- Download files from Nextcloud
- Upload files to Nextcloud
- Create folders
- Delete files and folders
- Rename files and folders
- Support for public shares and authenticated accounts
- Cross-platform support (iOS, Android, Web, Desktop)
- WebDAV protocol implementation
- Pre-built UI screens for configuration and browsing