any_image_view 1.6.0
any_image_view: ^1.6.0 copied to clipboard
A versatile Flutter image viewer supporting PNG, JPG, WebP, GIF, TIFF, RAW, SVG, Lottie, XFile, and cached network images — all in one seamless package.
import 'package:flutter/material.dart';
import 'package:any_image_view/any_image_view.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return const MaterialApp(
home: Scaffold(
body: Center(
child: AnyImageView(
imagePath: 'assets/png/flutter_banner.png',
height: 400,
width: 300,
),
),
),
);
}
}