http_image_provider 0.0.2 copy "http_image_provider: ^0.0.2" to clipboard
http_image_provider: ^0.0.2 copied to clipboard

An image provider which makes use of package:http to instead of dart:io

HTTP image provider #

pub package likes popularity pub points

This is an alternative to Image.network() which makes use of the http package.

Usage #

Image(
  image: HttpImage(Uri.parse('https://http.cat/200')),
)

Optionally, you can supply your own Client.

// Either by setting it globally
HttpImage.defaultClient = Client();

// or by supplying it via constructor
Image(
  image: HttpImage(
    Uri.parse('https://http.cat/200'),
    client: Client(),
  ),
)

If you use dio instead of http, try dio_image_provider

📣 About the author #

  • Twitter Follow
  • GitHub followers
2
likes
130
pub points
77%
popularity

Publisher

verified publisheruekoetter.dev

An image provider which makes use of package:http to instead of dart:io

Repository (GitHub)
View/report issues

Topics

#cupertino-http #cronet-http #image-provider

Documentation

API reference

License

Apache-2.0 (LICENSE)

Dependencies

flutter, http

More

Packages that depend on http_image_provider