搜尋套件、儲存庫與 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 專案無縫整合。每個圖示皆以清晰度與美學吸引力為設計重點,藉由細膩的動態效果提升使用者體驗。非常適合重視視覺反饋的現代介面。

適用情境

  • 透過動畫圖示增強應用介面
  • 添加微妙的微交互
  • 創造引人入勝的入門體驗
  • 改進按鈕的視覺反饋
  • 建構現代、動態的儀表板
  • 用動態替代圖示取代靜態圖示

主要特色

  • 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

所屬分類

原始碼儲存庫

使用此套件的專案