搜索插件、代码仓与 APP 分类

GitHub 代码仓nikkieke/rive_animated_icons

rive_animated_icons

这个 Flutter 包提供可自定义的 rive 动画图标,以满足您的偏好。

rive_animated_icons 项目封面
星标
70
复刻
15
最近推送(UTC)
2026年7月25日
项目状态
未归档

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

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 🔩

Nikki Eke GitHub avatar
GitHub 作者

Nikki Eke ↗

Software Engineer (Mobile) ~ Technical Writer ~ Rive Ambassador

Remote
语言HTMLDartShellRubySwiftKotlinObjective-C

分类

此仓库发布的插件

使用的依赖

依赖清单 4 项

  • flutter{"sdk":"flutter"}
  • rive^0.14.6
  • flutter_test开发依赖{"sdk":"flutter"}
  • very_good_analysis开发依赖^5.0.0+1

如何选择适合项目的代码仓?

先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。

  1. 通过仓库名、作者或描述搜索,再按技术分类缩小范围。
  2. 结合星标、复刻与最近推送比较项目;星标反映社区关注,不代表质量保证。
  3. 使用前在 GitHub 核对 README、许可证与 Issues。

来源与维护

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗