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