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

example/lib/main.dart

import 'package:http_image_provider/http_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: HttpImage(Uri.parse('https://http.cat/200'))),
        ),
      ),
    );
  }
}
3
likes
130
pub points
78%
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