xnz_image 0.1.12
xnz_image: ^0.1.12 copied to clipboard
Flutter image component for unified loading, downloading, and caching of network/memory/file/asset images, with extensible SVG/AVIF format support.
import 'package:flutter/material.dart';
import 'package:xnz_image/xnz_image.dart';
void main() {
runApp(const ExampleApp());
}
class ExampleApp extends StatelessWidget {
const ExampleApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'xnz_image example',
home: Scaffold(
appBar: AppBar(title: const Text('xnz_image Example')),
body: const Center(
child: XNZNetworkImage(
imageUrl: 'https://picsum.photos/300/200',
width: 300,
height: 200,
fit: BoxFit.cover,
),
),
),
);
}
}