Search packages, repositories and app categories

rive_animated_icon cover
Package detailsv2.1.1

rive_animated_icon

This package provides rive animated icons that can be customized to suit your preference.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
3.2K
Likes
252
Pub points
160

Install package

flutter pub add rive_animated_icon

Package Overview

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

The rive_animated_icon package offers a collection of customizable animated icons built with Rive, enabling smooth, interactive animations across multiple platforms. Designed for developers seeking dynamic visual elements, it integrates seamlessly into Flutter apps, allowing easy customization of size, color, and animation states. Ideal for enhancing user interfaces with engaging micro-interactions, the package supports Android, iOS, Web, macOS, Windows, and Linux. It leverages Rive's lightweight animation engine to deliver high-performance visuals without compromising app responsiveness.

Use cases

  • Enhancing UI with animated icons
  • Adding micro-interactions in apps
  • Creating engaging loading indicators
  • Customizing icon animations per theme
  • Improving user feedback with motion
  • Integrating animated buttons

Key features

  • Rive-powered animations
  • Customizable size and color
  • Support for multiple platforms
  • Easy integration with Flutter
  • Pre-built animated icon set
  • Responsive animation control

Suitable for

  • Flutter developers seeking animated UI elements
  • Apps requiring interactive icons
  • Designers collaborating with developers
  • Projects targeting cross-platform deployment
  • Teams using Rive for animations

Considerations

  • Requires familiarity with Rive animations
  • Additional bundle size from Rive assets
  • Potential performance impact on low-end devices
  • Limited to Rive-compatible animation formats
  • Needs proper asset management
  • May require custom code for complex interactions

Original README

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

RiveAnimatedIcons - 50+ Icons Available! 🚀

MIT License

This package provides rive animated icons that can be customized to suit your preference. It includes the riveIcon type, onTap, color and other parameters to give you a level of control.

Icons Sample ⬇️

rac-demo

Example


RiveAnimatedIcon(
    riveIcon: RiveIcon.home,
    width: 50,
    height: 50,
    color: Colors.green,
    strokeWidth: 3,
    loopAnimation: false,
    onTap: (){},
    onHover: (value){}                          
),

Required parameter

riveIcon:

This parameter is used to define the icon type from the RiveIcon enum

Optional parameters

width:

This parameter is used to set the icon width

height:

This parameter is used to set the icon height

color:

This parameter is used to set icon color

loopAnimation:

When this parameter is set to true the icon's animation will be on loop

onTap:

This callback is set by the user to perform actions onTap

onHover:

This callback is set by the user to perform actions onHover

splashColor:

This parameter is used to set icon splash color

strokeWidth:

This parameter is used to set icon stroke width

splashFactory:

This parameter is used to set icon splashFactory

mouseCursor:

This parameter is used to set icon mouseCursor when hovered

enableAbsorbPointer:

When this parameter is set to true it disables all interactive features of the icon

Animated Icon stroke width sample ⬇️

InShot_20240613_203645913

Best practices 🙌

  • If a Rive animation is set to loop and is scrolled off-screen, you can disable the loop to stop the animation and conserve resources while it's not visible. Similarly, you can re-enable the loop when the animation comes back into view.

License 📝

Rive Animated Icons is MIT-licensed

Animation credits 🏆

All the icons available were animated in Rive and sourced from the Rive community files. Special thanks to all the animators!

Maintainers 🔩

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package

No data available yet.