proper_filesize 1.0.0
proper_filesize: ^1.0.0 copied to clipboard
Easily convert and format file sizes in your Dart applications. This library handles bytes, metric/binary units, and provides human-readable output for user interfaces, data processing, and more.
Changelog #
1.0.0 - 2025-01-12 #
Features #
- API Refactor: Refactored the API for improved usability and clarity.
- New Constructors: Introduced new constructors for creating
FileSizeobjects from bytes and specific units. - Unit Enum: Added
Unitenum for representing file size units (KB, KiB, MB, MiB, etc.). - BaseType Enum: Added
BaseTypeenum to distinguish between metric and binary bases. - FormatType Enum: Added
FormatTypeenum for specifying short or long format types. - Size conversion: Added a new method
toSizeto convert a size to another unit.
Updates #
- Examples: Updated examples to reflect the new API and features.
- README: Updated README with detailed usage instructions, examples, and badges.
- License: Updated copyright year in the license file.
- Test Suite: Added comprehensive unit tests for increased code reliability.
- Documentation: Generated API documentation for better developer experience.
- Linting: Added linter rules for improved code quality.
- pubspec.yaml: Updated package description.
Breaking Changes #
- The
ProperFilesizeclass has been replaced by theFileSizeclass. - The
generateHumanReadableFilesizeandparseHumanReadableFilesizemethods have been replaced by theFileSizeconstructors andtoStringmethod.
0.0.2 Documentation Update #
- Updates documentation
0.0.1 Initial Release #
- Initial release