FLUTTER ECOSYSTEM

fetch_client

Client for http package based on Fetch API, enables streamed and cancelable requests on web and more.

Latest version
1.2.1
30-day downloads
83.1K
Likes
43
Pub points
140

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

Fetch_client is a Flutter package that provides a Fetch API-inspired interface for making HTTP requests, designed to work seamlessly on the web. It supports streamed responses and cancelable requests, enhancing performance and user experience in web applications. Built on top of the http package, it offers a modern, intuitive syntax while maintaining compatibility with Dart's asynchronous programming model. Ideal for developers seeking a familiar, efficient way to handle HTTP interactions in web-focused Flutter apps.

Use cases
  • Making HTTP requests in web-based Flutter apps
  • Handling streaming responses from APIs
  • Canceling ongoing requests during navigation
  • Implementing real-time data fetching
  • Building responsive web interfaces with async operations
Key features
  • Fetch API-like syntax
  • Support for streamed responses
  • Cancelable requests
  • Web-first design
  • Lightweight wrapper over http package
Suitable for
  • Web-focused Flutter developers
  • Apps requiring real-time data
  • Developers preferring modern HTTP patterns
  • Projects needing request cancellation
  • Teams using stream-based data flows
Considerations
  • Limited functionality outside web platform
  • Depends on http package for core operations
  • No native support for mobile platforms
  • Not suitable for complex HTTP scenarios beyond web
  • Requires careful handling of streams in web contexts
Supported platformsWeb

Install package

flutter pub add fetch_client

Categories

Dependencies

Dependency list 2 items

Source repository

Related projects