pd_load_state 1.1.1
pd_load_state: ^1.1.1 copied to clipboard
Flutter plugin for request load states (loading/error/empty/success) with enhanced UI, multi-platform support and generic data carrying.
Changelog #
This document records all important changes to the pd_load_state plugin.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.1.1 #
Release date: 2026-07-13
๐ Documentation Improvements #
- ๐ English Documentation - Updated all documentation to English:
README.md- Full English translationCHANGELOG.md- Full English translation with unified date formatlib/pd_load_state.dart- Library documentation comments translated to English
- ๐ Date Format Unification - All release dates formatted on separate lines
- ๐ท๏ธ Version Number Update - Updated version references in documentation
- โ Backward Compatibility - No API changes, documentation-only update
1.1.0 #
Release date: 2026-07-06
๐ Documentation Refactoring #
- ๐ Documentation Split - Split detailed usage instructions from README.md into separate documents, placed in the
doc/directory - ๐ New Documentation Files - Added 6 functional module documents:
basic_usage.md- Basic Usage Guidedata_generics.md- Generic Data Carryingapi_reference.md- Complete API Documentationconfiguration.md- Global Configurationi18n.md- Internationalization Supportenhanced_ui.md- Enhanced UI
- โจ README Simplification - README.md simplified to 93 lines, keeping only core information as the pub.flutter-io.cn landing page
- ๐ Documentation Links - Added complete documentation directory links in README.md for easy navigation
๐ฆ Version Upgrade #
- ๐ท๏ธ Version Number Update - Upgraded to 1.1.0
- โ Backward Compatibility - All APIs are fully backward compatible
๐งช Testing Verification #
- โ Test Coverage - All 84 unit tests passed
- โ
Code Quality - Passed
flutter analyzecheck with no errors in core library
1.0.0 #
Release date: 2026-07-06
๐ Major Release #
- โจ Version Upgrade - Plugin officially upgraded to version 1.0.0, API is stable and complete
- ๐ Backward Compatibility - All APIs from previous versions are fully compatible, no code changes required
๐งช Testing Coverage #
- ๐ Complete Unit Tests - Added 84 unit tests covering all core functionalities:
pd_load_state_enum_test.dart- Enum extension method tests (9)pd_load_state_base_test.dart- State transition tests (14)pd_load_state_test.dart- Generic data carrying tests (11)pd_load_state_manager_test.dart- Stream lifecycle tests (7)pd_load_state_configure_test.dart- Global configuration tests (8)pd_progress_state_test.dart- Progress management tests (15)pd_load_state_layout_test.dart- Widget rendering tests (20)
- โ Test Pass Rate - All 84 tests passed
- ๐ก๏ธ Code Quality - Passed
flutter analyzeandflutter_lintschecks
๐ Release Preparation #
- ๐ท๏ธ Version Number Update -
pubspec.yamlversion upgraded to 1.0.0 - ๐ Category Tags - Added
topicsfield (state-management, loading, ui, flutter-plugin) - ๐ Link Improvement - Added
issue_trackerfield, improvedhomepageandrepositorylinks - ๐ Documentation Sync - Updated version references in README.md and library comments
- ๐ Internationalization Support - Improved Chinese/English internationalization documentation
๐ฆ API Stability #
- ๐ฏ Core Classes Stable -
PDLoadState<T>,PDLoadStateLayout<T>,PDLoadStateConfigureinterfaces are stable - โก Generic Support - Complete generic data carrying capability with strong type data transfer
- ๐ Internationalization - Complete i18n support with Chinese and English
- โฟ Accessibility - Complete semantic support to improve accessibility
0.4.0 #
Release date: 2026-07-03
๐ Documentation Updates #
- ๐ Complete Documentation Comments - Added detailed dartdoc documentation comments for all classes, functions, and properties
- ๐ API Documentation Improvement - Covered all public APIs of core classes (PDLoadState, PDLoadStateLayout, PDLoadStateConfigure, etc.)
- ๐ Type Definition Documentation - Added documentation comments for all typedef type definitions
- ๐ง Private Component Documentation - Added documentation comments for private animation components of enhanced UI
- ๐ Internationalization Documentation - Added complete documentation comments for i18n related classes
- โฟ Accessibility Documentation - Added documentation comments for PDAccessibilityUtils utility class
- ๐ Progress Management Documentation - Added documentation comments for PDProgressState and PDProgressController
๐ง Improvements #
- โจ Code Maintainability - Comprehensive documentation comments improved code readability and maintainability
- ๐ฏ Developer Experience - Complete API documentation supports IDE auto-completion and documentation hints
- ๐ฆ Release Preparation - Documentation coverage reaches 100%, meeting pub.flutter-io.cn release requirements
0.3.0 #
Release date: 2026-07-03
๐ฏ New Features #
- ๐ฆ Generic Data Carrying -
PDLoadState<T>supports generic data carrying, allowing strongly-typed data to be passed in success state - ๐ง Dual Builder Design - Added
dataBuilderparameter for success view building with data, fully backward compatible with old API - ๐จ Abstract Base Class Refactoring - Added
PDLoadStateBaseabstract base class,PDLoadState<T>inherits from base class with Stream broadcasting support - ๐ Type Definition Extension - Added
PDDataWidgetBuilder<T>type definition for data-carrying view builders - โก typedef Convenience Alias - Added
PDLoadStateVoidas a convenience alias forPDLoadState<void>
๐ง Improvements #
- ๐ API Documentation Update - Updated documentation comments for all public APIs including generic data carrying usage instructions
- ๐ฏ Example Project Enhancement - Added
DataDemoPagedemonstration page showing single data and collection data carrying usage - ๐ Stream Type Optimization -
_LoadStateManagerStream usesPDLoadStateBasetype, compatible with generic subclasses - ๐ Code Structure Optimization - Refactored state management architecture to support generic extension and type safety
๐ Backward Compatibility #
- โ
Fully Compatible - Old API
builder: (context) => ...continues to work without modifications - โ
Seamless Upgrade - New
dataBuilderis optional, users can selectively use new features - โ
Type Inference - Auto-inferenced as
dynamicwhen generic is not specified, maintaining backward compatibility
๐ฆ Example Project Update #
- ๐ Data Carrying Demonstration - Added
data_demo.dartdemonstrating single data and collection data carrying usage - ๐ฎ Navigation Entry - Added navigation button for data carrying demonstration on main page
0.2.5 #
Release date: 2026-06-17
๐ง Improvements #
- ๐ท๏ธ Naming Convention Unification - Renamed
PdLoadStateConfiguretoPDLoadStateConfigure, unified all class prefixes toPD - โจ Code Consistency - Improved code readability and user experience, avoiding user confusion between
PDandPdprefixes
0.2.4 #
Release date: 2026-06-17
๐ง Improvements #
- ๐ Documentation Comments Improvement - Added complete dartdoc comments for all public APIs, documentation coverage reaches 98.7%
- ๐งช Test Utility Class - Added
PDLoadStateTestUtilspublic test utility class supporting resource release and state reset during testing - ๐ฏ Enum Extensions - Added convenient extension methods for
PDLoadStateEnum(description,isLoading,isSuccess, etc.) - ๐ API Documentation Optimization - Improved documentation comments for all classes, methods, and properties to enhance pana score
0.2.3 #
Release date: 2026-06-17
๐ง Improvements #
- โก State Manager Optimization - Introduced global lazy-loaded manager
_LoadStateManagerwith StreamController auto-cleanup mechanism - ๐งน Memory Management Improvement - Optimized global Stream lifecycle management to avoid potential memory leak risks
- ๐๏ธ Code Structure Optimization - Separated state manager into individual file
pd_load_state_manager.dartto improve code maintainability - โจ Test Friendliness - Provided
dispose()method to support state reset during testing
0.2.2 #
Release date: 2026-06-08
๐ง Improvements #
- โก Refresh Logic Optimization - Optimized
_updatestate update logic to avoid double rebuild caused by repeated triggering in specific scenarios
0.2.1 #
Release date: 2025-08-26
๐ Documentation Updates #
- ๐ Documentation Optimization - Updated and improved project documentation
- ๐ง Version Information Sync - Synced version-related information
0.2.0 #
Release date: Unknown
๐จ New Features #
- โจ Enhanced UI Design - Added modern loading animations, elegant gradient effects, and smooth state transitions
- ๐ฌ Animation Effects - Supports rotating loading animations, pulsing error prompts, gradient state transitions, and rich visual effects
- ๐ฑ Multi-platform Support - Complete support for Android, iOS, Web, macOS, Windows, and Linux platforms
- ๐ฏ Platform Demonstration - Added platform-specific feature demonstration pages showing optimized features for different platforms
- ๐ SVG Demonstration Image - Created animated SVG file to visually demonstrate various state effects of the plugin
๐ง Improvements #
- ๐ Documentation Improvement - Added enhanced UI usage guide and complete example project documentation
- ๐๏ธ Code Structure - Refactored component architecture, separating default UI and enhanced UI components
- ๐๏ธ Configuration Options - Added
useEnhancedUIconfiguration option for one-click enhanced design activation - ๐ State Management - Optimized state switching logic for smoother user experience
๐ฆ Example Project #
- ๐ Complete Example - Created complete Flutter example project including mobile and desktop platforms
- ๐ฎ Interactive Demonstration - Supports random state demonstration, fixed state switching, and custom UI display
- ๐ Usage Guide - Provided detailed quick start guide and best practices
0.1.4 #
Release date: Unknown
- Parameter validation, naming, and other optimizations.
0.1.3 #
Release date: Unknown
- Modified software license agreement to use standard MIT license.
0.1.2 #
Release date: Unknown
- Fixed resources that pub.flutter-io.cn can link to, improving project transparency and accessibility.
0.1.1 #
Release date: Unknown
- Fixed documentation links.
0.1.0 #
Release date: Unknown
- Modified software license agreement to comply with MIT license standard specification.
0.0.8 #
Release date: Unknown
- Fixed documentation links.
0.0.7 #
Release date: Unknown
- Added some
debuginformation forPDLoadStateLayoutobject.
0.0.6 #
Release date: Unknown
- Fixed the issue where
loadingWidgetBuilderinPdLoadStateConfigureclass could not work properly.
0.0.5 #
Release date: Unknown
- Reverted changes from version
0.0.4, re-addedpadding,width,heightand other properties inPDLoadStateLayoutclass.
0.0.4 #
Release date: Unknown
- Fixed global state view issues in
PdLoadStateConfigureclass. - Added more usage instructions in
READMEfile. - Removed
padding,width,heightand other properties fromPDLoadStateLayoutclass, leaving them to parent components.
0.0.3 #
Release date: Unknown
- Fixed naming duplication issue in
pd_load_state_configure.dartfile.
0.0.2 #
Release date: Unknown
- Fixed warning issues in
pd_load_state_widget.dartfile. - Added remote repository address.
0.0.1 #
Release date: Unknown
- First test version of the package.