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

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

example/lib/main.dart

import 'package:dio_image_provider/dio_image_provider.dart';
import 'package:flutter/material.dart';

const Color darkBlue = Color.fromARGB(255, 18, 32, 47);

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        body: Center(
          child: Image(image: DioImage(Uri.parse('https://http.cat/200'))),
        ),
      ),
    );
  }
}
9
likes
130
pub points
66%
popularity

Publisher

verified publisheruekoetter.dev

An image provider which makes use of package:dio 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

dio, flutter

More

Packages that depend on dio_image_provider