pd_load_state 1.1.1 copy "pd_load_state: ^1.1.1" to clipboard
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 translation
    • CHANGELOG.md - Full English translation with unified date format
    • lib/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 Guide
    • data_generics.md - Generic Data Carrying
    • api_reference.md - Complete API Documentation
    • configuration.md - Global Configuration
    • i18n.md - Internationalization Support
    • enhanced_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 analyze check 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 analyze and flutter_lints checks

๐Ÿ“‹ Release Preparation #

  • ๐Ÿท๏ธ Version Number Update - pubspec.yaml version upgraded to 1.0.0
  • ๐Ÿ“Œ Category Tags - Added topics field (state-management, loading, ui, flutter-plugin)
  • ๐Ÿ”— Link Improvement - Added issue_tracker field, improved homepage and repository links
  • ๐Ÿ“– 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>, PDLoadStateConfigure interfaces 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 dataBuilder parameter for success view building with data, fully backward compatible with old API
  • ๐ŸŽจ Abstract Base Class Refactoring - Added PDLoadStateBase abstract 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 PDLoadStateVoid as a convenience alias for PDLoadState<void>

๐Ÿ”ง Improvements #

  • ๐Ÿ“– API Documentation Update - Updated documentation comments for all public APIs including generic data carrying usage instructions
  • ๐ŸŽฏ Example Project Enhancement - Added DataDemoPage demonstration page showing single data and collection data carrying usage
  • ๐Ÿ”„ Stream Type Optimization - _LoadStateManager Stream uses PDLoadStateBase type, 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 dataBuilder is optional, users can selectively use new features
  • โœ… Type Inference - Auto-inferenced as dynamic when generic is not specified, maintaining backward compatibility

๐Ÿ“ฆ Example Project Update #

  • ๐Ÿš€ Data Carrying Demonstration - Added data_demo.dart demonstrating 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 PdLoadStateConfigure to PDLoadStateConfigure, unified all class prefixes to PD
  • โœจ Code Consistency - Improved code readability and user experience, avoiding user confusion between PD and Pd prefixes

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 PDLoadStateTestUtils public 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 _LoadStateManager with 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.dart to 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 _update state 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 useEnhancedUI configuration 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 debug information for PDLoadStateLayout object.

0.0.6 #

Release date: Unknown

  • Fixed the issue where loadingWidgetBuilder in PdLoadStateConfigure class could not work properly.

0.0.5 #

Release date: Unknown

  • Reverted changes from version 0.0.4, re-added padding, width, height and other properties in PDLoadStateLayout class.

0.0.4 #

Release date: Unknown

  • Fixed global state view issues in PdLoadStateConfigure class.
  • Added more usage instructions in README file.
  • Removed padding, width, height and other properties from PDLoadStateLayout class, leaving them to parent components.

0.0.3 #

Release date: Unknown

  • Fixed naming duplication issue in pd_load_state_configure.dart file.

0.0.2 #

Release date: Unknown

  • Fixed warning issues in pd_load_state_widget.dart file.
  • Added remote repository address.

0.0.1 #

Release date: Unknown

  • First test version of the package.
1
likes
150
points
103
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Flutter plugin for request load states (loading/error/empty/success) with enhanced UI, multi-platform support and generic data carrying.

Homepage
Repository (GitHub)
View/report issues

Topics

#state-management #loading #ui #flutter-plugin

License

MIT (license)

Dependencies

flutter

More

Packages that depend on pd_load_state