Skip to content
pubscout

css_filter

1.0.3, released 4 years ago by iofod.com

Apply CSS-like filter effects to any Flutter widget with presets and custom matrices.

WASM-ready
$ flutter pub add css_filter
Source repository

What it does

Applies various CSS filter effects like blur, contrast, grayscale, and sepia to any Flutter widget, not just images. It supports filter overlays, custom filter matrices, filter intensities, and a wide collection of Instagram-like presets.

AI-written summary of version 1.0.3, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want to apply CSS-style image filters or color adjustments to generic Flutter widgets.
  • You need ready-to-use Instagram-like filter presets in your app.

Skip it when

  • You require complex fragment shaders or custom GPU-accelerated low-level graphics beyond standard CSS filters.

Strengths

  • Supports multiple filter effects overlay and custom filter matrices.
  • Includes a large collection of built-in Instagram-like presets.
  • Can be applied to any widget, not just images.
  • Full platform support.

Weaknesses

  • Limited to CSS-style color matrix and blur operations.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
import 'package:css_filter/css_filter.dart';

CSSFilter.contrast(child: const Text('foo'), value: 1.2);

Alternatives

Packages that do the same job and could replace css_filter.