smart_fetch 1.0.4
smart_fetch: ^1.0.4 copied to clipboard
Beautiful full-screen error pages for server side errors and no internet connection state.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.0.4 2025-12-XX #
Fixed #
- Fixed Lottie asset loading by using correct package asset paths
- Added fallback icons for all error screens when Lottie assets fail to load
- Added asset configuration section to README with troubleshooting guide
- Fixed asset paths in all error screens (NoInternetScreen, ServerErrorScreen, TimeoutScreen)
Changed #
- Updated asset paths to use package prefix for proper asset resolution
- Improved error handling with fallback UI when assets are unavailable
- Enhanced documentation with asset configuration guide and troubleshooting steps
1.0.2 2025-12-XX #
Added #
- SmartFetchNavigator helper class with static methods for easy error screen navigation
showNoInternet()- Navigate to no internet screenshowServerError()- Navigate to server error screenshowTimeout()- Navigate to timeout screenshowErrorScreen()- Automatically show correct screen based on resultshowErrorScreenWithKey()- Support for global navigator key (service classes)
- Exported error screens for direct use:
NoInternetScreen- Pre-built no internet connection screenServerErrorScreen- Pre-built server error screenTimeoutScreen- Pre-built timeout screen
- Three ways to use error screens:
- Automatic (via
SmartFetch.builder()) - Helper methods (via
SmartFetchNavigator) - Direct access (import and use screen widgets)
- Automatic (via
Changed #
- Error screens are now publicly accessible and can be used independently
- Improved documentation with step-by-step examples
- Enhanced API documentation with better parameter descriptions
Fixed #
- Fixed linting issues with angle brackets in documentation comments
- Improved error handling and state management
1.0.1 2025-XX-XX #
Changed #
- Enhanced API documentation coverage
- Exported
InternetCheckerfor public use
1.0.0 2025-XX-XX #
Added #
- Initial release
SmartFetch.call()for programmatic API callsSmartFetch.builder()for widget-based integration- Automatic internet connectivity checking
- Pre-built error screens with Lottie animations
- Support for no internet, server errors, and timeouts
- Type-safe result objects