hue_rotation
3.0.0, released 5 days ago by achim.io
Applies a hue rotation filter to any widget subtree.
WASM-ready
What it does
The HueRotation widget wraps a subtree and shifts its colors by a specified angle using a color matrix. It preserves alpha and can be animated by changing the degrees value.
AI-written summary of version 3.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a simple hue‑shift effect on any Flutter widget
- You want to animate color changes without custom shaders
Skip it when
- You require multiple or complex image filters
- Performance is critical for large images or video
Strengths
- Very small, single‑purpose API
- Works on all Flutter platforms
- Supports animation out of the box
Weaknesses
- Only provides hue rotation, no other filters
- Requires Flutter 3.47+
- No built‑in support for GPU‑accelerated shaders
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
const HueRotation(
degrees: 90,
child: SizedBox(
width: 64,
height: 64,
child: ColoredBox(color: Color(0xff2196f3)),
),
);Alternatives
Packages that do the same job and could replace hue_rotation.
- hero_here
Hero animations on the same page without a Navigator or routes.
77Compare - icon_animated
Animated outline icons with forward/reverse transitions and configurable appearance
67Compare - sa3_liquid
Liquid implementation from simple animations 3.x
45Compare - like_button
Flutter widget providing Twitter-like heart animation effects for liking and like counts.
64Compare