flutter_image_brighthnes_saturation 0.0.1 copy "flutter_image_brighthnes_saturation: ^0.0.1" to clipboard
flutter_image_brighthnes_saturation: ^0.0.1 copied to clipboard

A Flutter package for Image Brightness & 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,
);

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.

1
likes
100
pub points
20%
popularity

Publisher

unverified uploader

A Flutter package for Image Brightness & Saturation.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_image_brighthnes_saturation