smart_fetch 1.0.4 copy "smart_fetch: ^1.0.4" to clipboard
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 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 2025-XX-XX #

Changed #

  • Enhanced API documentation coverage
  • Exported InternetChecker for public use

1.0.0 2025-XX-XX #

Added #

  • Initial release
  • SmartFetch.call() for programmatic API calls
  • SmartFetch.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
3
likes
0
points
492
downloads

Publisher

unverified uploader

Weekly Downloads

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

Repository (GitHub)
View/report issues

Topics

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

License

unknown (license)

Dependencies

connectivity_plus, flutter, http, lottie

More

Packages that depend on smart_fetch