crash_safe_image 0.2.0 copy "crash_safe_image: ^0.2.0" to clipboard
crash_safe_image: ^0.2.0 copied to clipboard

Crash-safe image widget for Flutter. Auto-detects network/asset/file/memory sources, shows friendly placeholders & error UI, and uses cached_network_image for smart caching. Includes ImageProvider.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:crash_safe_image/crash_safe_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('CrashSafeImage Demo')),
        body: Center(
          child: CrashSafeImage(
            'https://cdn4.iconfinder.com/data/icons/flat-brand-logo-2/512/visa-512.png',
            width: 80,
            height: 50,
          ),
        ),
      ),
    );
  }
}
1
likes
130
points
15
downloads

Publisher

verified publisherdevsloom.ca

Weekly Downloads

Crash-safe image widget for Flutter. Auto-detects network/asset/file/memory sources, shows friendly placeholders & error UI, and uses cached_network_image for smart caching. Includes ImageProvider.

Repository (GitHub)
View/report issues

Topics

#images #widget #caching #utility

Documentation

API reference

License

MIT (license)

Dependencies

cached_network_image, flutter, flutter_svg

More

Packages that depend on crash_safe_image