https://github.com/imgeng/imageengine-flutter
https://github.com/imgeng/imageengine-flutter
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/imgeng/imageengine-flutter
- Owner: imgeng
- License: mit
- Created: 2024-08-06T08:45:31.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2024-11-13T06:28:49.000Z (6 months ago)
- Last Synced: 2025-01-01T10:03:40.995Z (5 months ago)
- Language: Dart
- Size: 296 KB
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# ImageEngine Flutter
Hassle-free optimized responsive images for Flutter applications.
## Features
- Responsive image loading
- Image optimization with directives
- Automatic srcSet handling## Getting started
Add to your `pubspec.yaml`:
## Usage
1. Import the package:
```dart
import 'package:imageengine_flutter/imageengine_flutter.dart';
```2. Use the `ResponsiveImage` widget:
```dart
ResponsiveImage(
src: '/images/pic_1_variation_2.jpg',
srcSet: [
TSrcSetEntry(
src: '/images/pic_1_variation_1.jpg',
directives: {'rotate': 180},
width: '500w',
),
TSrcSetEntry(
src: '/images/pic_1_variation_2.jpg',
directives: {'rotate': 180},
width: '900w',
),
],
deliveryAddress: 'https://blazing-fast-pics.cdn.imgeng.in',
)For a complete example, see the `example` folder.