smart_fetch 1.0.7 copy "smart_fetch: ^1.0.7" to clipboard
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.7 #

Changed #

  • Version bump

1.0.6 #

Added #

  • errorSnackBar parameter in SmartFetch.builder() to show custom SnackBar when errors occur
  • errorSnackBar and context parameters in SmartFetch.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 title and description parameters for NoInternetScreen, ServerErrorScreen, and TimeoutScreen
  • onError callback in SmartFetch.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 showDefaultScreens parameter to showErrorOnSamePage for better clarity
  • Changed default value to false so 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 screen
    • showServerError() - Navigate to server error screen
    • showTimeout() - Navigate to timeout screen
    • showErrorScreen() - Automatically show correct screen based on result
    • showErrorScreenWithKey() - Support for global navigator key (service classes)
  • Exported error screens for direct use:
    • NoInternetScreen - Pre-built no internet connection screen
    • ServerErrorScreen - Pre-built server error screen
    • TimeoutScreen - Pre-built timeout screen
  • Three ways to use error screens:
    1. Automatic (via SmartFetch.builder())
    2. Helper methods (via SmartFetchNavigator)
    3. Direct access (import and use screen widgets)

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 - #

Changed #

  • Enhanced API documentation coverage
  • Exported InternetChecker for public use

1.0.0 - #

Added #

  • Initial release
2
likes
150
points
261
downloads

Publisher

unverified uploader

Weekly Downloads

Beautiful full-screen error pages for server side errors and no internet connection state.

Repository (GitHub)

Topics

#flutter #error-handling #timeout #no-internet #server-error

Documentation

API reference

License

MIT (license)

Dependencies

connectivity_plus, flutter, http, lottie

More

Packages that depend on smart_fetch