imageflow 1.0.1
imageflow: ^1.0.1 copied to clipboard
An advanced image loader for Flutter with caching, placeholders, and progressive loading.
ImageFlow π· #
An advanced image loader for Flutter with caching, placeholders, and progressive loading. ImageFlow provides optimized lazy loading capabilities, ensuring your app's images load efficiently and smoothly.
β¨ Features #
ποΈ Optimized Lazy Loading
- Loads images only when they become visible in the viewport
- Reduces memory usage and initial load time
π οΈ Advanced Caching Support
- Efficient local storage caching
- Customizable cache duration
- Automatic cache management
π Placeholder & Error Handling
- Customizable loading placeholders
- Elegant error states
- Smooth transitions between states
π± Adaptive Image Quality
- Progressive image loading
- Low-res to high-res transitions
- Bandwidth-aware loading
π Prefetching & Preloading
- Smart preloading of off-screen images
- Configurable prefetch policies
- Background loading support
π Network & Offline Support
- Offline-first approach
- Automatic network state detection
- Fallback mechanisms for offline usage
π¨ Extended Format Support
- GIF support
- SVG rendering
- Extensible format handlers
π Getting Started #
Add this to your package's pubspec.yaml file:
dependencies:
imageflow: ^1.0.1
π» Usage #
import 'package:imageflow/imageflow.dart';
// Basic usage
ImageFlow(
url: 'https://example.com/image.jpg',
)
// Advanced usage with all features
ImageFlow(
url: 'https://example.com/image.jpg',
placeholder: 'assets/placeholder.png',
errorWidget: (context, error) => Icon(Icons.error),
progressIndicatorBuilder: (context, progress) => CircularProgressIndicator(),
cacheManager: CustomCacheManager(),
preload: true,
)
π€ Contributing #
Contributions are welcome! Please read our contributing guidelines first.
π License #
This project is licensed under the MIT License - see the LICENSE file for details.