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

not_static_icons 封面
插件详情v0.54.0

not_static_icons

为 Flutter 精心设计的动画图标,使用 Lucide 制作——无需 Rive 或 Lottie。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
686
喜欢数
54
Pub 分数
160

安装插件

flutter pub add not_static_icons

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

not_static_icons 是一个 Flutter 包,它使用 Lucide 设计原则提供精美制作的动画图标,无需 Rive 或 Lottie。它通过 Flutter 的渲染引擎直接实现流畅轻量的动画,非常适合需要富有表现力且性能优越的图标应用。该包支持多个平台,并可无缝集成到现有的 Flutter 项目中。每个图标都注重清晰度和美学吸引力,通过细微的动态效果提升用户体验。非常适合对视觉反馈有要求的现代 UI。

适合场景

  • 通过动画图标增强应用界面
  • 添加微妙的微交互
  • 创建引人入胜的入门体验
  • 改进按钮的视觉反馈
  • 构建现代、动态的仪表板
  • 用动态替代图标替换静态图标

主要特点

  • Lucide 风格设计
  • 无 Rive 或 Lottie 依赖项
  • 轻量且高效
  • 跨平台支持
  • 与 Flutter 的轻松集成
  • 流畅的内置动画

适合对象

  • 寻求优雅动画图标的开发者
  • 专注于动画的UI/UX设计师
  • 具有交互式界面的应用程序
  • 致力于现代美学的项目
  • 团队避免使用复杂的动画库

使用建议

  • 可能不支持所有 Lucide 图标变体
  • 动画复杂度限制为预定义样式
  • 需要 Flutter 3.0+ 才能获得最佳性能
  • 不适合高度复杂的动画
  • 每个图标自定义选项有限
  • 最佳搭配图标集较少以获得最佳性能

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

not_static_icons | animated icons for Flutter

LICENCE - MIT pub package

Seamlessly animated Flutter icons — no Rive or Lottie required. Made with Lucide icons inspired by pqoqubbw/icons.

Features

  • 700+ Animated Icons: Based on popular Lucide icon set
  • Interactive Animations: Hover and touch effects
  • Customizable: Size, color, animation duration, stroke width
  • Flexible Integration: Works with GestureDetector, InkWell, IconButton
  • Programmatic Control: AnimatedIconController for external animation control

Usage

Basic Usage
// Simple icon
AirplayIcon()

// Customized icon
AArrowDownIcon(
  size: 45,
  color: Colors.blue,
  animationDuration: Duration(milliseconds: 800),
  strokeWidth: 3.0,
  hoverColor: Colors.red,
  enableTouchInteraction: true,
  infiniteLoop: false,
  reverseOnExit: false,
)
Using onTap Callback

Use onTap instead of wrapping the icon in GestureDetector:

CheckIcon(
  size: 40,
  color: Colors.green,
  onTap: () {
    print('Icon tapped!');
  },
)
Using with IconButton

Use interactive: false and AnimatedIconController for IconButton integration:

class MyWidget extends StatefulWidget {
  @override
  State<MyWidget> createState() => _MyWidgetState();
}

class _MyWidgetState extends State<MyWidget> {
  final _iconController = AnimatedIconController();

  @override
  Widget build(BuildContext context) {
    return IconButton(
      onPressed: () {
        _iconController.animate(); // Trigger animation
        // Your action here
      },
      icon: HeartIcon(
        size: 32,
        color: Colors.red,
        interactive: false, // Disable internal gesture handlers
        controller: _iconController,
      ),
    );
  }
}
Using with InkWell
final _iconController = AnimatedIconController();

InkWell(
  onTap: () {
    _iconController.animate();
    // Your action here
  },
  child: Padding(
    padding: EdgeInsets.all(8),
    child: CopyIcon(
      size: 24,
      interactive: false,
      controller: _iconController,
    ),
  ),
)
All Configuration Options
ActivityIcon(
  size: 48.0,                                    // Icon size
  color: Colors.black87,                         // Default color
  hoverColor: Colors.blue,                       // Hover color
  animationDuration: Duration(milliseconds: 600), // Animation duration
  strokeWidth: 2.0,                              // Stroke width
  reverseOnExit: true,                           // Reverse animation on exit
  enableTouchInteraction: true,                  // Enable touch interaction
  infiniteLoop: false,                           // Enable infinite loop
  resetToStartOnComplete: false,                 // Reset after animation completes
  onTap: () {},                                  // Tap callback
  interactive: true,                             // Enable/disable internal gestures
  controller: AnimatedIconController(),          // External animation controller
)
AnimatedIconController Methods
Method Description
animate() Triggers the animation to play forward
stop() Stops the current animation
reset() Resets the animation to its initial state

Available Icons

Web demo MEDIUM ARTICLE

Animation Types

Each icon has its own unique animation:

  • Rotation: Icons rotate around their center
  • Scale: Icons scale up/down
  • Path Drawing: Icons draw their paths progressively
  • Morphing: Icons transform between states

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

CONTRIBUTING.md CODE_OF_CONDUCT.md ICON_CHECKLIST.md

Contacts

@khlebobul [Email - khlebobul@gmail.com](mailto:khlebobul@gmail.com) @khlebobul Personal - Website

Support

Support the project

License

LICENCE - MIT

Credits

Icons based on Lucide Icons inspired by pqoqubbw/icons

Used by

所属分类

源码仓库

使用此插件的项目