flutter_license_manager 3.0.0
flutter_license_manager: ^3.0.0 copied to clipboard
A comprehensive Flutter package for managing and displaying OSS license information with support for custom licenses and improved UI components.
Changelog #
3.0.0 #
BREAKING CHANGES #
- Removed
packageNames,isMultiplePackages, andpackageCountgetters fromOssLicenseInfo. Each record represents exactly one package — the loader already explodes multi-package registry entries into separate records — so these comma-splitting getters described states the package never produced. UsepackageNamedirectly. OssLicenseInfo.licenseCountis now a derived getter, and the optionallicenseCountconstructor parameter was removed. It was alwayslicenseTexts.length; the parameter only allowed it to desync. Construct withpackageNameandlicenseTextsonly.
Changed #
- Consolidation now removes exact-duplicate license texts within a package: verbatim repeats are collapsed while distinct texts are preserved in order.
licenseCountandhasMultipleLicensesreflect the deduplicated set.
Migration #
license.packageNames→[license.packageName]license.isMultiplePackages→ alwaysfalse(remove the branch)license.packageCount→ always1
2.0.1 #
Fixed #
- Fixed license text display issue where Carriage Return (
\r) characters were not properly handled - License text now correctly converts
\r\nto\nand standalone\rto\n - Resolved problem where license text appeared as one long line instead of properly formatted paragraphs
2.0.0 #
BREAKING CHANGES #
- Changed
licenseTexttolicenseTexts(List
Added #
- Support for multiple license texts per package
hasMultipleLicensesgetter inOssLicenseInfo- Proper UI separation with Flutter
Dividerwidgets - Dialog-based license viewing in example app
Changed #
- License text display from text separators to UI widgets
- Example app UI from expandable cards to dialogs
- Improved performance with on-demand loading
Removed #
- Text-based license separators (
─× 50) - Expandable card implementation in example