Search packages, repositories and app categories

Package detailsv0.0.5

visual_effect

VisualEffect API for Flutter to easily add paint effects on your widgets.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
329
Likes
72
Pub points
140

Install package

flutter pub add visual_effect

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

VisualEffect is a Flutter package that simplifies the application of paint effects to widgets, enabling developers to enhance visual appeal with minimal code. It provides an intuitive API for adding effects like blur, shadow, and color filters directly to UI elements. Designed for smooth integration across platforms, it supports Android, iOS, Web, macOS, Windows, and Linux. Ideal for creating dynamic interfaces with rich visual feedback, it’s particularly useful in modern app designs requiring subtle or dramatic graphical enhancements.

Use cases

  • Adding blur effects to backgrounds
  • Creating glowing or shadowed text
  • Enhancing buttons with dynamic paint effects
  • Designing immersive splash screens
  • Implementing animated overlays
  • Applying color filters to images

Key features

  • Simple API for paint effects
  • Cross-platform compatibility
  • Supports blur, shadow, and color filters
  • Easy integration with existing widgets
  • High performance rendering
  • Real-time effect adjustments

Suitable for

  • UI designers seeking visual polish
  • Developers building modern app interfaces
  • Apps requiring animated or interactive visuals
  • Projects targeting multiple platforms
  • Prototyping visually rich components

Considerations

  • May impact performance on low-end devices
  • Requires understanding of paint operations
  • Limited to visual effects, not layout changes
  • Not suitable for complex animations
  • Effect quality may vary across platforms

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

visual_effect

VisualEffect API for Flutter to easily add paint effects on your widgets.

Warning This package is experimental for the moment. The API can change at any time.

Scroll Effect

The main purpose of this API is to provide an easy and efficiently way to apply scroll animations.

Warning The addRepaintBoundaries MUST be set to false in the parent Sliver/ScrollView because we explicitely want in that case to repaint for every single scroll so we can add the effect.

For example this Card Stack effect can be obtained with the code below:

Card Stack

class _ScrolledItem extends StatelessWidget {
  const _ScrolledItem();

  @override
  Widget build(BuildContext context) {
    return ScrollEffect(
      onGenerateVisualEffect: (effect, phase) {
        return effect
            .grayscale(phase.leadingLerp(to: 0.5))
            .scale(
              x: phase.isLeading ? phase.leadingLerp(from: 1, to: 0.9) : 1,
              anchor: Alignment.topCenter,
            )
            .translate(y: effect.childSize.height * phase.leading);
      },
      child: const _CardItem(),
    );
  }
}

Categories

Dependencies

Dependency list 2 items

Source repository

Projects using this package

No data available yet.