smart_image 0.0.1
smart_image: ^0.0.1 copied to clipboard
A powerful image widget that supports network/asset/file/svg images, fallback initials, blurhash, shimmer, and online status badges.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:smart_image/smart_image.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(title: const Text("SmartImage Example")),
body: Center(
child: SmartImage(
imageUrl: "https://picsum.photos/200",
name: "Ashish Mistry",
height: 100,
width: 100,
useNameAsFallback: true,
isOnlineBadge: true,
),
),
),
);
}
}