http_image_provider 0.0.1 http_image_provider: ^0.0.1 copied to clipboard
An image provider which makes use of package:http to instead of dart:io
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'))),
),
),
);
}
}