smart_fetch 1.0.7
smart_fetch: ^1.0.7 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.6 #
Added #
errorSnackBarparameter inSmartFetch.builder()to show custom SnackBar when errors occurerrorSnackBarandcontextparameters inSmartFetch.call()to show custom SnackBar when errors occur- SnackBar support for all error types (no internet, timeout, server error)
Changed #
- Enhanced error handling with optional SnackBar notifications alongside error screens
1.0.5 #
Added #
- Optional
titleanddescriptionparameters forNoInternetScreen,ServerErrorScreen, andTimeoutScreen onErrorcallback inSmartFetch.builder()for custom error handling
Changed #
- Enhanced documentation with examples for custom titles and descriptions
- Improved error handling with ability to show errors on next page using
showErrorOnSamePage: false(now default) - Renamed
showDefaultScreensparameter toshowErrorOnSamePagefor better clarity - Changed default value to
falseso errors show on next page by default (better UX)
1.0.4 #
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 - #
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