搜尋套件、儲存庫與 APP 分類

套件詳情v0.0.2

animation_kit

一個 Flutter 套件,提供一組動畫與實用工具,以提升應用程式的使用者體驗。

AndroidiOSLinuxmacOSWebWindows
近 30 天下載
3.7萬
喜歡數
3
Pub 分數
150

安裝套件

flutter pub add animation_kit

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

Animation Kit 是一個 Flutter 套件,提供一系列精心挑選的動畫與實用工具,旨在提升行動裝置與網頁應用的使用者體驗。它提供即時可用的動畫元件、緩動函數與轉場輔助工具,讓開發者無需從零開始撰寫複雜程式碼,即可實現流暢且吸引人的互動效果。此套件支援 Android、iOS、Web 與桌面環境等多個平台,適用於跨平台專案。透過直覺化的 API 與完善的文件範例,簡化了將專業級動畫整合至應用程式的過程。

適用情境

  • 增強UI轉場效果
  • 新增微互動
  • 建立載入指示器
  • 改善入門體驗
  • 動畫清單項目
  • 建構互動式按鈕

主要特色

  • 預建構的動畫元件
  • 可自定義的緩動曲線
  • 跨平台支援
  • 簡單的 API 結合
  • 輕量級且模組化的設計
  • 響應式動畫處理

適合對象

  • 尋求快速動畫的UI/UX設計師
  • 開發互動式應用的開發者
  • 專注於打造精緻使用者體驗的團隊
  • Flutter 初學者探索動畫
  • 需要一致視覺反饋的專案

使用建議

  • 可能需要額外的樣式設定以支援自訂主題
  • 有限的高級動畫控制
  • 最適合中等複雜度的動畫
  • 不適合高度自訂或獨特的動畫邏輯
  • 依賴於 Flutter 的渲染管道

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

Animation Kit

A Flutter package providing a collection of utilities and widgets for creating advanced animations with ease.

Features

  • Customizable animation builders.
  • Repeated animations with various modes (e.g., repeat, reverse, ping-pong).
  • Implicit animations for smooth transitions.
  • Crossfade transitions between widgets.
  • Interval-based animation curves.
  • Utility functions for interpolating values like colors, offsets, and sizes.

Installation

Add the following to your pubspec.yaml:

dependencies:
  animation_kit: ^1.0.0

Then run:

flutter pub get

Usage

Repeated Animation
import 'package:animation_kit/animation_kit.dart';

RepeatedAnimationBuilder<double>(
  start: 0.0,
  end: 1.0,
  duration: Duration(seconds: 2),
  mode: RepeatMode.pingPong,
  builder: (context, value, child) {
    return Opacity(
      opacity: value,
      child: child,
    );
  },
  child: Text('Ping-Pong Animation'),
);
Crossfade Transition
import 'package:animation_kit/animation_kit.dart';

CrossFadedTransition(
  child: Text('New Widget'),
  duration: Duration(milliseconds: 500),
);
Custom Curve
import 'package:animation_kit/animation_kit.dart';

AnimationController controller = AnimationController(
  duration: const Duration(seconds: 2),
  vsync: this,
);

Animation<double> animation = CurvedAnimation(
  parent: controller,
  curve: IntervalDuration(
    start: Duration(milliseconds: 500),
    end: Duration(seconds: 1),
    duration: Duration(seconds: 2),
  ),
);
Implicit Animation
import 'package:animation_kit/animation_kit.dart';

AnimatedValueBuilder<double>(
  value: 1.0,
  duration: Duration(seconds: 1),
  builder: (context, value, child) {
    return Transform.scale(
      scale: value,
      child: child,
    );
  },
  child: Icon(Icons.star, size: 50),
);

Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bugfix.
  3. Commit your changes with clear messages.
  4. Submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。

所在榜單