dio_image_provider 0.0.1 copy "dio_image_provider: ^0.0.1" to clipboard
dio_image_provider: ^0.0.1 copied to clipboard

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

DIO image provider #

pub package likes popularity pub points

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

Usage #

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

Optionally, you can supply your own Dio client.

// Either by setting it globally
DioImage.defaultDio = Dio();

// or by supplying it via constructor
Image(
  image: DioImage(
    Uri.parse('https://http.cat/200'),
    dio: Dio(),
  ),
)

If you use http instead of dio, try http_image_provider

📣 About the author #

  • Twitter Follow
  • GitHub followers
9
likes
120
pub points
68%
popularity

Publisher

verified publisheruekoetter.dev

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (LICENSE)

Dependencies

dio, flutter

More

Packages that depend on dio_image_provider