minimal_rest_http 1.0.1 copy "minimal_rest_http: ^1.0.1" to clipboard
minimal_rest_http: ^1.0.1 copied to clipboard

A minimal, dynamic, and configurable REST HTTP client for Flutter applications with built-in error handling, retry logic, and flexible endpoint management.

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.1 - 2024-12-19 #

Fixed #

  • Fixed deprecation warning for withOpacity() method in popup extension
  • Updated to use withValues(alpha:) for better precision and future compatibility

1.0.0 - 2024-12-19 #

Added #

  • Initial release of Minimal REST HTTP package
  • Core API service with GET, POST, PUT, DELETE methods
  • Multipart file upload support
  • Authentication token management with SharedPreferences
  • Dynamic endpoint management system
  • Built-in error handling with custom exceptions
  • Automatic error popup system
  • Connectivity checking utilities
  • Response utilities for handling different API response formats
  • Pagination support
  • Retry logic with configurable attempts
  • Runtime configuration options
  • Comprehensive logging system
  • Context provider for automatic popup handling
  • Complete example applications
  • Comprehensive documentation and usage guide

Features #

  • Minimal and Dynamic: Simple API with flexible configuration
  • Error Handling: Built-in exception handling with user-friendly popups
  • Authentication: Token-based authentication with automatic header injection
  • File Upload: Multipart file upload with proper content type detection
  • Connectivity: Network status monitoring and offline handling
  • Logging: Detailed request/response logging for debugging
  • Retry Logic: Automatic retry on network failures
  • Response Utils: Helper utilities for common API response patterns
  • Popup System: Beautiful, customizable popup dialogs
  • Context Detection: Automatic context detection for popup display

Dependencies #

  • http: ^1.1.0 - HTTP client
  • retry: ^3.1.2 - Retry logic
  • shared_preferences: ^2.2.2 - Token storage
  • connectivity_plus: ^6.1.5 - Network connectivity
  • get: ^4.6.6 - State management utilities
  • http_parser: ^4.0.2 - Multipart file upload

Documentation #

  • Complete API documentation
  • Usage guide with examples
  • Integration guide
  • Publishing ready documentation
  • Example applications demonstrating all features

Examples #

  • Basic usage example
  • Simple usage with popup integration
  • Comprehensive usage example with all features
  • Authentication flow example
  • CRUD operations example
  • File upload example

Testing #

  • Unit tests for core functionality
  • Integration tests for API service
  • Example application tests
  • All tests passing with 100% coverage of core features
0
likes
150
points
131
downloads

Publisher

unverified uploader

Weekly Downloads

A minimal, dynamic, and configurable REST HTTP client for Flutter applications with built-in error handling, retry logic, and flexible endpoint management.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

connectivity_plus, flutter, get, http, http_parser, retry, shared_preferences

More

Packages that depend on minimal_rest_http