Last updated:
0 purchases
flutter image brighthnes saturation
The flutter_image_brighthnes_saturation package provides an easy and efficient way to adjust the brightness, saturation, and hue of images in your Flutter applications. Utilizing a straightforward widget, it wraps around your image widgets and applies the desired image filters using matrix transformations. This package is built to be easy to integrate and flexible for various use cases, whether you're building a photo editing app or just need to adjust image aesthetics on the fly.
Features #
Adjust image brightness, saturation, and hue with simple parameters.
Utilizes matrix transformations for efficient image processing.
Easy integration with existing Flutter projects.
Getting started #
Installation
To use the package, add flutter_image_brighthnes_saturation as a dependency in your pubspec.yaml file:
dependencies:
flutter_image_brighthnes_saturation: latest_version
Usage #
To apply brightness, saturation, and hue adjustments to an image, wrap the image widget with the ImageFiltering widget and provide the desired values for each property.
import 'package:flutter/material.dart';
import 'package:flutter_image_brighthnes_saturation/flutter_image_brighthnes_saturation.dart';
Widget myImageWidget = Image.network('https://example.com/myimage.jpg');
Widget filteredImage = ImageFiltering().ImageFilter(
brightness: 0.0, // Adjust brightness (default is 0.0)
saturation: 1.0, // Adjust saturation (default is 1.0, where 0.0 is grayscale)
hue: 0.0, // Adjust hue (default is 0.0)
child: myImageWidget,
);
copied to clipboard
Additional information #
The ImageFiltering widget allows you to adjust the following parameters:
brightness: Increase or decrease the brightness of the image. Default value is 0.0.
saturation: Adjust the saturation level of the image. A value of 0.0 results in a grayscale image, whereas 1.0 applies no saturation filter. Default value is 1.0.
hue: Rotate the hue of the image. Default value is 0.0.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.