css_filter 1.0.3 css_filter: ^1.0.3 copied to clipboard
Apply various filter effects in a CSS-like way in flutter, can be used on any widget, not just images, support custom filters and control filter intensity.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add css_filter
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
css_filter: ^1.0.3
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:css_filter/css_filter.dart';